Difference between revisions of "Template:Cost"

From The Perfect Tower II
Jump to navigation Jump to search
(Created page with "{{resource|{{{2|White}}}}} {{number|{{{1|0}}}}}<noinclude> <templatedata> { "params": { "1": { "label": "Cost", "description": "Cost, as a standard number or in...")
 
(use number icon parameter in order to preserve number sorting)
 
Line 1: Line 1:
{{resource|{{{2|White}}}}}&nbsp;{{number|{{{1|0}}}}}<noinclude>
+
{{number|{{{1|0}}}|icon={{resource|{{{2|White}}}}}}}<noinclude>
 
<templatedata>
 
<templatedata>
 
{
 
{

Latest revision as of 02:36, 27 March 2021

White resource

Display a resource cost with icon

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Cost1

Cost, as a standard number or in scientific notation

Default
0
Example
4.5e7
Numberrequired
Resource2

Resource (one of: White, Yellow, Orange, Red, Purple, Pink, Green, Cyan, Lightblue, Blue, Grey, Brown, Black)

Default
White
Example
Red
Stringsuggested