|
|
If you have standard texts you want to include on several pages, the MediaWiki template feature comes into play (like the tag above which is included in the pages of the Help namespace).
[edit] Creating a templateTemplate names are prefixed with [edit] Using a templateTemplates are wiki pages which can be used in other pages in three ways:
[edit] Using parameters in templates
You can define parameters in templates either numbered as Example: You want a little thank you note you can put on the talk page of other users. It will contain a reason and your signature. You could create Template:Thankyou to enter your text, as in the example in the table. When using the template on a page, you fill in the parameter values, separated by a pipe char (|): You can also provide default values for parameters, i.e. values that are going to be used if no value is provided for a parameter. For example, [edit] Control template inclusionYou can control template inclusion by the use of Anything between Possible applications are:
The converse is Note that the usual update problems apply -- if you change the categories inside a template, the categories of the referring pages won't be updated until those pages are edited. [edit] Organizing templatesFor templates to be effective users need to find them and be able to use them. A simple technique is to include an example on the template page. For example:
<noinclude>
==Usage==
Allows to establish a link to a subject:
{{NameOfTemplate|Term1+Term2+Term3}}
</noinclude>
Then, an editor can simply copy and paste the example to create a similar page. [edit] See Also
[edit] External links[edit] TemplatesTemplate:32teambracket
|
|||||||||||||||||||||
| This page was last modified 23:21, 31 July 2007. This page has been accessed 114 times. Privacy policy About Thsfpedia Disclaimers |


