Template:TK: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>RivalRowan
(Initial template for ticket counters - does not yet include ticket counter costs (white ticket symbols with centered black numbers))
 
>RivalRowan
No edit summary
 
Line 1: Line 1:
{{Symbol|TK|tooltip=Ticket}}<noinclude>{{Symbol cat}}</noinclude>
<includeonly>{{#vardefine:font-styles|position:absolute; color:black; font-weight:bold;}}
<span style="position:relative;">{{#switch:{{#sub:{{{1|X}}}|0|1}}{{#len:{{{1|X}}}}}
|01={{Symbol|TK|size={{{size|x30px}}}|tooltip=Ticket: 0}}<span style="left:8.1px; bottom: 0.25px; font-size:11px; {{#var:font-styles}}">0</span>
|X1={{Symbol|TK|size={{{size|x30px}}}|tooltip=Ticket: X}}<span style="left:8.1px; bottom: 0.25px; font-size:11px; {{#var:font-styles}}">X</span>
|#default={{Symbol|TK|size={{{size|x30px}}}|tooltip=Ticket: {{#sub:{{{1|}}}|1}}}}<span style="left:8.1px; bottom: 0.2px; font-size:11px; {{#var:font-styles}}">{{{1|}}}</span>
}}</span>
</includeonly>
 
<noinclude>The Ticket template only has one parameter for the ticket cost.
{|
!Code !! Result
|-
|<nowiki>{{TK|}}</nowiki> || {{TK|}}
|-
|<nowiki>{{TK|0}}</nowiki> || {{TK|0}}
|-
|<nowiki>{{TK|1}}</nowiki> || {{TK|1}}
|-
|<nowiki>{{TK|2}}</nowiki> || {{TK|2}}
|-
|<nowiki>{{TK|3}}</nowiki> || {{TK|3}}
|-
|<nowiki>{{TK|4}}</nowiki> || {{TK|4}}
|-
|<nowiki>{{TK|5}}</nowiki> || {{TK|5}}
|-
|<nowiki>{{TK|6}}</nowiki> || {{TK|6}}
|-
|<nowiki>{{TK|7}}</nowiki> || {{TK|7}}
|-
|<nowiki>{{TK|8}}</nowiki> || {{TK|8}}
|-
|<nowiki>{{TK|9}}</nowiki> || {{TK|9}}
|-
|<nowiki>{{TK|X}}</nowiki> || {{TK|X}}
|}
 
{{Symbol cat}}</noinclude>

Latest revision as of 04:29, 2 June 2023


The Ticket template only has one parameter for the ticket cost.

Code Result
{{TK|}}

{TK}


{{TK|0}}

{TK}0


{{TK|1}}

{TK}1


{{TK|2}}

{TK}2


{{TK|3}}

{TK}3


{{TK|4}}

{TK}4


{{TK|5}}

{TK}5


{{TK|6}}

{TK}6


{{TK|7}}

{TK}7


{{TK|8}}

{TK}8


{{TK|9}}

{TK}9


{{TK|X}}

{TK}X