Template:Structure infobox: Difference between revisions
From Space Station 14 Wiki
Created page with "<includeonly>{{#invoke:Infobox|main |kind=structure |sep=, |title={{{title|}}} |image={{#if:{{{image|{{{img|}}}}}}|[[File:{{{image|{{{img}}}}}}|250px]]}} |caption={{{caption|}}} |sections=Main, Computer, Technical Information |Main=Categories, Type, Required access |Main_nolabel = yes |Categories = <ul>{{#invoke:params|with_name_matching|category|plain|for_each<!-- -->|<li>{{catt|$@}}Category:$@</li><!-- -->}}</ul> |Categories_class = flat-bullet-list |Type = {{..." |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|sections=Main, Computer, Technical Information | |sections=Main, Computer, Technical Information | ||
|Main=Categories | |Main=Categories, Required access | ||
|Main_nolabel = yes | |Main_nolabel = yes | ||
|Categories = <ul>{{#invoke:params|with_name_matching|category|plain|for_each<!-- | |Categories = <ul>{{#invoke:params|with_name_matching|category|plain|for_each<!-- | ||
Line 13: | Line 13: | ||
-->}}</ul> | -->}}</ul> | ||
|Categories_class = flat-bullet-list | |Categories_class = flat-bullet-list | ||
|Required access = {{{required access|}}} | |Required access = {{{required access|}}} | ||
|Required access_class = flat-bullet-list | |||
|Computer = | |Computer = Board | ||
|Board = {{{board|}}} | |Board = {{{board|}}} | ||
Line 26: | Line 23: | ||
|ID_class = flat-bullet-list list-gap-medium | |ID_class = flat-bullet-list list-gap-medium | ||
|Tags = {{{tags|}}} | |Tags = {{{tags|}}} | ||
|Tags_class = flat-bullet-list | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{docs}} | {{docs}} | ||
Line 32: | Line 30: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": {}, | "params": { | ||
"title": { | |||
"label": "Infobox title", | |||
"type": "line", | |||
"required": true, | |||
"example": "Regenerative Mesh", | |||
"description": "{{PAGENAME}} by default, using the title of the page.", | |||
"autovalue": "{{PAGENAME}}" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"example": "Regenerative Mesh Sprite.png", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"caption": { | |||
"label": "Image caption", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"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. DO NOT put links are any formatting here.", | |||
"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 | |||
}, | |||
"required access": { | |||
"label": "Required access", | |||
"description": "Does it need a special access? If complex and has varied access, use a bullet list.", | |||
"example": "{{access|Command}} / * {{access|None}}: XYZ * {{access|Cargo}}: ABC", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"board": { | |||
"label": "Board", | |||
"example": "{{item|IDComputerCircuitboard}}", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"id": { | |||
"label": "Prototype ID", | |||
"description": "Can be found in .yml files. If there are multiple IDs, use a bullet list.", | |||
"type": "string", | |||
"suggested": true, | |||
"example": "{{c|ComputerCargoOrders}}" | |||
}, | |||
"tags": { | |||
"label": "Prototype Tags", | |||
"description": "Define as a bullet list.", | |||
"example": "* Syndicate", | |||
"type": "string", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "Infobox for structures: machines, walls, windows, you name it. Big entity™ alternative to {{item infobox}}.", | "description": "Infobox for structures: machines, walls, windows, you name it. Big entity™ alternative to {{item infobox}}.", | ||
"format": "block" | "format": "block", | ||
"paramOrder": [ | |||
"title", | |||
"image", | |||
"caption", | |||
"category 1", | |||
"category 2", | |||
"category 3", | |||
"category 4", | |||
"category 5", | |||
"category 6", | |||
"category 7", | |||
"category 8", | |||
"required access", | |||
"board", | |||
"id", | |||
"tags" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 22:30, 15 May 2025
Infobox for structures: machines, walls, windows, you name it. Big entity™ alternative to {{item infobox}}.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Infobox title | title | {{PAGENAME}} by default, using the title of the page.
| Line | required |
Image | image | no description
| File | suggested |
Image caption | caption | no description | Line | 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. DO NOT put links are any formatting here.
| 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 |
Required access | required access | Does it need a special access? If complex and has varied access, use a bullet list.
| String | suggested |
Board | board | no description
| Line | suggested |
Prototype ID | id | Can be found in .yml files. If there are multiple IDs, use a bullet list.
| String | suggested |
Prototype Tags | tags | Define as a bullet list.
| String | suggested |