PESWiki.com -- Pure Energy Systems Wiki -- your publicly editable site about new energy technologies. Power to the people!





Help:Templates

From PESWiki

The template function enables you to create content in one place, then to call for that content to be included whereever you want it.

This is not to be confused with another usage of the word "template" in our files, such as Directory:Template, which is a boiler plate page we use for creating new directory pages.

Note 
This page needs to be combined with the page called Template; but at this url, not that one.
Table of contents

1 See also

Examples

Footers

At the bottom of most Directory pages, as you will see in the above-mentioned template, is an example of a mediawiki template function.

Note in the "See also" section the following code: {{Directory footer}}

That code pulls in the document found at Template:Directory_footer

If we want to change the footer, we edit that page.

This, incidentally, is probably the most-used template.

Here is a list of pags that use it: http://peswiki.com/index.php?title=Special:Whatlinkshere&target=Template%3ADirectory_footer

List of PESWiki footers
not yet a comprehensive list

Specific Project footers

Sub-site navigation columns

The template feature can be used for creating a navigation structure within a sub-site within PESWiki.

For example, Template:NEC is the right-hand navigation column for the New Energy Congress pages. It's not used on the NEC home page, but it is use on most all internal pages. For example, in source view ("edit" or "view source") you will see {{NEC}} at the top of the page contents.

FOR AD PURPOSES

Please use the following naming structure.

http://peswiki.com/index.php/Template:Ad:Category:Product_Name

for example:
Template:Ad:Spark_Plugs:Pulstar

is called for here:
Directory:Spark_Plugs#Featured

Name Shortcuts

For names that are used frequently, to show them hyperlinked to their profile at PESWiki, typically used for NEC members.

Repeat Messages

This function can also be used for other strings of text used frequently. Such as

Other Template Uses

See also

- Help Main Index
- Return to PESWiki Main Page

Related