Template:Building: Difference between revisions
Speedybrain (talk | contribs) No edit summary |
Speedybrain (talk | contribs) Building infobox in the TPT2 brand kit style via Module:Infobox; same parameters. Source: wiki repo onwiki/Template/Building.wikitext |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Infobox|building}}</includeonly><noinclude> | ||
{ | Infobox for the 12 town buildings, in the TPT2 brand kit's style ([[Module:Infobox]]). The building's color, hexagon and tier mark come from the page name, so <code>ColorCode</code> is no longer needed. | ||
</ | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Infobox for building pages.", | |||
"params": { | |||
"Tier": { | |||
"label": "Building max tier", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"ConversionRate": { | "ConversionRate": { | ||
"label": "Building conversion rate", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"Image": { | "Image": { | ||
"label": "Image of building", | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"Color": { | "Color": { | ||
"label": "Resource color", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"ColorCode": { | "ColorCode": { | ||
"label": "Color code", | |||
"description": "No longer used: the color comes from the building", | |||
"type": "string", | |||
"deprecated": true | |||
} | |||
} | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | |||
Latest revision as of 11:58, 6 October 2026
Infobox for the 12 town buildings, in the TPT2 brand kit's style (Module:Infobox). The building's color, hexagon and tier mark come from the page name, so ColorCode is no longer needed.
Infobox for building pages.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Building max tier | Tier | no description | Number | required |
| Building conversion rate | ConversionRate | no description | Number | required |
| Image of building | Image | no description | File | required |
| Resource color | Color | no description | String | required |
| Color code | ColorCode | No longer used: the color comes from the building | String | deprecated |