Template:Top 16: Difference between revisions

From Archon Arcana - The KeyForge Wiki
no edit summary
No edit summary
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><templatestyles src="Template:Top_16/styles.css" /><nowiki>




</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|
<table cellpadding="4px" class="vtdeckstable">
<div class="vtdeckstable">
<tr>
  <div class="vtdecksheader">
<td class="vtdecksheader"></td>
    <div class="vtdecksmenu1"></div>
<td class="vtdecksheader">Deck Name</td>
    <div class="vtdecksmenu2">Deck Name</div>
<td class="vtdecksheader vtdeckscenter">Set</td>
    <div class="vtdecksmenu3">Set</div>
<td class="vtdecksheader vtdeckscenter" style="width:78px">Houses</td>
    <div class="vtdecksmenu4">Houses</div>
</tr>
  </div>
<tr>
  {{#if: {{{img|}}}|<div class="hover_container">|}}
<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>
    <div class="text">
<td class="vtdecksdeck">{{#if:{{{deck}}}|{{{deck}}}|''Deck not registered''}}</td>
      <div class="vtdeckswrap">
<td class="vtdecksset vtdecks{{{set}}}">{{{set}}}</td>
        <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>
<td class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</td>
        <div class="vtdecksdeck">{{#if: {{{deck|}}}|{{{deck}}}|''Deck not registered''}}</div>
</tr>
        <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|
<tr>
  {{#if: {{{img|}}}|<div class="hover_container">|}}
<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>
    <div class="text">
<td class="vtdecksdeck">{{#if:{{{deck}}}|{{{deck}}}|''Deck not registered''}}</td>
      <div class="vtdeckswrap">
<td class="vtdecksset vtdecks{{{set}}}">{{{set}}}</td>
        <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>
<td class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</td>
        <div class="vtdecksdeck">{{#if: {{{deck|}}}|{{{deck}}}|''Deck not registered''}}</div>
</tr>
        <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|
<tr>
{{#if: {{{img|}}}|<div class="hover_container">|}}
<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>
    <div class="text">
<td class="vtdecksdeck">{{#if:{{{deck}}}|{{{deck}}}|''Deck not registered''}}</td>
      <div class="vtdeckswrap">
<td class="vtdecksset vtdecks{{{set}}}">{{{set}}}</td>
        <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>
<td class="vtdeckshouses">{{House|House={{{house1}}}}}{{House|House={{{house2}}}}}{{House|House={{{house3}}}}}</td>
        <div class="vtdecksdeck">{{#if: {{{deck|}}}|{{{deck}}}|''Deck not registered''}}</div>
</tr>
        <div class="vtdecksset vtdecks{{{set}}}">{{{set}}}</div>
</table>|}}
        <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>|}}