Difference between revisions of "Template:Errata table"

From Yugipedia
Jump to: navigation, search
(convert to HTML, cells always have the same width, various other tweaks)
Line 1: Line 1:
{| border="1" cellspacing="0" width="100%"
+
<table class="wikitable" style="width: 100%;">
{{ #if: {{{lore4|}}}{{{name4|}}}|
+
<tr style="color: #FF0;">
{{!}}- valign="center" style="background:#800000; color:#FFFF00"
+
{{ #if: {{{lore5|}}}{{{name5|}}} | <th style="background: #800000; width: 16.66%">Fifth Errata'd Card</th> }}
{{ #if: {{{lore5|}}}|! Fifth Errata'd Card}}
+
{{ #if: {{{lore4|}}}{{{name4|}}} | <th style="background: #800000; width: {{ #if: {{{lore5|}}}{{{name5|}}} | 16.66 | 20 }}%">Fourth Errata'd Card</th> }}
{{ #if: {{{lore4|}}}{{{name4|}}}|! Fourth Errata'd Card}}
+
{{ #if: {{{lore3|}}}{{{name3|}}} | <th style="background: #800000; width: {{ #if: {{{lore5|}}}{{{name5|}}} | 16.66 | {{ #if: {{{lore4|}}}{{{name4|}}} | 20 | 25 }} }}%">Third Errata'd Card</th> }}
{{ #if: {{{lore3|}}}{{{name3|}}}|! Third Errata'd Card}}
+
{{ #if: {{{lore2|}}}{{{name2|}}} | <th style="background: #800000; width: {{ #if: {{{lore5|}}}{{{name5|}}} | 16.66 | {{ #if: {{{lore4|}}}{{{name4|}}} | 20 | {{ #if: {{{lore3|}}}{{{name3|}}} | 25 | 33.33 }} }} }}%">Second Errata'd Card</th> }}
{{ #if: {{{lore2|}}}{{{name2|}}}|! Second Errata'd Card}}
+
<th style="background: #800000; width: {{ #if: {{{lore5|}}}{{{name5|}}} | 16.66 | {{ #if: {{{lore4|}}}{{{name4|}}} | 20 | {{ #if: {{{lore3|}}}{{{name3|}}} | 25 | {{ #if: {{{lore2|}}}{{{name2|}}} | 33.33 | 50 }} }} }} }}%">First Errata'd Card</th>
{{!}}- valign="top"
+
<th style="background: #800000; width: {{ #if: {{{lore5|}}}{{{name5|}}} | 16.66 | {{ #if: {{{lore4|}}}{{{name4|}}} | 20 | {{ #if: {{{lore3|}}}{{{name3|}}} | 25 | {{ #if: {{{lore2|}}}{{{name2|}}} | 33.33 | 50 }} }} }} }}%">Original Card</th>
{{ #if: {{{lore5|}}}|{{!}} {{ #if: {{{name5|}}} | <center>{{{name5}}}</center>}}}}
+
</tr>
{{ #if: {{{lore4|}}}{{{name4|}}}|{{!}} {{ #if: {{{name4|}}} | <center>{{{name4}}}</center>}}}}
+
{{ #if: {{{name0|}}}{{{name1|}}}{{{name2|}}}{{{name3|}}}{{{name4|}}}{{{name5|}}} | <tr style="text-align: center;">
{{ #if: {{{lore3|}}}{{{name3|}}}|{{!}} {{ #if: {{{name3|}}} | <center>{{{name3}}}</center>}}}}
+
{{ #if: {{{name5|}}} | <td>{{{name5}}}</td> }}
{{ #if: {{{lore2|}}}{{{name2|}}}|{{!}} {{ #if: {{{name2|}}} | <center>{{{name2}}}</center>}}}}
+
{{ #if: {{{name4|}}} | <td>{{{name4}}}</td> }}
{{!}}- valign="top"
+
{{ #if: {{{name3|}}} | <td>{{{name3}}}</td> }}
{{ #if: {{{lore5|}}}|{{!}} <p style="padding: 0px 5px">{{{lore5}}}</p>}}
+
{{ #if: {{{name2|}}} | <td>{{{name2}}}</td> }}
{{ #if: {{{lore4|}}}|{{!}} <p style="padding: 0px 5px">{{{lore4}}}</p>}}
+
<td>{{{name1|}}}</td>
{{ #if: {{{lore3|}}}|{{!}} <p style="padding: 0px 5px">{{{lore3}}}</p>}}
+
<td>{{{name0|}}}</td>
{{ #if: {{{lore2|}}}|{{!}} <p style="padding: 0px 5px">{{{lore2}}}</p>}}
+
</tr> }}
{{!}}- valign="top"
+
{{ #if: {{{lore0|}}}{{{lore1|}}}{{{lore2|}}}{{{lore3|}}}{{{lore4|}}}{{{lore5|}}} | <tr style="vertical-align: top;">
{{ #if: {{{lore5|}}}|{{!}} [[{{{image5}}}{{!}}center{{!}}thumb{{!}}<center>{{{cap5}}}</center>]]}}
+
{{ #if: {{{lore5|}}} | <td>{{{lore5}}}</td> }}
{{ #if: {{{lore4|}}}{{{name4|}}}|{{!}} [[{{{image4}}}{{!}}center{{!}}thumb{{!}}<center>{{{cap4}}}</center>]]}}
+
{{ #if: {{{lore4|}}} | <td>{{{lore4}}}</td> }}
{{ #if: {{{lore3|}}}{{{name3|}}}|{{!}} [[{{{image3}}}{{!}}center{{!}}thumb{{!}}<center>{{{cap3}}}</center>]]}}
+
{{ #if: {{{lore3|}}} | <td>{{{lore3}}}</td> }}
{{ #if: {{{lore2|}}}{{{name2|}}}|{{!}} [[{{{image2}}}{{!}}center{{!}}thumb{{!}}<center>{{{cap2}}}</center>]]}}
+
{{ #if: {{{lore2|}}} | <td>{{{lore2}}}</td> }}
}}
+
<td>{{{lore1|}}}</td>
|- valign="center" style="background:#800000; color:#FFFF00"
+
<td>{{{lore0|}}}</td>
{{ #if: {{{lore4|}}}{{{name4|}}}||{{ #if: {{{lore3|}}}{{{name3|}}}|! Third Errata'd Card}}
+
</tr> }}
{{ #if: {{{lore2|}}}{{{name2|}}}|! Second Errata'd Card}}}}
+
{{ #if: {{{lore0T|}}}{{{lore1T|}}} | <tr>
{{ #if: {{{lore1|}}}{{{name1|}}}|! First Errata'd Card}}
+
<td>'''Translated:'''<br />{{{lore1T}}}</td>
! Original Card
+
<td>'''Translated:'''<br />{{{lore0T}}}</td>
|- valign="top"
+
</tr> }}
{{ #if: {{{lore4|}}}{{{name4|}}}||{{ #if: {{{lore3|}}}{{{name3|}}}|{{!}} {{ #if: {{{name3|}}} | <center>{{{name3}}}</center>}}}}
+
<tr>
{{ #if: {{{lore2|}}}{{{name2|}}}|{{!}} {{ #if: {{{name2|}}} | <center>{{{name2}}}</center>}}}}}}
+
{{ #if: {{{lore5|}}}{{{name5|}}} | <td>[[File:{{ #explode: {{{image5}}} | : | -1 }}|thumb|center|<center>{{{cap5}}}</center>]]</td> }}
{{ #if: {{{lore1|}}}{{{name1|}}}|{{!}} {{ #if: {{{name1|}}} | <center>{{{name1}}}</center>}}}}
+
{{ #if: {{{lore4|}}}{{{name4|}}} | <td>[[File:{{ #explode: {{{image4}}} | : | -1 }}|thumb|center|<center>{{{cap4}}}</center>]]</td> }}
{{ #if: {{{lore0|}}}{{{name0|}}}|{{!}} {{ #if: {{{name0|}}} | <center>{{{name0}}}</center>}}}}
+
{{ #if: {{{lore3|}}}{{{name3|}}} | <td>[[File:{{ #explode: {{{image3}}} | : | -1 }}|thumb|center|<center>{{{cap3}}}</center>]]</td> }}
|- valign="top"
+
{{ #if: {{{lore2|}}}{{{name2|}}} | <td>[[File:{{ #explode: {{{image2}}} | : | -1 }}|thumb|center|<center>{{{cap2}}}</center>]]</td> }}
{{ #if: {{{lore4|}}}{{{name4|}}}||{{ #if: {{{lore3|}}}|{{!}} <p align="justify" style="padding: 0px 5px">{{{lore3}}}</p>}}
+
{{ #if: {{{lore1|}}}{{{name1|}}} | <td>[[File:{{ #explode: {{{image1}}} | : | -1 }}|thumb|center|<center>{{{cap1}}}</center>]]</td> }}
{{ #if: {{{lore2|}}}|{{!}} <p style="padding: 0px 5px">{{{lore2}}}</p>}}}}
+
{{ #if: {{{lore0|}}}{{{name0|}}} | <td>[[File:{{ #explode: {{{image0}}} | : | -1 }}|thumb|center|<center>{{{cap0}}}</center>]]</td> }}
{{ #if: {{{lore1|}}}|{{!}} <p style="padding: 0px 5px">{{{lore1}}}</p>}}
+
</tr>
{{ #if: {{{lore0|}}}|{{!}} <p style="padding: 0px 5px">{{{lore0}}}</p>}}
+
</table><noinclude>
{{ #if: {{{lore1T|}}} |
+
{{Documentation}}
{{!}}-
 
{{!}} '''Translated''':<br/>{{{lore1T}}}
 
{{!}} '''Translated''':<br/>{{{lore0T}}}
 
}}
 
|- valign="top"
 
{{ #if: {{{lore4|}}}{{{name4|}}}||{{ #if: {{{lore3|}}}{{{name3|}}}|{{!}} [[{{{image3}}}{{!}}center{{!}}thumb{{!}}<center>{{{cap3}}}</center>]]}}
 
{{ #if: {{{lore2|}}}{{{name2|}}}|{{!}} [[{{{image2}}}{{!}}center{{!}}thumb{{!}}<center>{{{cap2}}}</center>]]}}}}
 
{{ #if: {{{lore1|}}}{{{name1|}}}|{{!}} [[{{{image1}}}{{!}}center{{!}}thumb{{!}}<center>{{{cap1}}}</center>]]}}
 
{{ #if: {{{lore0|}}}{{{name0|}}}|{{!}} [[{{{image0}}}{{!}}center{{!}}thumb{{!}}<center>{{{cap0}}}</center>]]}}
 
|}<noinclude>
 
 
 
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 07:32, 30 July 2011

First Errata'd Card Original Card