Template:Item infobox: Difference between revisions

From Space Station 14 Wiki
Police (talk | contribs)
No edit summary
Aliser (talk | contribs)
updated internal size docs
(16 intermediate revisions by 2 users 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=,
|title={{{title|}}}
|title={{{title|}}}
|image={{#if:{{{image|{{{img|}}}}}}|[[File:{{{image|{{{img}}}}}}|250px]]}}
|image={{#if:{{{image|{{{img|}}}}}}|[[File:{{{image|{{{img}}}}}}|250px]]}}
|sections=Main
|sections=Main, Technical Information


|Main=Category, Type, Max stack, Size, Meow, Internal Size
|Main=Category, Type, Max stack, Size, Meow, Internal Size
Line 10: Line 12:
|Category = {{{category|}}}
|Category = {{{category|}}}
|Type = {{{type|}}}
|Type = {{{type|}}}
|Max stack = {{{maxstack|}}}
|Max stack = {{{max stack|}}}
|Size = {{{size|}}}
|Size = {{{size|}}}
|Size_class = flat-bullet-list list-gap-medium
|Meow = {{{meoow|}}}
|Meow = {{{meoow|}}}
|Internal Size = {{{internalsize|}}}
|Internal Size = {{{internal size|}}}
}}</includeonly><noinclude>
 
{{docs}}
|Technical Information = ID
|ID = {{{id|}}}
|ID_class = flat-bullet-list list-gap-medium
}}<!--
 
-->[[Category:Items]]<!--
-->{{#if: {{{category|}}}|[[Category:{{{category}}} items]]}}</includeonly><noinclude>
{{docs|bb=
{{uses template styles}}
{{template populates categories|Items|<category> items}}
}}


[[Category:Infobox templates]]
[[Category:Infobox templates]]
Line 25: Line 38:
"type": "line",
"type": "line",
"required": true,
"required": true,
"example": "Regenerative Mesh"
"example": "Regenerative Mesh",
"description": "{{PAGENAME}} by default, using the title of the page.",
"autovalue": "{{PAGENAME}}"
},
},
"image": {
"image": {
"label": "Image",
"label": "Image",
"example": "File:Regenerative Mesh Sprite.png",
"example": "Regenerative Mesh Sprite.png",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true,
"suggested": true,
Line 41: Line 56:
"suggested": true,
"suggested": true,
"example": "Advanced topicals, tools, ect"
"example": "Advanced topicals, tools, ect"
},
"maxstack": {
"label": "Max Stack",
"example": "10, 30, 1",
"type": "line",
"suggested": true
},
},
"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": "line",
"type": "string",
"suggested": true
"suggested": true
},
},
Line 60: Line 69:
"type": "line",
"type": "line",
"suggested": true
"suggested": true
},
"max stack": {
"label": "Max Stack",
"example": "10, 30, 1",
"type": "line",
"suggested": true
},
"internal size": {
"label": "Internal size",
"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": "{{infobox storage grid|0,0,1,3|3,0,6,3|8,0,9,3}} (smugglers satchel)",
"type": "line",
"suggested": true
},
"id": {
"label": "Item ID",
"description": "Can be found in .yml files. If there are multiple IDs, use a bullet list.",
"type": "string",
"suggested": true,
"example": "{{c|BloodPack}} / * {{c|MedkitCombatFilled}} [filled] * {{c|MedkitCombat}} [empty]"
}
}
},
},
Line 67: Line 96:
"category",
"category",
"type",
"type",
"maxstack",
"max stack",
"size"
"size",
"internal size",
"id"
],
],
"description": "Infobox templates for roles/jobs.",
"description": "Infobox templates for roles/jobs.",
"format": "inline"
"format": "block"
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Revision as of 18:24, 30 March 2025

Template documentation
view or edit this documentation about template documentation
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)

Template:Item infobox/doc

Infobox templates for roles/jobs.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Infobox titletitle

{{PAGENAME}} by default, using the title of the page.

Example
Regenerative Mesh
Auto value
{{PAGENAME}}
Linerequired
Imageimage img

no description

Example
Regenerative Mesh Sprite.png
Filesuggested
Categorycategory

no description

Example
Medical
Linesuggested
Typetype

no description

Example
Advanced topicals, tools, ect
Linesuggested
Max Stackmax stack

no description

Example
10, 30, 1
Linesuggested
Sizesize

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
{{isize|Large}} (for predefined sizes) OR 1x2, 2x4, 1x5 (for specific sizes) OR * 1x2 [off] * 4x2 [on]
Stringsuggested
Internal sizeinternal size

How big is this item on the inside? Use {{infobox storage grid|grid1|grid2|grid3}} from the ingame YML files to define this.

Example
{{infobox storage grid|0,0,1,3|3,0,6,3|8,0,9,3}} (smugglers satchel)
Linesuggested
Item IDid

Can be found in .yml files. If there are multiple IDs, use a bullet list.

Example
{{c|BloodPack}} / * {{c|MedkitCombatFilled}} [filled] * {{c|MedkitCombat}} [empty]
Stringsuggested