Template:Item infobox: Difference between revisions
removed type param from template (use categories instead) - though it would still show up on pages that use it |
"size" param now only holds the adjective size (eg huge) and (versus plus inventory size) due to adjective size not really correlating to actual inventory size. "size in inventory" param created to defined an actual inventory size (or multiple); meow; "internal size" param renamed to "inventory size" for consistency, though the old name is still supported on pages that use it. |
||
Line 11: | Line 11: | ||
|sections=Main, Weapon, Food, Processing, Chemical composition, Technical Information | |sections=Main, Weapon, Food, Processing, Chemical composition, Technical Information | ||
|Main=Categories, Type, Max stack, Size, Meow, | |Main=Categories, Type, Max stack, Size, Size in inventory, Meow, Inventory size | ||
|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 20: | Line 20: | ||
|Max stack = {{{max stack|}}} | |Max stack = {{{max stack|}}} | ||
|Size = {{{size|}}} | |Size = {{{size|}}} | ||
| | |Size in inventory = {{{size in inventory|}}} | ||
|Size in inventory_class = flat-bullet-list list-gap-medium | |||
|Meow = {{{meoow|}}} | |Meow = {{{meoow|}}} | ||
| | |Inventory size = {{{inventory size|{{{internal size|}}}}}} | ||
|Weapon = Fire mode, Wieldable, Damage, Fire rate, Range, Spread, Projectile prototype, Projectile speed, Projectile lifetime, Auto-recharge, Auto-recharge rate, Internal magazine, Internal magazine capacity | |Weapon = Fire mode, Wieldable, Damage, Fire rate, Range, Spread, Projectile prototype, Projectile speed, Projectile lifetime, Auto-recharge, Auto-recharge rate, Internal magazine, Internal magazine capacity | ||
Line 92: | Line 93: | ||
"size": { | "size": { | ||
"label": "Size", | "label": "Size", | ||
"description": "How big is this item? | "description": "How big is this item? For actual size in inventory, see the \"size in inventory\" parameter.", | ||
"example": " | "example": "Large", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true, | ||
"suggestedvalues": [ | |||
"Tiny", | |||
"Small", | |||
"Medium", | |||
"Normal", | |||
"Large", | |||
"Huge", | |||
"Ginormous" | |||
] | |||
}, | }, | ||
"max stack": { | "max stack": { | ||
"label": "Max Stack", | "label": "Max Stack", | ||
"example": "10, 30, 1", | "example": "10, 30, 1", | ||
"type": "line", | "type": "line", | ||
"suggested": true | "suggested": true | ||
Line 308: | Line 311: | ||
"description": "Does the projectile despawns after a certain time?", | "description": "Does the projectile despawns after a certain time?", | ||
"example": "1.5 seconds", | "example": "1.5 seconds", | ||
"type": "line", | |||
"suggested": true | |||
}, | |||
"size in inventory": { | |||
"label": "Size in inventory", | |||
"description": "Size of this item in a inventory (for example, backpack). Use the smaller number first (for example, 3x5, NOT 5x3). If it has multiple sizes (for example an on/off welding tool), specify them in a bullet list.", | |||
"example": "3x5 / * 2x2 * 5x2", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"inventory size": { | |||
"aliases": [ | |||
"internal size" | |||
], | |||
"label": "Inventory 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", | "type": "line", | ||
"suggested": true | "suggested": true | ||
Line 344: | Line 364: | ||
"max stack", | "max stack", | ||
"size", | "size", | ||
" | "size in inventory", | ||
"inventory size", | |||
"solution capacity", | "solution capacity", | ||
"solution", | "solution", |
Revision as of 15:53, 26 May 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 |
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 |
[FOOD] Edible by reptilians | edible by reptilians | If item is food, whether it's edible by reptilians (lizards).
| Boolean | suggested |
[FOOD] Edible by moths | edible by moths | If item is food, whether it's edible by moth people (moffs).
| Boolean | suggested |
[FOOD] Edible by everyone else | edible by rest | If item is food, whether it's edible by everyone except those in previous "Edible by X" parameters.
| Boolean | suggested |
[PROCESSING] Grindable | grindable | Can be grinded in a grinder?
| Boolean | suggested |
[PROCESSING] Juiceable | juiceable | Can be juiced in a grinder?
| Boolean | suggested |
[WEAPON] Fire mode | fire mode | no description
| Line | suggested |
[WEAPON] Can be wielded? | wieldable | no description
| Boolean | suggested |
[WEAPON] Damage | damage | no description
| String | suggested |
[WEAPON] Fire rate | fire rate | Shots per second
| String | suggested |
[WEAPON] Range | range | Range in tiles.
| String | suggested |
[WEAPON] Spread | spread | Spread when shooting, in degrees.
| String | suggested |
[WEAPON] Projectile prototype | projectile proto | no description
| Line | suggested |
[WEAPON] Projectile speed | projectile speed | no description
| String | suggested |
[WEAPON] Projectile lifetime | projectile lifetime | Does the projectile despawns after a certain time?
| Line | suggested |
[WEAPON] Auto recharge? | auto recharge | Whether the weapon recharges by itself.
| Boolean | suggested |
[WEAPON] Auto recharge rate | auto recharge rate | Rate of auto recharge, if any.
| Line | suggested |
[WEAPON] Has internal magazine? | internal magazine | Does the weapon has an internal unequipable magazine?
| Boolean | suggested |
[WEAPON] Internal magazine capacity | internal magazine capacity | no description
| Line | suggested |
Max Stack | max stack | no description
| Line | suggested |
Size | size | How big is this item? For actual size in inventory, see the "size in inventory" parameter.
| String | suggested |
Size in inventory | size in inventory | Size of this item in a inventory (for example, backpack). Use the smaller number first (for example, 3x5, NOT 5x3). If it has multiple sizes (for example an on/off welding tool), specify them in a bullet list.
| String | suggested |
Inventory size | inventory 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 |
Solution capacity | solution capacity | If an item can hold a solution, how much can it hold?
| Line | suggested |
Solution composition | solution | If an item holds a solution, which chemicals it is composed of? List them using a bullet list, each item starting on a new line.
| String | suggested |
Item ID | id | Can be found in .yml files. If there are multiple IDs, use a bullet list.
| String | suggested |