Difference between revisions of "Template:Infobox region"

From The Perfect Tower II
Jump to navigation Jump to search
(Use number template for displaying difficulties)
(Add unknown fallback for difficulties)
 
Line 14: Line 14:
 
|-
 
|-
 
!Easy
 
!Easy
|{{Number|{{{easy|}}}|suffix=%}}
+
|{{number|{{{easy|{{unknown}}}}}|suffix=%}}
 
|-
 
|-
 
!Medium
 
!Medium
|{{Number|{{{medium|}}}|suffix=%}}
+
|{{number|{{{medium|{{unknown}}}}}|suffix=%}}
 
|-
 
|-
 
!Hard
 
!Hard
|{{Number|{{{hard|}}}|suffix=%}}
+
|{{number|{{{hard|{{unknown}}}}}|suffix=%}}
 
|-
 
|-
 
!Insane
 
!Insane
|{{Number|{{{insane|}}}|suffix=%}}
+
|{{number|{{{insane|{{unknown}}}}}|suffix=%}}
 
|-
 
|-
 
!Nightmare
 
!Nightmare
|{{Number|{{{nightmare|}}}|suffix=%}}
+
|{{number|{{{nightmare|{{unknown}}}}}|suffix=%}}
 
|-
 
|-
 
!Impossible
 
!Impossible
|{{Number|{{{impossible|}}}|suffix=%}}
+
|{{number|{{{impossible|{{unknown}}}}}|suffix=%}}
 
|}[[Category:Regions]]</includeonly><noinclude>
 
|}[[Category:Regions]]</includeonly><noinclude>
 
<templatedata>
 
<templatedata>

Latest revision as of 00:50, 20 March 2021

Add an infobox for use on region pages

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Imageimage

Region image

Example
Forest.png
Filerequired
Laneslanes

Number of lanes in the region

Default
Unknown
Example
4
Numbersuggested
Enemiesenemies

List of element icons for the region, separated by spaces. Use template: Element

Default
Unknown
Example
{{Element|Neutral}} {{Element|Fire}}
Stringsuggested
Easyeasy

Easy difficulty modifier

Default
Unknown
Example
1500
Numbersuggested
Mediummedium

Medium difficulty modifier

Default
Unknown
Example
1500
Numbersuggested
Hardhard

Hard difficulty modifier

Default
Unknown
Example
1500
Numbersuggested
Insaneinsane

Insane difficulty modifier

Default
Unknown
Example
1500
Numbersuggested
Nightmarenightmare

Nightmare difficulty modifier

Default
Unknown
Example
1500
Numbersuggested
Impossibleimpossible

Impossible difficulty modifier

Default
Unknown
Example
1500
Numbersuggested