Jump to content

Template:Building: Difference between revisions

From The Perfect Tower II
No edit summary
Building infobox in the TPT2 brand kit style via Module:Infobox; same parameters. Source: wiki repo onwiki/Template/Building.wikitext
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{#invoke:Infobox|building}}</includeonly><noinclude>
<pre>
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>
|Name=
{
|Image=
"description": "Infobox for building pages.",
}}
"params": {
</pre>
"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>
<includeonly>
{| class="wikitable" style="margin-left: auto; margin-right: 0px;"
!colspan="2"|<span>{{PAGENAME}}</span>
|-
!colspan="2"|[[File:{{{Image|}}}|frameless]]
|-
! Name
| {{{Name|}}}
|}
[[Category:Buildings]]
</includeonly>

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Building max tierTier

no description

Numberrequired
Building conversion rateConversionRate

no description

Numberrequired
Image of buildingImage

no description

Filerequired
Resource colorColor

no description

Stringrequired
Color codeColorCode

No longer used: the color comes from the building

Stringdeprecated