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

From Twinsuniverse
Jump to: navigation, search
m (eliminated the display parameter of the categorizer)
(added infobox)
 
Line 9: Line 9:
 
     |label=''unknown''
 
     |label=''unknown''
 
     |reason=The '''critical''' parameter specifies {{#if:{{{1|}}}|'{{lc:{{{1|}}}}}' (unknown)| no value}} }}
 
     |reason=The '''critical''' parameter specifies {{#if:{{{1|}}}|'{{lc:{{{1|}}}}}' (unknown)| no value}} }}
}}</includeonly><noinclude>
+
}}</includeonly><noinclude>{{Infobox Template
 +
|purpose=infobox
 +
|singletag=no
 +
|multiline=no
 +
|gamerelated=yes
 +
|suppressible=recursively
 +
|choice=single
 +
|cat1=Noncritical items!no
 +
|cat2=Critical items!yes
 +
|cat3=Acquired items!acquired
 +
|cat4=Items of unknown criticality!''unknown''!maintenance
 +
|var1=
 +
}}
 +
 
 
This template offers the choice to define the criticality category of an (item) article. It can also automatically categorize a page under that category.
 
This template offers the choice to define the criticality category of an (item) article. It can also automatically categorize a page under that category.
  
Line 71: Line 84:
 
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.
 
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.
  
[[Category:Categorizers|item]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 17:19, 6 June 2014

Infobox Item/critical
Purpose

Infobox [list all]

Single tag

No [list all]

Multi-line

No [list all]

Protected

No [list all]

Game related

Yes [list all]

Categorization
Suppressible

Recursively [list all]

Choice

Single category [list all]

Categories

Multiple: [list all]

Variables
Names

none [list all]

Subpages

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.