Difference between revisions of "Template:Building"

From The Perfect Tower II
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<pre>
+
<templatedata>
{{Building
+
{
|Name=
+
    "description": "Template for buildings.",
|Image=
+
    "params": {
}}
+
        "Tier": {
</pre>
+
            "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": "Building color",
 +
            "type": "string",
 +
            "required": true
 +
        },
 +
"ColorCode": {
 +
            "label": "color code",
 +
            "type": "string",
 +
            "required": false
 +
        }
 +
    }
 +
}
 +
</templatedata>
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
Line 17: Line 43:
 
|-
 
|-
 
! Conversion rate
 
! Conversion rate
| {{{ConversionRate}}}
+
| {{{ConversionRate}}}:1
 
|-
 
|-
 
! Color theme
 
! Color theme
| <span style="color:{{{ColorCode}}}">{{{Color}}}</span>
+
| <span style="font-weight:bold;color:{{{ColorCode}}}">{{{Color}}}</span>
 
|-
 
|-
 
|}
 
|}

Latest revision as of 22:56, 12 November 2019

Template for buildings.

Template parameters

ParameterDescriptionTypeStatus
Building max tierTier

no description

Numberrequired
Building conversion rateConversionRate

no description

Numberrequired
Image of buildingImage

no description

Filerequired
Building colorColor

no description

Stringrequired
color codeColorCode

no description

Stringoptional