Template:Top 16: Difference between revisions
From Archon Arcana - The KeyForge Wiki
Coffeesaga (talk | contribs) No edit summary |
Coffeesaga (talk | contribs) (Undo revision 23985 by Coffeesaga (talk)) Tag: Undo |
||
Line 13: | Line 13: | ||
:|header=''only use if the entry should be displayed after the header'' (optional; the header will automatically appear if the rank=1, so this is only needed if there is no 1st place ranking) | :|header=''only use if the entry should be displayed after the header'' (optional; the header will automatically appear if the rank=1, so this is only needed if there is no 1st place ranking) | ||
:|footer=''only use for the final entry of the table'' (will display the footer code to finish the table) | :|footer=''only use for the final entry of the table'' (will display the footer code to finish the table) | ||
</noinclude><templatestyles src="Template:Top_16/styles.css" /><nowiki> | |||
</nowiki><!-- Setting variables and determining what code to display -->{{#if: {{{header|}}} | |||
</nowiki> | |||
<!-- Setting variables and determining what code to display --> | |||
{{#if: {{{header|}}} | |||
|{{#vardefine:table|header}} | |{{#vardefine:table|header}} | ||
|{{#if: {{{footer|}}} | |{{#if: {{{footer|}}} | ||
Line 35: | Line 28: | ||
</nowiki><!-- header --> {{#ifeq: {{#var:table}}|header| | </nowiki><!-- header --> {{#ifeq: {{#var:table}}|header| | ||
< | <table cellpadding="4px" class="vtdeckstable"> | ||
<tr> | |||
<td class="vtdecksheader"></td> | |||
<td class="vtdecksheader">Deck Name</td> | |||
<td class="vtdecksheader vtdeckscenter">Set</td> | |||
<td class="vtdecksheader vtdeckscenter" style="width:78px">Houses</td> | |||
</tr> | |||
<tr> | |||
<td class="vtdecksrank {{#switch: {{{rank}}} | 1=rank1 | 2=rank2 | T4=rankt4 | T8=rankt8 | T16=rankt16 | 1 Triad=rank1 | 2 Triad=rank2 | T4 Triad=rankt4 | T8 Triad=rankt8 | T16 Triad=rankt16 }}">{{#switch: {{{rank}}} |1=1|2=2|T4=T4|T8=T8|T16=T16|1 Triad=|2 Triad=|T4 Triad=|T8 Triad=|T16 Triad=}}</td> | |||
<td class="vtdecksdeck">{{#if:{{{deck}}}|{{{deck}}}|''Deck not registered''}}</td> | |||
<td class="vtdecksset vtdecks{{{set}}}">{{{set}}}</td> | |||
<td class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</td> | |||
</tr> | |||
|}}<nowiki> | |||
</nowiki><!-- entry--> {{#ifeq: {{#var:table}}|entry| | </nowiki><!-- entry--> {{#ifeq: {{#var:table}}|entry| | ||
<tr> | |||
<td class="vtdecksrank {{#switch: {{{rank}}} | 1=rank1 | 2=rank2 | T4=rankt4 | T8=rankt8 | T16=rankt16 | 1 Triad=rank1 | 2 Triad=rank2 | T4 Triad=rankt4 | T8 Triad=rankt8 | T16 Triad=rankt16 }}">{{#switch: {{{rank}}} |1=1|2=2|T4=T4|T8=T8|T16=T16|1 Triad=|2 Triad=|T4 Triad=|T8 Triad=|T16 Triad=}}</td> | |||
<td class="vtdecksdeck">{{#if:{{{deck}}}|{{{deck}}}|''Deck not registered''}}</td> | |||
<td class="vtdecksset vtdecks{{{set}}}">{{{set}}}</td> | |||
<td class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</td> | |||
</tr> | |||
|}}<nowiki> | |||
</nowiki><!-- footer --> {{#ifeq: {{#var:table}}|footer| | </nowiki><!-- footer --> {{#ifeq: {{#var:table}}|footer| | ||
<tr> | |||
<td class="vtdecksrank {{#switch: {{{rank}}} | 1=rank1 | 2=rank2 | T4=rankt4 | T8=rankt8 | T16=rankt16 | 1 Triad=rank1 | 2 Triad=rank2 | T4 Triad=rankt4 | T8 Triad=rankt8 | T16 Triad=rankt16 }}">{{#switch: {{{rank}}} |1=1|2=2|T4=T4|T8=T8|T16=T16|1 Triad=|2 Triad=|T4 Triad=|T8 Triad=|T16 Triad=}}</td> | |||
<td class="vtdecksdeck">{{#if:{{{deck}}}|{{{deck}}}|''Deck not registered''}}</td> | |||
<td class="vtdecksset vtdecks{{{set}}}">{{{set}}}</td> | |||
<td class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</td> | |||
</tr> | |||
</table>|}} | |||
</ |
Revision as of 17:34, 5 March 2020
Description
This is a template that will display the top decks of a specific event.
How to Use
- |rank=deck rank (note: for triad entry #2 and #3, add 'Triad' to the label)
- Valid inputs: 1, 2, T4, T8, T16, 1 Triad, 2 Triad, T4 Triad, T8 Triad, T16 Triad
- |deck=deck name with a link to the Master Vault
- |set=set that the deck is from (e.g. CotA, AoA, WC, ...)
- |house1=house 1 name (e.g. Mars)
- |house2=house 2 name
- |house3=house 3 name
- |header=only use if the entry should be displayed after the header (optional; the header will automatically appear if the rank=1, so this is only needed if there is no 1st place ranking)
- |footer=only use for the final entry of the table (will display the footer code to finish the table)
{{{deck}}} {{{set}}} [[File:|alt={{{house1}}} icon|25px|frameless|link=]][[File:|alt={{{house2}}} icon|25px|frameless|link=]][[File:|alt={{{house3}}} icon|25px|frameless|link=]]