Difference between revisions of "Template:Infobox Character/magical"

From Twinsuniverse
Jump to: navigation, search
m
Line 12: Line 12:
 
*# leaving the value out and the empty value defaults to: ''no''
 
*# leaving the value out and the empty value defaults to: ''no''
 
*# any other non-empty value defaults to: ''yes''
 
*# any other non-empty value defaults to: ''yes''
* '''nocat''': Whether or not to suppress categorization under the (non)magical category (defaults to false, which means auto categorization).
+
* '''nocat''': Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).
  
 
==Syntax==
 
==Syntax==
Line 57: Line 57:
 
  <nowiki>{{magical|yes|nocat=true}}</nowiki>
 
  <nowiki>{{magical|yes|nocat=true}}</nowiki>
  
(this would render the same result as the first example above, but would not automatically categorize under [[:Category:Magical Characters]])
+
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.
  
 
[[Category:Article Categorizers]]</noinclude>
 
[[Category:Article Categorizers]]</noinclude>

Revision as of 20:38, 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 values are case insensitive):
    1. no
    2. leaving the value out and the empty value defaults to: no
    3. 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).

Syntax

{{magical|value}}

Examples

The template may be used like this:

{{magical|yes}}
Yes [list all]


Or this:

{{magical|no}}
No [list all]


You may even leave out the argument, which will default to no like this:

{{magical}}
No [list all]


Using the empty value is the same:

{{magical|}}
No [list all]


Specifying any other value will be interpreted as yes like this:

{{magical|of cource}}
Yes [list all]


The case of the value is not important:

{{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.