ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "ModEnc:Templates"

From ModEnc
Jump to: navigation, search
Line 19: Line 19:
 
Adds the standard header for INI-flags. Example usage [[BuildLimit|here]].<br><br>
 
Adds the standard header for INI-flags. Example usage [[BuildLimit|here]].<br><br>
 
{{flag|name=Flag's name|values=Possible values|special=Special values, like -1 for unlimited|default=Default value|games=Works in which games?}}
 
{{flag|name=Flag's name|values=Possible values|special=Special values, like -1 for unlimited|default=Default value|games=Works in which games?}}
 +
==<nowiki>{{meanings|Bracket-input}}</nowiki>==
 +
In some cases, a word is strongly associated with a certain meaning, but can still mean something else. In that case, a disambiguation page may not be the best choice - use <nowiki>{{meanings}}</nowiki> instead.<br>
 +
{{meanings|Bracket-input}}
 +
As you can see, <nowiki>{{meanings}}</nowiki> creates a link to a page named exactly as the current page, with an additional bracket; the bracket's content has to be determined by the parameter. On the [[Cost]]-page, this is used to add an additional link to [[Cost (Multiplier)]], but you could also append a real disambiguation page throught the use of <nowiki>{{meanings|disambiguation}}</nowiki>.

Revision as of 15:52, 28 April 2005

This is a list of Templates available on ModEnc. It will be updated everytime a new one is added. Usage of these templates is simple: Just put {{templatename}} somewhere in a page's text, and it gets replaced by the template. In some cases, you have to give a parameter.

If you have ideas for more templates, feel free to suggest them on the talk-page or code them yourself. But don't forget to update this list.

{{categories}}

Adds the table of categories seen on the main page. Should not be necessary somewhere else.
Template:Categories

{{disambig}}

Adds the disambiguation-notice. Example usage here.

This phrase can refer to several things; please pick one from the list below.


{{discussed|http://www.fullurl.tld}}

Adds the "Work in Progress"-template. The parameter does not accept PHP-variable-parts (i.e. attachments like ?var=value), which renders it useless for forum-posts. I'll think of a solution for this.

Wip tools.png Work in Progress
This page is the result of a currently running discussion. The information on it is subject to change. If you wish to follow the discussion or want to know more about the history of this page, please follow this link.

{{flag|name=|values=|special=|default=|games=}}

Adds the standard header for INI-flags. Example usage here.

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Flag's name
File(s): rules(md).ini
Values: Possible values
Special Values: Special values, like -1 for unlimited
Default: Default value


{{meanings|Bracket-input}}

In some cases, a word is strongly associated with a certain meaning, but can still mean something else. In that case, a disambiguation page may not be the best choice - use {{meanings}} instead.

This is the primary usage of Templates; for other meanings, see Templates (Bracket-input).

As you can see, {{meanings}} creates a link to a page named exactly as the current page, with an additional bracket; the bracket's content has to be determined by the parameter. On the Cost-page, this is used to add an additional link to Cost (Multiplier), but you could also append a real disambiguation page throught the use of {{meanings|disambiguation}}.