Difference between revisions of "Template:Infobox Character/magical"
J McKalling (Talk | contribs) |
J McKalling (Talk | contribs) m (→Examples) |
||
Line 27: | Line 27: | ||
− | It doesn't matter which value you use, any value other than "no" will express a positive value, even if you leave it out altogether, so these all have the same result: | + | It doesn't matter which value you use, any value other than "no" will express a ''positive'' value, even if you leave it out altogether, so these all have the same result: |
<nowiki>{{magical}}</nowiki> | <nowiki>{{magical}}</nowiki> | ||
<nowiki>{{magical|}}</nowiki> | <nowiki>{{magical|}}</nowiki> | ||
Line 38: | Line 38: | ||
− | The only way to express a negative value is by specifying "no" (case insensitive), so these both have the same result: | + | The only way to express a ''negative'' value is by specifying "no" (case insensitive), so these both have the same result: |
<nowiki>{{magical|no}}</nowiki> | <nowiki>{{magical|no}}</nowiki> | ||
<nowiki>{{magical|NO}}</nowiki> | <nowiki>{{magical|NO}}</nowiki> |
Revision as of 21:20, 24 November 2012
This template offers the choice to define the magical category of a (character) article. It can also automatically categorize a page under that category.
Parameters
- Whether or not magical (no parameter name and value is case insensitive):
- no
- any other (non)empty value defaults to: yes
- nocat: Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).
Note: the parameter is optional, it is only really needed to be able to specify the negative value.
Syntax
{{magical|value}}
Examples
Common use includes the only parameter with either values "yes" or "no":
{{magical|yes}} {{magical|no}}
It doesn't matter which value you use, any value other than "no" will express a positive value, even if you leave it out altogether, so these all have the same result:
{{magical}} {{magical|}} {{magical|yes}} {{magical|aye, it's magic!}} {{magical|whatever}} {{magical|nope?}}
- Yes [list all]
The only way to express a negative value is by specifying "no" (case insensitive), so these both have the same result:
{{magical|no}} {{magical|NO}}
- No [list all]
The nocat parameter may be used to suppress automatic categorization like this (any value will do):
{{magical|yes|nocat=true}}
This would render the same result as the first example above, but would not automatically categorize under Category:Magical Characters. This feature works on all valid values.