Difference between revisions of "Template:CrossTable"

From QWiki
m (Tweak to remove dotaicons)
m (Tweak to remove dotaicons)
Line 1: Line 1:
 
<includeonly><div class="table-responsive"><table class="oldtable table table-bordered table-condensed crosstable"><!--
 
<includeonly><div class="table-responsive"><table class="oldtable table table-bordered table-condensed crosstable"><!--
 
-->{{#if:{{{team1|}}}|<tr class="crosstable-tr"><!--
 
-->{{#if:{{{team1|}}}|<tr class="crosstable-tr"><!--
--><th>{{#ifeq:{{{team1dota|}}}|true|{{TeamIcon/dota|{{{team1}}}}}|{{TeamIcon/{{{team1}}}}}}}</th><!--
+
--><th>{{{team1}}}</th><!--
 
--><td class="crosstable-bgc-cross"></td><!--
 
--><td class="crosstable-bgc-cross"></td><!--
 
-->{{#if:{{{team2|}}}|{{#if:{{{1vs2result|}}}{{{1vs2resultvs|}}}|<td class="crosstable-bgc-r{{{1vs2result|}}}-r{{{1vs2resultvs|}}}">'''{{#if:{{{1vs2link|}}}|[[{{{1vs2link}}}|<span class="crosstable-bgc-span">{{#if:{{{1vs2abbr|}}}|<abbr title="{{{1vs2abbr}}}">{{{1vs2result}}}-{{{1vs2resultvs}}}</abbr>|{{{1vs2result}}}-{{{1vs2resultvs}}}}}</span>]]|{{#if:{{{1vs2abbr|}}}|<abbr title="{{{1vs2abbr}}}">{{{1vs2result}}}-{{{1vs2resultvs}}}</abbr>|{{{1vs2result}}}-{{{1vs2resultvs}}}}}}}'''</td>|<td></td>}}}}<!--
 
-->{{#if:{{{team2|}}}|{{#if:{{{1vs2result|}}}{{{1vs2resultvs|}}}|<td class="crosstable-bgc-r{{{1vs2result|}}}-r{{{1vs2resultvs|}}}">'''{{#if:{{{1vs2link|}}}|[[{{{1vs2link}}}|<span class="crosstable-bgc-span">{{#if:{{{1vs2abbr|}}}|<abbr title="{{{1vs2abbr}}}">{{{1vs2result}}}-{{{1vs2resultvs}}}</abbr>|{{{1vs2result}}}-{{{1vs2resultvs}}}}}</span>]]|{{#if:{{{1vs2abbr|}}}|<abbr title="{{{1vs2abbr}}}">{{{1vs2result}}}-{{{1vs2resultvs}}}</abbr>|{{{1vs2result}}}-{{{1vs2resultvs}}}}}}}'''</td>|<td></td>}}}}<!--
Line 131: Line 131:
 
--></tr>}}<!--
 
--></tr>}}<!--
 
--><tr><th></th><!--
 
--><tr><th></th><!--
-->{{#if:{{{team1|}}}|<th>{{{team1|}}}|JANNE</th>}}<!--
+
-->{{#if:{{{team1|}}}|<th>{{{team1|}}}|</th>}}<!--
-->{{#if:{{{team2|}}}|<th>{{#ifeq:{{{team2dota|}}}|true|{{TeamIcon/dota|{{{team2}}}}}|{{TeamIcon/{{{team2}}}}}}}</th>}}<!--
+
-->{{#if:{{{team2|}}}|<th>{{{team2|}}}|</th>}}<!--
-->{{#if:{{{team3|}}}|<th>{{#ifeq:{{{team3dota|}}}|true|{{TeamIcon/dota|{{{team3}}}}}|{{TeamIcon/{{{team3}}}}}}}</th>}}<!--
+
-->{{#if:{{{team3|}}}|<th>{{{team3|}}}|</th>}}<!--
-->{{#if:{{{team4|}}}|<th>{{#ifeq:{{{team4dota|}}}|true|{{TeamIcon/dota|{{{team4}}}}}|{{TeamIcon/{{{team4}}}}}}}</th>}}<!--
+
-->{{#if:{{{team4|}}}|<th>{{{team4|}}}|</th>}}<!--
-->{{#if:{{{team5|}}}|<th>{{#ifeq:{{{team5dota|}}}|true|{{TeamIcon/dota|{{{team5}}}}}|{{TeamIcon/{{{team5}}}}}}}</th>}}<!--
+
-->{{#if:{{{team5|}}}|<th>{{{team5|}}}|</th>}}<!--
-->{{#if:{{{team6|}}}|<th>{{#ifeq:{{{team6dota|}}}|true|{{TeamIcon/dota|{{{team6}}}}}|{{TeamIcon/{{{team6}}}}}}}</th>}}<!--
+
-->{{#if:{{{team6|}}}|<th>{{{team6|}}}|</th>}}<!--
-->{{#if:{{{team7|}}}|<th>{{#ifeq:{{{team7dota|}}}|true|{{TeamIcon/dota|{{{team7}}}}}|{{TeamIcon/{{{team7}}}}}}}</th>}}<!--
+
-->{{#if:{{{team7|}}}|<th>{{{team7|}}}|</th>}}<!--
-->{{#if:{{{team8|}}}|<th>{{#ifeq:{{{team8dota|}}}|true|{{TeamIcon/dota|{{{team8}}}}}|{{TeamIcon/{{{team8}}}}}}}</th>}}<!--
+
-->{{#if:{{{team8|}}}|<th>{{{team8|}}}|</th>}}<!--
-->{{#if:{{{team9|}}}|<th>{{#ifeq:{{{team9dota|}}}|true|{{TeamIcon/dota|{{{team9}}}}}|{{TeamIcon/{{{team9}}}}}}}</th>}}<!--
+
-->{{#if:{{{team9|}}}|<th>{{{team9|}}}|</th>}}<!--
-->{{#if:{{{team10|}}}|<th>{{#ifeq:{{{team10dota|}}}|true|{{TeamIcon/dota|{{{team10}}}}}|{{TeamIcon/{{{team10}}}}}}}</th>}}<!--
+
-->{{#if:{{{team10|}}}|<th>{{{team10|}}}|</th>}}<!--
 
--></tr><!--
 
--></tr><!--
 
--></table></div></includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude>
 
--></table></div></includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude>

Revision as of 08:54, 7 September 2021

Documentation (view - edit)

Template:CrossTable/doc