Wiki:Templates
Templates are wiki pages whose content is designed to be transcluded (embedded) inside other pages. Every template's name is prefixed with the word "Template:", which assigns it to that namespace; other than that, you can create templates just like you'd create any other wiki page. To include a template in a page, just include its name surrounded by two curly braces. For instance, adding {{Disambiguation}}
loads the disambiguation template, producing the following:
This disambiguation page lists articles associated with the same title. If an internal link led you here, you may wish to change the link to point directly to the intended article. |
Some templates may accept parameters, which are delimited with pipes. For instance, {{Year|1985}}
takes in the single parameter "1985" and produces the following: 1985.
For more information about how to use templates, please see the template documentation at MediaWiki.
Common templates
To see all the templates available in this wiki, you can browse the templates category or see the full list of templates. Some of the more commonly used templates include:
- Template:Adventure, which adds an infobox to an article that lists certain key data about an adventure.
- Template:Title, which converts an adventure number into its corresponding title.
- Template:Person, which adds an infobox containing details about a person.
- Template:Year, which converts four-digit years into links to the Eamon timeline.
Documentation
Each template should be accompanied by documentation that describes the purpose and usage of that template. Such documentation should be placed in a subpage named "doc"; for example, the documentation for Template:Year is located at Template:Year/doc.
To make documentation saved in the subpage automatically appear on the main template page, simply include a reference to the documentation template like so:
<noinclude>{{Documentation}}</noinclude>
|