Template:Item infobox: Difference between revisions
From Space Station 14 Wiki
improv. title param docs |
updated internal size docs |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:Infobox|main | <includeonly><templatestyles src="Template:Item infobox/styles.css"></templatestyles><!-- | ||
-->{{#invoke:Infobox|main | |||
|kind=role | |kind=role | ||
|sep=, | |sep=, | ||
Line 12: | Line 14: | ||
|Max stack = {{{max stack|}}} | |Max stack = {{{max stack|}}} | ||
|Size = {{{size|}}} | |Size = {{{size|}}} | ||
|Size_class = flat-bullet-list list-gap-medium | |||
|Meow = {{{meoow|}}} | |Meow = {{{meoow|}}} | ||
|Internal Size = {{{internal size|}}} | |Internal Size = {{{internal size|}}} | ||
Line 17: | Line 20: | ||
|Technical Information = ID | |Technical Information = ID | ||
|ID = {{{id|}}} | |ID = {{{id|}}} | ||
|ID_class = flat-bullet-list | |ID_class = flat-bullet-list list-gap-medium | ||
}}<!-- | }}<!-- | ||
Line 23: | Line 26: | ||
-->{{#if: {{{category|}}}|[[Category:{{{category}}} items]]}}</includeonly><noinclude> | -->{{#if: {{{category|}}}|[[Category:{{{category}}} items]]}}</includeonly><noinclude> | ||
{{docs|bb= | {{docs|bb= | ||
{{uses template styles}} | |||
{{template populates categories|Items|<category> items}} | {{template populates categories|Items|<category> items}} | ||
}} | }} | ||
Line 55: | Line 59: | ||
"size": { | "size": { | ||
"label": "Size", | "label": "Size", | ||
"description": "How big is this item? (use smaller number first)", | "description": "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)", | ||
"example": "1x2, 2x4, 1x5 | "example": "{{isize|Large}} (for predefined sizes) OR 1x2, 2x4, 1x5 (for specific sizes) OR * 1x2 [off] * 4x2 [on]", | ||
"type": " | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
Line 74: | Line 78: | ||
"internal size": { | "internal size": { | ||
"label": "Internal size", | "label": "Internal size", | ||
"description": "How big is this item on the inside? | "description": "How big is this item on the inside? Use {{infobox storage grid|grid1|grid2|grid3}} from the ingame YML files to define this.", | ||
"example": " | "example": "{{infobox storage grid|0,0,1,3|3,0,6,3|8,0,9,3}} (smugglers satchel)", | ||
"type": "line", | "type": "line", | ||
"suggested": true | "suggested": true | ||
Line 84: | Line 88: | ||
"type": "string", | "type": "string", | ||
"suggested": true, | "suggested": true, | ||
"example": "{{c|BloodPack}} / * {{c|MedkitCombatFilled}} | "example": "{{c|BloodPack}} / * {{c|MedkitCombatFilled}} [filled] * {{c|MedkitCombat}} [empty]" | ||
} | } | ||
}, | }, |
Revision as of 18:24, 30 March 2025
Uses template styles
This template uses template styles found in:
Populates categories
This template will add categories when used:
(though on what conditions — consult with the template itself)
(though on what conditions — consult with the template itself)
- Category:Items
- [[:Category:<category> items]]
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 | category | 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 |