Difference between revisions of "Template:Infobox Item/position"
J McKalling (Talk | contribs) |
J McKalling (Talk | contribs) |
||
Line 66: | Line 66: | ||
− | + | You may also leave the "position" undefined (which would raise the [[:Category:Items of unknown position|Items of unknown position]] maintenance task) by not specifying any valid values, so these all have the same result: | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | You may also leave the "position" undefined (which would | + | |
<nowiki>{{Infobox Item/position}}</nowiki> | <nowiki>{{Infobox Item/position}}</nowiki> | ||
<nowiki>{{Infobox Item/position|}}</nowiki> | <nowiki>{{Infobox Item/position|}}</nowiki> | ||
Line 84: | Line 76: | ||
:{{categorizer|category=Items of unknown position|label=''unknown''|nocat=true}} {{categorizer|category=Items of unknown position|label=''unknown''|nocat=true}} | :{{categorizer|category=Items of unknown position|label=''unknown''|nocat=true}} {{categorizer|category=Items of unknown position|label=''unknown''|nocat=true}} | ||
+ | |||
+ | |||
+ | Some items don't appear in the inventory, in which case both the row and column positions could specify "none". It should not be possible for an item to only have a row position and no column position, or vica versa, so having only one of them specify "none" is invalid (which would also raise the [[:Category:Items of unknown position|Items of unknown position]] maintenance task): | ||
+ | <nowiki>{{Infobox Item/position|row=18|column=2}}</nowiki> | ||
+ | <nowiki>{{Infobox Item/position|row=none|column=2}}</nowiki> | ||
+ | <nowiki>{{Infobox Item/position|row=2|column=18}}</nowiki> | ||
+ | <nowiki>{{Infobox Item/position|row=2|column=none}}</nowiki> | ||
+ | |||
+ | :{{categorizer|category=Items of unknown position|label=''unknown''|nocat=true}} {{categorizer|category=Column 2 items|label=Column 2|nocat=true}} | ||
+ | :{{categorizer|category=Items of unknown position|label=''invalid''|nocat=true}} {{categorizer|category=Column 2 items|label=Column 2|nocat=true}} | ||
+ | :{{categorizer|category=Row 2 items|label=Row 2|nocat=true}} {{categorizer|category=Items of unknown position|label=''unknown''|nocat=true}} | ||
+ | :{{categorizer|category=Row 2 items|label=Row 2|nocat=true}} {{categorizer|category=Items of unknown position|label=''invalid''|nocat=true}} | ||
Revision as of 21:55, 25 December 2012
This template offers a multiple choice for defining the inventory position category of an (item) article. It can also automatically categorize a page under that category.
Parameters
- row: The selected row position, in the range 1 - 5 or "none" (case insensitive, defaults to "unknown")
- column: The selected column position, in the range 1 - 7 or "none" (case insensitive, defaults to "unknown")
- nocat: Whether or not to suppress categorization under the chosen categories (defaults to false, which means auto categorization).
Syntax
{{Infobox Item/position|row=value|column=value}}
Examples
Commun use includes both the row and column parameters, like this:
{{Infobox Item/position|row=3|column=5}} {{Infobox Item/position|column=3|row=2}} {{Infobox Item/position|row=none|column=none}}
You may also leave the "position" undefined (which would raise the Items of unknown position maintenance task) by not specifying any valid values, so these all have the same result:
{{Infobox Item/position}} {{Infobox Item/position|}} {{Infobox Item/position|row=}} {{Infobox Item/position|column=}} {{Infobox Item/position|row=|column=}} {{Infobox Item/position|row=7|column=26273}} {{Infobox Item/position|row=hello|column=world}}
Some items don't appear in the inventory, in which case both the row and column positions could specify "none". It should not be possible for an item to only have a row position and no column position, or vica versa, so having only one of them specify "none" is invalid (which would also raise the Items of unknown position maintenance task):
{{Infobox Item/position|row=18|column=2}} {{Infobox Item/position|row=none|column=2}} {{Infobox Item/position|row=2|column=18}} {{Infobox Item/position|row=2|column=none}}
- unknown [list all] Column 2 [list all]
- invalid [list all] Column 2 [list all]
- Row 2 [list all] unknown [list all]
- Row 2 [list all] invalid [list all]
The nocat parameter may be used to suppress automatic categorization like this (any value will do):
{{Infobox Item/position|row=3|column=5|nocat=true}}
This would render the same result as the first example above, but would not automatically categorize under Category:Row 3 items and Category:Column 5 items. This feature works both on valid values and the maintenance tasks mentioned above.