ModEnc:Templates: Difference between revisions
Updated to reflect the changes |
m Not every INI has a Type... |
||
Line 21: | Line 21: | ||
<br><br> | <br><br> | ||
---- | ---- | ||
{{flag|name=Flag's name|files=Which files can it be used in?|values=Possible values|special=Special values, like -1 for unlimited|default=Default value|types=Can be | {{flag|name=Flag's name|files=Which files can it be used in?|values=Possible values|special=Special values, like -1 for unlimited|default=Default value|types=Can be added to which Types/sections?|games=Works in which games?}} | ||
==<nowiki>{{meanings|Bracket-input}}</nowiki>== | ==<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> | 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}} | {{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>. | 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 13:32, 31 May 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.
{{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.
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.
If there is no value, put "None"; capitalization is important in this case, as there may also be the value "none", which would be lower-case only.
Flag: | Flag's name |
File(s): | Which files can it be used in? |
Values: | Possible values |
Special Values: | Special values, like -1 for unlimited |
Default: | Default value |
Applicable to: | Can be added to which Types/sections? |
{{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.
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}}.