Difference between revisions of "Template:Infobox Item/powerlevel"

From Twinsuniverse
Jump to: navigation, search
(Created page with "<includeonly> {{#switch: {{lc:{{{1|}}}}} | none = {{categorizer|display=infobox|nocat={{{nocat|false}}} |category=Powerless items |label=None}} | yellow = {{categorize...")
 
m (eliminated the display parameter of the categorizer)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{{#switch: {{lc:{{{1|}}}}}
 
{{#switch: {{lc:{{{1|}}}}}
| none = {{categorizer|display=infobox|nocat={{{nocat|false}}}
+
| none = {{categorizer|nocat={{{nocat|false}}}
 
     |category=Powerless items
 
     |category=Powerless items
 
     |label=None}}
 
     |label=None}}
| yellow = {{categorizer|display=infobox|nocat={{{nocat|false}}}
+
| yellow = {{categorizer|nocat={{{nocat|false}}}
 
     |category=Yellow level items
 
     |category=Yellow level items
 
     |label=Magic Level Yellow}}
 
     |label=Magic Level Yellow}}
| green = {{categorizer|display=infobox|nocat={{{nocat|false}}}
+
| green = {{categorizer|nocat={{{nocat|false}}}
 
     |category=Green level items
 
     |category=Green level items
 
     |label=Magic Level Green}}
 
     |label=Magic Level Green}}
| red = {{categorizer|display=infobox|nocat={{{nocat|false}}}
+
| red = {{categorizer|nocat={{{nocat|false}}}
 
     |category=Red level items
 
     |category=Red level items
 
     |label=Magic Level Red}}
 
     |label=Magic Level Red}}
| fire = {{categorizer|display=infobox|nocat={{{nocat|false}}}
+
| fire = {{categorizer|nocat={{{nocat|false}}}
 
     |category=Fire level items
 
     |category=Fire level items
 
     |label=Magic Level Fire}}
 
     |label=Magic Level Fire}}
| all = {{categorizer|display=infobox|nocat={{{nocat|false}}}
+
| all = {{categorizer|nocat={{{nocat|false}}}
 
     |category=All-level items
 
     |category=All-level items
 
     |label=All Magic Levels}}
 
     |label=All Magic Levels}}

Revision as of 17:49, 3 January 2013

This template offers a multiple choice for defining the powerlevel category of an (item) article. It can also automatically categorize a page under that category.

Parameters

  1. The selected powerlevel from the following values (no parameter name and values are case insensitive):
    • none
    • yellow
    • green
    • red
    • fire
    • all
    • any other (non)empty value defaults to: unknown
  • nocat: Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).


Note: more category values should be discussed on the discussion page.

Syntax

{{Infobox Item/powerlevel|value}}

Examples

Any of the above values may be used like this:

{{Infobox Item/powerlevel|none}}
{{Infobox Item/powerlevel|yellow}}
{{Infobox Item/powerlevel|green}}
{{Infobox Item/powerlevel|red}}
{{Infobox Item/powerlevel|fire}}
None [list all]
Magic Level Yellow [list all]
Magic Level Green [list all]
Magic Level Red [list all]
Magic Level Fire [list all]


Some items are not of a specific powerlevel, but grow in power as Twinsen reaches new magic levels, or simply have an effect on all levels. In that case, use this value:

{{Infobox Item/powerlevel|all}}
All Magic Levels [list all]


The case of the value is not important:

{{Infobox Item/powerlevel|grEEn}}
Magic Level Green [list all]


You may leave the "powerlevel" undefined (which would raise the Items with an unknown powerlevel maintenance task) by not specifying any valid value, so these all have the same result:

{{Infobox Item/powerlevel}}
{{Infobox Item/powerlevel|}}
{{Infobox Item/powerlevel|blue}}
{{Infobox Item/powerlevel|standby}}
{{Infobox Item/powerlevel|microwave}}
unknown [list all]


The nocat parameter may be used to suppress automatic categorization like this (any value will do):

{{Infobox Item/powerlevel|none|nocat=true}}

This would render the same result as the first example above, but would not automatically categorize under Category:Powerless items. This feature works both on valid values and the maintenance task mentioned above.