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 |
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
- Template:Directory footer
- Template:PowerPedia footer
- Template:News footer
- Template:Fuel Efficiency footer
- Template:Events footer
- Template:Solar footer
- Template:Article footer
- Template:Reviews footer
- Template:Site footer
- Template:Video footer
Specific Project footers
- Template:CD Motor footer
- Template:NEC footer
- Template:Acetone footer
- Template:LRP footer
- Template:FPPP footer
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.
- Template:SDA - Sterling D. Allan
- Template:Mark Dansie
- Template:Robert Nelson
- Template:Robert L. Pritchett
- Template:Ken Rauen
- Template:Terry Sisson
Repeat Messages
This function can also be used for other strings of text used frequently. Such as
- Template:Top 100
- Template:Stub
- Template:Welc - welcome message posted on talk page of new members
- Template:Welcome - alt. welcome
- Template:Vandal - signifying a user as a vandal
Other Template Uses
See also
- Template
- Google > Site:PESWiki > Template (http://www.google.com/search?q=template+site:peswiki%2ecom)



