Template:Building: Difference between revisions
Speedybrain (talk | contribs) m Protected "Template:Building" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
Speedybrain (talk | contribs) Building infobox in the TPT2 brand kit style via Module:Infobox; same parameters. Source: wiki repo onwiki/Template/Building.wikitext |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <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. | ||
{{Building | <templatedata> | ||
{ | |||
"description": "Infobox for building pages.", | |||
}} | "params": { | ||
</ | "Tier": { | ||
"label": "Building max tier", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"ConversionRate": { | |||
"label": "Building conversion rate", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"Image": { | |||
"label": "Image of building", | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"Color": { | |||
"label": "Resource color", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"ColorCode": { | |||
"label": "Color code", | |||
"description": "No longer used: the color comes from the building", | |||
"type": "string", | |||
"deprecated": true | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | </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 |