Template:Item infobox: Difference between revisions
updated internal size docs |
added support for specifying up to 8 categories |
||
Line 8: | Line 8: | ||
|sections=Main, Technical Information | |sections=Main, Technical Information | ||
|Main= | |Main=Categories, Type, Max stack, Size, Meow, Internal Size | ||
|Main_nolabel = yes | |Main_nolabel = yes | ||
| | |Categories = {{#invoke:params|with_name_matching|category|plain|for_each<!-- | ||
-->|* $@[[Category:$@]]<!-- | |||
-->}} | |||
|Categories_class = flat-bullet-list | |||
|Type = {{{type|}}} | |Type = {{{type|}}} | ||
|Max stack = {{{max stack|}}} | |Max stack = {{{max stack|}}} | ||
Line 23: | Line 26: | ||
}}<!-- | }}<!-- | ||
-->[[Category:Items]] | -->[[Category:Items]]</includeonly><noinclude> | ||
{{docs|bb= | {{docs|bb= | ||
{{uses template styles}} | {{uses template styles}} | ||
{{template populates categories|Items|<category> | {{template populates categories|Items|<category>}} | ||
}} | }} | ||
Line 62: | Line 64: | ||
"example": "{{isize|Large}} (for predefined sizes) OR 1x2, 2x4, 1x5 (for specific sizes) OR * 1x2 [off] * 4x2 [on]", | "example": "{{isize|Large}} (for predefined sizes) OR 1x2, 2x4, 1x5 (for specific sizes) OR * 1x2 [off] * 4x2 [on]", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
Line 89: | Line 85: | ||
"suggested": true, | "suggested": true, | ||
"example": "{{c|BloodPack}} / * {{c|MedkitCombatFilled}} [filled] * {{c|MedkitCombat}} [empty]" | "example": "{{c|BloodPack}} / * {{c|MedkitCombatFilled}} [filled] * {{c|MedkitCombat}} [empty]" | ||
}, | |||
"category 1": { | |||
"label": "Category 1", | |||
"example": "Medical", | |||
"type": "line", | |||
"suggested": true, | |||
"description": "Item category. If it has multiple, use other category fields. All specified categories will also be added as categories to the page.", | |||
"suggestedvalues": [ | |||
"Medical items", | |||
"Satchels", | |||
"Random spawns", | |||
"Syndicate Uplink items" | |||
], | |||
"aliases": [ | |||
"category" | |||
] | |||
}, | |||
"category 2": { | |||
"label": "Category 2", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"category 3": { | |||
"label": "Category 3", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"category 4": { | |||
"label": "Category 4", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"category 5": { | |||
"label": "Category 5", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"category 6": { | |||
"label": "Category 6", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"category 7": { | |||
"label": "Category 7", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"category 8": { | |||
"label": "Category 8", | |||
"type": "line", | |||
"suggested": true | |||
} | } | ||
}, | }, | ||
Line 94: | Line 141: | ||
"title", | "title", | ||
"image", | "image", | ||
"category", | "category 1", | ||
"category 2", | |||
"category 3", | |||
"category 4", | |||
"category 5", | |||
"category 6", | |||
"category 7", | |||
"category 8", | |||
"type", | "type", | ||
"max stack", | "max stack", |
Revision as of 20:57, 1 April 2025
(though on what conditions — consult with the template itself)
- Category:Items
- [[:Category:<category>]]
Template:Item infobox/doc
Infobox templates for roles/jobs.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Infobox title | title | {{PAGENAME}} by default, using the title of the page.
| Line | required |
Image | image img | no description
| File | suggested |
Category 1 | category 1 category | Item category. If it has multiple, use other category fields. All specified categories will also be added as categories to the page.
| Line | suggested |
Category 2 | category 2 | no description | Line | suggested |
Category 3 | category 3 | no description | Line | suggested |
Category 4 | category 4 | no description | Line | suggested |
Category 5 | category 5 | no description | Line | suggested |
Category 6 | category 6 | no description | Line | suggested |
Category 7 | category 7 | no description | Line | suggested |
Category 8 | category 8 | no description | Line | suggested |
Type | type | no description
| Line | suggested |
Max Stack | max stack | no description
| Line | suggested |
Size | size | How big is this item? If it's a predefined size (like 'Large'), use template {{isize|<size>}} to format it. If it's a specific size (like 1x3), specify it as is. If it has multiple sizes (eg a welding tool), specify them in a bullet list (use smaller number first)
| String | suggested |
Internal size | internal size | How big is this item on the inside? Use {{infobox storage grid|grid1|grid2|grid3}} from the ingame YML files to define this.
| Line | suggested |
Item ID | id | Can be found in .yml files. If there are multiple IDs, use a bullet list.
| String | suggested |