Jump to content

Template:Building: Difference between revisions

From The Perfect Tower II
Created page with "<noinclude> <pre> {{Building |Name= |Image= }} </pre> </noinclude><includeonly>{| class="wikitable" ! <span style="font-size: larger;">{{PAGENAME}}</span> |- ! Name | {{{Name..."
 
Building infobox in the TPT2 brand kit style via Module:Infobox; same parameters. Source: wiki repo onwiki/Template/Building.wikitext
 
(14 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": {
</noinclude><includeonly>{| class="wikitable"  
"label": "Building max tier",
! <span style="font-size: larger;">{{PAGENAME}}</span>
"type": "number",
|-
"required": true
! Name
},
| {{{Name|}}}
"ConversionRate": {
|-
"label": "Building conversion rate",
! Image
"type": "number",
| {{{Image|}}}
"required": true
|}
},
 
"Image": {
[[Category:Buildings]]
"label": "Image of building",
</includeonly>
"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>

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