12,417
edits
Coffeesaga (talk | contribs) No edit summary |
Coffeesaga (talk | contribs) No edit summary |
||
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) | ||
:|img=''decklist file name'' (optional, will trigger the image display) | |||
:|deck link=''html link for the deck'' (needed if you have the image display) | |||
</noinclude><nowiki> | |||
</nowiki><!-- Setting variables and determining what code to display -->{{#if: {{{header|}}} | |||
</nowiki><templatestyles src="Template:Top_16/styles.css" /> | |||
<!-- Setting variables and determining what code to display --> | |||
{{#vardefine:link|<html><a href="{{{deck link}}}">{{{deck}}}</a></html>}} | |||
{{#if: {{{header|}}} | |||
|{{#vardefine:table|header}} | |{{#vardefine:table|header}} | ||
|{{#if: {{{footer|}}} | |{{#if: {{{footer|}}} | ||
Line 28: | Line 35: | ||
</nowiki><!-- header --> {{#ifeq: {{#var:table}}|header| | </nowiki><!-- header --> {{#ifeq: {{#var:table}}|header| | ||
< | <div class="vtdeckstable"> | ||
< | <div class="vtdecksheader"> | ||
< | <div class="vtdecksmenu1"></div> | ||
< | <div class="vtdecksmenu2">Deck Name</div> | ||
< | <div class="vtdecksmenu3">Set</div> | ||
< | <div class="vtdecksmenu4">Houses</div> | ||
</ | </div> | ||
< | {{#if: {{{img|}}}|<div class="hover_container">|}} | ||
< | <div class="text"> | ||
< | <div class="vtdeckswrap"> | ||
< | <div 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=}}</div> | ||
< | <div class="vtdecksdeck">{{#if: {{{deck|}}}|{{{deck}}}|''Deck not registered''}}</div> | ||
</ | <div class="vtdecksset vtdecks{{{set}}}">{{{set}}}</div> | ||
|}}<nowiki> | <div class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</div> | ||
</div> | |||
</div> | |||
{{#if: {{{img|}}}|<div class="image"> | |||
<div class="vtdeckswrap"> | |||
<div 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=}}</div> | |||
<div class="vtdecksdeck">{{#if: {{{deck|}}}|{{{deck link}}}|''Deck not registered''}}</div> | |||
<div class="vtdecksset vtdecks{{{set}}}">{{{set}}}</div> | |||
<div class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</div> | |||
</div> | |||
<div class="vtimagewrap">[[File:{{{img}}}|300px|frameless|center|link=]]</div> | |||
</div> | |||
</div>|}}|}}<nowiki> | |||
</nowiki><!-- entry--> {{#ifeq: {{#var:table}}|entry| | </nowiki><!-- entry--> {{#ifeq: {{#var:table}}|entry| | ||
< | {{#if: {{{img|}}}|<div class="hover_container">|}} | ||
< | <div class="text"> | ||
< | <div class="vtdeckswrap"> | ||
< | <div 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=}}</div> | ||
< | <div class="vtdecksdeck">{{#if: {{{deck|}}}|{{{deck}}}|''Deck not registered''}}</div> | ||
</ | <div class="vtdecksset vtdecks{{{set}}}">{{{set}}}</div> | ||
|}}<nowiki> | <div class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</div> | ||
</div> | |||
</div> | |||
{{#if: {{{img|}}}|<div class="image"> | |||
<div class="vtdeckswrap"> | |||
<div 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=}}</div> | |||
<div class="vtdecksdeck">{{#if: {{{deck|}}}|{{{deck link}}}|''Deck not registered''}}</div> | |||
<div class="vtdecksset vtdecks{{{set}}}">{{{set}}}</div> | |||
<div class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</div> | |||
</div> | |||
<div class="vtimagewrap">[[File:{{{img}}}|300px|frameless|center|link=]]</div> | |||
</div> | |||
</div>|}}|}}<nowiki> | |||
</nowiki><!-- footer --> {{#ifeq: {{#var:table}}|footer| | </nowiki><!-- footer --> {{#ifeq: {{#var:table}}|footer| | ||
< | {{#if: {{{img|}}}|<div class="hover_container">|}} | ||
< | <div class="text"> | ||
< | <div class="vtdeckswrap"> | ||
< | <div 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=}}</div> | ||
< | <div class="vtdecksdeck">{{#if: {{{deck|}}}|{{{deck}}}|''Deck not registered''}}</div> | ||
</ | <div class="vtdecksset vtdecks{{{set}}}">{{{set}}}</div> | ||
</ | <div class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</div> | ||
</div> | |||
</div> | |||
{{#if: {{{img|}}}|<div class="image"> | |||
<div class="vtdeckswrap"> | |||
<div 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=}}</div> | |||
<div class="vtdecksdeck">{{#if: {{{deck|}}}|{{{deck link}}}|''Deck not registered''}}</div> | |||
<div class="vtdecksset vtdecks{{{set}}}">{{{set}}}</div> | |||
<div class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</div> | |||
</div> | |||
<div class="vtimagewrap">[[File:{{{img}}}|300px|frameless|center|link=]]</div> | |||
</div> | |||
</div>|}} | |||
</div>|}} |