Difference between revisions of "Template:Building"

From The Perfect Tower II
Jump to navigation Jump to search
 
(6 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>
{| class="wikitable" style="margin-left: auto; margin-right: 0px;"
+
{| class="wikitable" style="float:right"
 
!colspan="2"|<span>{{PAGENAME}}</span>
 
!colspan="2"|<span>{{PAGENAME}}</span>
 
|-
 
|-
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