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

From Twinsuniverse
Jump to: navigation, search
m
m (eliminated the display parameter of the categorizer)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{{#switch: {{lc:{{{1|}}}}}
 
{{#switch: {{lc:{{{1|}}}}}
| no = {{categorizer|category=Noncritical items|label=No|display=infobox|nocat={{{nocat|false}}}}}
+
| no = {{categorizer|category=Noncritical items|label=No|nocat={{{nocat|false}}}}}
| yes = {{categorizer|category=Critical items|label=Yes|display=infobox|nocat={{{nocat|false}}}}}
+
| yes = {{categorizer|category=Critical items|label=Yes|nocat={{{nocat|false}}}}}
| acquired = {{categorizer|category=Acquired items|label=Acquired|display=infobox|nocat={{{nocat|false}}}}}
+
| acquired = {{categorizer|category=Acquired items|label=Acquired|nocat={{{nocat|false}}}}}
 
| {{maintenance task|nocat={{{nocat|false}}}
 
| {{maintenance task|nocat={{{nocat|false}}}
 
     |category=Items of unknown criticality
 
     |category=Items of unknown criticality

Revision as of 18:47, 3 January 2013

This template offers the choice to define the criticality category of an (item) article. It can also automatically categorize a page under that category.

An item is critical, when it is required to have or use it for the default storyline of the game. This does not include bug exploiting.

Parameters

  1. Whether or not critical (no parameter name and value is case insensitive):
    • no
    • yes
    • acquired
    • 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: eventhough the name of this template implies a default value of "yes", leaving the parameter empty or out resolves to "unknown" instead.

Syntax

{{Infobox Item/critical|value}}

Examples

Common use includes the only parameter with either values "yes" or "no":

{{Infobox Item/critical|yes}}
{{Infobox Item/critical|no}}
Yes [list all]
No [list all]


Some items are not critical to the game, but are acquired when doing something else that is critical. In that case, use this value:

{{Infobox Item/critical|acquired}}
Acquired [list all]


The case of the value is not important:

{{Infobox Item/critical|acquiRED}}
Acquired [list all]


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

{{Infobox Item/critical}}
{{Infobox Item/critical|}}
{{Infobox Item/critical|yeah}}
{{Infobox Item/critical|true}}
{{Infobox Item/critical|aye, it's critical!}}
{{Infobox Item/critical|whatever}}
{{Infobox Item/critical|nope?}}
{{Infobox Item/critical|false}}
{{Infobox Item/critical|null}}
{{Infobox Item/critical|zero}}
{{Infobox Item/critical|hospital}}
{{Infobox Item/critical|not}}
unknown [list all]


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

{{Infobox Item/critical|yes|nocat=true}}

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