Template:Trials time/doc

From TowerFall Wiki
Jump to navigation Jump to search

Used for creating flexible columns for display Trials times, such as on the Trials page or the various tower pages. It uses the .flex-column class defined in Mediawiki:Common.css.

Usage

Groups of this template should be enclosed in <div class="flex-column__container"></div>

Parameter Data type Optional Default Description
1 Page name Yes Name of the Tower to display, will be automatically linked.
image File name Yes Name of the image to use, without the File: prefix.
width CSS unit Yes 60px Width of the image and preferred width of the column. May flex a little to accommodate available space.
gold1, diamond1, pearl1,
gold2, diamond2, pearl2,
gold3, diamond3, pearl3
Wikitext Yes ? Time for each of the medals at each tier. If no times are given for a tier, that tier will be hidden. If at least one time is given for a tier, other times in that tier will be displayed as ?.

Example

<div class="flex-column__container">
{{trials time|Sacred Ground| image = sacredGroundTile.png
| gold1 = 7.500
| diamond1 = 3.000
| pearl1 = 1.700
| gold2 = 7.500
| diamond2 = 3.800
| pearl2 = 2.300
| gold3 = 7.500
| diamond3 = 3.800
| pearl3 = 2.400
}}
{{trials time|Twilight Spire| image = twilightSpireTile.png
| gold1 = 7.500
| diamond1 = 2.500
| pearl1 = 1.300
| gold2 = 7.500
| diamond2 = 3.200
| pearl2 = 1.200
| gold3 = 7.000
| diamond3 = 3.600
| pearl3 = 2.200
}}
{{trials time|Backfire| image = backfireTile.png
| gold1 = 7.500
| diamond1 = 4.000
| pearl1 = 2.400
| gold2 = 7.500
| diamond2 = 2.800
| pearl2 = 1.900
| gold3 = 6.500
| diamond3 = 4.000
| pearl3 = 3.000
}}
{{trials time|Flight| image = flightTile.png
| gold1 = 7.500
| diamond1 = 4.000
| pearl1 = 2.100
| gold2 = 10.000
| diamond2 = 5.000
| pearl2 = 4.100
| gold3 = 7.500
| diamond3 = 5.500
| pearl3 = 2.600
}}
</div>

Produces:

SacredGroundTile.png
IGold.png 7.500Diamond.png 3.000Pearl.png 1.700IIGold.png 7.500Diamond.png 3.800Pearl.png 2.300IIIGold.png 7.500Diamond.png 3.800Pearl.png 2.400
TwilightSpireTile.png
IGold.png 7.500Diamond.png 2.500Pearl.png 1.300IIGold.png 7.500Diamond.png 3.200Pearl.png 1.200IIIGold.png 7.000Diamond.png 3.600Pearl.png 2.200
BackfireTile.png
IGold.png 7.500Diamond.png 4.000Pearl.png 2.400IIGold.png 7.500Diamond.png 2.800Pearl.png 1.900IIIGold.png 6.500Diamond.png 4.000Pearl.png 3.000
FlightTile.png
IGold.png 7.500Diamond.png 4.000Pearl.png 2.100IIGold.png 10.000Diamond.png 5.000Pearl.png 4.100IIIGold.png 7.500Diamond.png 5.500Pearl.png 2.600