Difference between revisions of "Template:Errata table"

From Yugipedia
Jump to: navigation, search
(add tracking for card backings)
(support up to 11 card errata, since polymerization needs a 10th now)
Line 29: Line 29:
 
}}{{ #vardefine: $rev8 | {{ #if: {{{name8|}}}{{{card_type8|}}}{{{lore8|}}}{{{lore8T|}}} | 1 }}
 
}}{{ #vardefine: $rev8 | {{ #if: {{{name8|}}}{{{card_type8|}}}{{{lore8|}}}{{{lore8T|}}} | 1 }}
 
}}{{ #vardefine: $rev9 | {{ #if: {{{name9|}}}{{{card_type9|}}}{{{lore9|}}}{{{lore9T|}}} | 1 }}
 
}}{{ #vardefine: $rev9 | {{ #if: {{{name9|}}}{{{card_type9|}}}{{{lore9|}}}{{{lore9T|}}} | 1 }}
 +
}}{{ #vardefine: $rev10 | {{ #if: {{{name10|}}}{{{card_type10|}}}{{{lore10|}}}{{{lore10T|}}} | 1 }}
 +
}}{{ #vardefine: $rev11 | {{ #if: {{{name11|}}}{{{card_type11|}}}{{{lore11|}}}{{{lore11T|}}} | 1 }}
 
}}{{ #vardefine: $n4revs | {{ #ifeq: {{ #var: $rev3 | 0 }}{{ #var: $rev4 | 0 }} | 10 || 1 }}
 
}}{{ #vardefine: $n4revs | {{ #ifeq: {{ #var: $rev3 | 0 }}{{ #var: $rev4 | 0 }} | 10 || 1 }}
 
}}<table class="wikitable card-errata {{ #if: {{ #var: $rev2 }} | {{ #if: {{ #var: $rev4 }} || twocolumn }} | twocolumn }}">
 
}}<table class="wikitable card-errata {{ #if: {{ #var: $rev2 }} | {{ #if: {{ #var: $rev4 }} || twocolumn }} | twocolumn }}">
Line 234: Line 236:
 
   #if: {{ #var: $rev9 }} | <tr>
 
   #if: {{ #var: $rev9 }} | <tr>
 
<th scope="col">Ninth erratum</th>
 
<th scope="col">Ninth erratum</th>
<td colspan="2" rowspan="{{ #expr: 2 {{ #if: {{{name9|}}} | + 1 }} {{ #if: {{{card_type9|}}} | + 1 }} {{ #if: {{{lore9|}}} | + 1 }} {{ #if: {{{lore9T|}}} | + 1 }} }}" class="blank">&nbsp;</td>
+
{{
 +
  #if: {{ #var: $rev10 }}
 +
  | <th scope="col">Tenth erratum</th>
 +
  | <td colspan="2" rowspan="{{ #expr: 2 {{ #if: {{{name9|}}}{{{name10|}}}{{{name11|}}} | + 1 }} {{ #if: {{{card_type9|}}}{{{card_type10|}}}{{{card_type11|}}} | + 1 }} {{ #if: {{{lore9|}}}{{{lore10|}}}{{{lore11|}}} | + 1 }} {{ #if: {{{lore9T|}}}{{{lore10T|}}}{{{lore11T|}}} | + 1 }} }}" class="blank">&nbsp;</td>
 +
}}{{
 +
  #if: {{ #var: $rev11 }}
 +
  | <th scope="col">Eleventh erratum</th>
 +
  | {{
 +
    #if: {{ #var: $rev10 }}
 +
    | <td rowspan="{{ #expr: 2 {{ #if: {{{name9|}}}{{{name10|}}}{{{name11|}}} | + 1 }} {{ #if: {{{card_type9|}}}{{{card_type10|}}}{{{card_type11|}}} | + 1 }} {{ #if: {{{lore9|}}}{{{lore10|}}}{{{lore11|}}} | + 1 }} {{ #if: {{{lore9T|}}}{{{lore10T|}}}{{{lore11T|}}} | + 1 }} }}" class="blank">&nbsp;</td>
 +
  }}
 +
}}
 
</tr>
 
</tr>
{{ #if: {{{name9|}}} | <tr class="names" {{ #var: $lang-attr }}>
+
{{ #if: {{{name9|}}}{{{name10|}}}{{{name11|}}} | <tr class="names" {{ #var: $lang-attr }}>
<td>{{{name9}}}</td>
+
<td>{{ #if: {{{name9|}}} | {{{name9}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{name10|}}} | {{{name10}}} | {{{name11}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
{{
 +
  #if: {{ #var: $rev10 }} | <td>{{ #if: {{{name10|}}} | {{{name10}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{name9|}}} | {{{name9}}} | {{{name11}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
}}{{
 +
  #if: {{ #var: $rev11 }} | <td>{{ #if: {{{name11|}}} | {{{name11}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{name10|}}} | {{{name10}}} | {{{name9}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
}}
 
</tr> }}
 
</tr> }}
{{ #if: {{{card_type9|}}} | <tr class="types" {{ #var: $lang-attr }}>
+
{{ #if: {{{card_type9|}}}{{{card_type10|}}}{{{card_type11|}}} | <tr class="types" {{ #var: $lang-attr }}>
<td>{{{card_type9}}}</td>
+
<td>{{ #if: {{{card_type9|}}} | {{{card_type9}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{card_type10|}}} | {{{card_type10}}} | {{{card_type11}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
{{
 +
  #if: {{ #var: $rev10 }} | <td>{{ #if: {{{card_type10|}}} | {{{card_type10}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{card_type9|}}} | {{{card_type9}}} | {{{card_type11}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
}}{{
 +
  #if: {{ #var: $rev11 }} | <td>{{ #if: {{{card_type11|}}} | {{{card_type11}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{card_type10|}}} | {{{card_type10}}} | {{{card_type9}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
}}
 
</tr> }}
 
</tr> }}
{{ #if: {{{lore9|}}} | <tr class="lores" {{ #var: $lang-attr }}>
+
{{ #if: {{{lore9|}}}{{{lore10|}}}{{{lore11|}}} | <tr class="lores" {{ #var: $lang-attr }}>
<td>{{{lore9}}}</td>
+
<td>{{ #if: {{{lore9|}}} | {{{lore9}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{lore10|}}} | {{{lore10}}} | {{{lore11}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
{{
 +
  #if: {{ #var: $rev10 }} | <td>{{ #if: {{{lore10|}}} | {{{lore10}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{lore9|}}} | {{{lore9}}} | {{{lore11}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
}}{{
 +
  #if: {{ #var: $rev11 }} | <td>{{ #if: {{{lore11|}}} | {{{lore11}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{lore10|}}} | {{{lore10}}} | {{{lore9}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
}}
 
</tr> }}
 
</tr> }}
{{ #if: {{{lore9T|}}} | <tr class="lores">
+
{{ #if: {{{lore9T|}}}{{{lore10T|}}}{{{lore11T|}}} | <tr class="lores">
<td>{{{lore9T}}}</td>
+
<td>{{ #if: {{{lore9T|}}} | {{{lore9T}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{lore10T|}}} | {{{lore10T}}} | {{{lore11T}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
{{
 +
  #if: {{ #var: $rev10 }} | <td>{{ #if: {{{lore10T|}}} | {{{lore10T}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{lore9T|}}} | {{{lore9T}}} | {{{lore11T}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
}}{{
 +
  #if: {{ #var: $rev11 }} | <td>{{ #if: {{{lore11T|}}} | {{{lore11T}}} | <span class="original">{{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #if: {{{lore10T|}}} | {{{lore10T}}} | {{{lore9T}}} }} | ''' }} | '' }} | <del> }} | </del> }} | <ins> }} | </ins> }}</span> }}</td>
 +
}}
 
</tr> }}
 
</tr> }}
 
<tr class="images">
 
<tr class="images">
 
<td>[[File:{{PAGENAME: {{{image9}}} }}|thumb|center|{{{cap9}}}]]</td>
 
<td>[[File:{{PAGENAME: {{{image9}}} }}|thumb|center|{{{cap9}}}]]</td>
 +
{{
 +
  #if: {{ #var: $rev10 }} | <td>[[File:{{PAGENAME: {{{image10}}} }}|thumb|center|{{{cap10}}}]]</td>
 +
}}{{
 +
  #if: {{ #var: $rev11 }} | <td>[[File:{{PAGENAME: {{{image11}}} }}|thumb|center|{{{cap11}}}]]</td>
 +
}}
 
</tr>
 
</tr>
 
}}
 
}}
</table>{{ #if: {{{lore0T|}}}{{{lore1T|}}}{{{lore2T|}}}{{{lore3T|}}}{{{lore4T|}}}{{{lore5T|}}}{{{lore6T|}}}{{{lore7T|}}}{{{lore8T|}}}{{{lore9T|}}}
+
</table>{{ #if: {{{lore0T|}}}{{{lore1T|}}}{{{lore2T|}}}{{{lore3T|}}}{{{lore4T|}}}{{{lore5T|}}}{{{lore6T|}}}{{{lore7T|}}}{{{lore8T|}}}{{{lore9T|}}}{{{lore10T|}}}{{{lore11T|}}}
 
   | [[Category:Errata table transclusions using translated lore parameters]]
 
   | [[Category:Errata table transclusions using translated lore parameters]]
}}{{ #if: {{{name10|}}}{{{card_type10|}}}{{{lore10|}}}{{{lore10T|}}} | [[Category:Errata table transclusions with too many entries]]
+
}}{{ #if: {{{name12|}}}{{{card_type12|}}}{{{lore12|}}}{{{lore12T|}}} | [[Category:Errata table transclusions with too many entries]]
 
}}{{ #if: {{{lang|}}} | {{ #if: {{ #var: $ln }} || [[Category:Errata table transclusions with unrecognized lang values]] }}
 
}}{{ #if: {{{lang|}}} | {{ #if: {{ #var: $ln }} || [[Category:Errata table transclusions with unrecognized lang values]] }}
}}{{ #if: {{{name1|}}}{{{name2|}}}{{{name3|}}}{{{name4|}}}{{{name5|}}}{{{name6|}}}{{{name7|}}}{{{name8|}}}{{{name9|}}}
+
}}{{ #if: {{{name1|}}}{{{name2|}}}{{{name3|}}}{{{name4|}}}{{{name5|}}}{{{name6|}}}{{{name7|}}}{{{name8|}}}{{{name9|}}}{{{name10|}}}{{{name11|}}}
 
   | [[Category:Cards with name errata]]
 
   | [[Category:Cards with name errata]]
}}{{ #if: {{{card_type1|}}}{{{card_type2|}}}{{{card_type3|}}}{{{card_type4|}}}{{{card_type5|}}}{{{card_type6|}}}{{{card_type7|}}}{{{card_type8|}}}{{{card_type9|}}}
+
}}{{ #if: {{{card_type1|}}}{{{card_type2|}}}{{{card_type3|}}}{{{card_type4|}}}{{{card_type5|}}}{{{card_type6|}}}{{{card_type7|}}}{{{card_type8|}}}{{{card_type9|}}}{{{card_type10|}}}{{{card_type11|}}}
 
   | [[Category:Cards with card type errata]]
 
   | [[Category:Cards with card type errata]]
}}{{ #if: {{ #pos: {{{image0}}} | -OP. }}{{ #pos: {{{image0}}} | -OP- }}{{ #pos: {{{image1}}} | -OP. }}{{ #pos: {{{image1}}} | -OP- }}
+
}}{{ #if: {{ #pos: {{{image0}}} | -OP. }}{{ #pos: {{{image0}}} | -OP- }}{{ #pos: {{{image1}}} | -OP. }}{{ #pos: {{{image1}}} | -OP- }}
           {{ #pos: {{{image2}}} | -OP. }}{{ #pos: {{{image2}}} | -OP- }}{{ #pos: {{{image3}}} | -OP. }}{{ #pos: {{{image3}}} | -OP- }}
+
           {{ #pos: {{{image2}}} | -OP. }}{{ #pos: {{{image2}}} | -OP- }}{{ #pos: {{{image3}}} | -OP. }}{{ #pos: {{{image3}}} | -OP- }}
           {{ #pos: {{{image4}}} | -OP. }}{{ #pos: {{{image4}}} | -OP- }}{{ #pos: {{{image5}}} | -OP. }}{{ #pos: {{{image5}}} | -OP- }}
+
           {{ #pos: {{{image4}}} | -OP. }}{{ #pos: {{{image4}}} | -OP- }}{{ #pos: {{{image5}}} | -OP. }}{{ #pos: {{{image5}}} | -OP- }}
           {{ #pos: {{{image6}}} | -OP. }}{{ #pos: {{{image6}}} | -OP- }}{{ #pos: {{{image7}}} | -OP. }}{{ #pos: {{{image7}}} | -OP- }}
+
           {{ #pos: {{{image6}}} | -OP. }}{{ #pos: {{{image6}}} | -OP- }}{{ #pos: {{{image7}}} | -OP. }}{{ #pos: {{{image7}}} | -OP- }}
           {{ #pos: {{{image8}}} | -OP. }}{{ #pos: {{{image8}}} | -OP- }}{{ #pos: {{{image9}}} | -OP. }}{{ #pos: {{{image9}}} | -OP- }}
+
           {{ #pos: {{{image8}}} | -OP. }}{{ #pos: {{{image8}}} | -OP- }}{{ #pos: {{{image9}}} | -OP. }}{{ #pos: {{{image9}}}  | -OP- }}
 +
          {{ #pos: {{{image10}}} | -OP. }}{{ #pos: {{{image10}}} | -OP- }}{{ #pos: {{{image11}}} | -OP. }}{{ #pos: {{{image11}}} | -OP- }}
 
   | [[Category:Errata table transclusions with Official Proxy images]]
 
   | [[Category:Errata table transclusions with Official Proxy images]]
}}{{ #if: {{ #pos: {{{image0}}} | -SAMPLE }}{{ #pos: {{{image1}}} | -SAMPLE }}{{ #pos: {{{image2}}} | -SAMPLE }}
+
}}{{ #if: {{ #pos: {{{image0}}} | -SAMPLE }}{{ #pos: {{{image1}}} | -SAMPLE }}{{ #pos: {{{image2}}} | -SAMPLE }}
           {{ #pos: {{{image3}}} | -SAMPLE }}{{ #pos: {{{image4}}} | -SAMPLE }}{{ #pos: {{{image5}}} | -SAMPLE }}
+
           {{ #pos: {{{image3}}} | -SAMPLE }}{{ #pos: {{{image4}}} | -SAMPLE }}{{ #pos: {{{image5}}} | -SAMPLE }}
           {{ #pos: {{{image6}}} | -SAMPLE }}{{ #pos: {{{image7}}} | -SAMPLE }}{{ #pos: {{{image8}}} | -SAMPLE }}
+
           {{ #pos: {{{image6}}} | -SAMPLE }}{{ #pos: {{{image7}}} | -SAMPLE }}{{ #pos: {{{image8}}} | -SAMPLE }}
           {{ #pos: {{{image9}}} | -SAMPLE }}
+
           {{ #pos: {{{image9}}}  | -SAMPLE }}{{ #pos: {{{image10}}} | -SAMPLE }}{{ #pos: {{{image11}}} | -SAMPLE }}
 
   | [[Category:Errata table transclusions with SAMPLE images]]
 
   | [[Category:Errata table transclusions with SAMPLE images]]
}}{{ #if: {{ #pos: {{{image0}}} | Back- }}{{ #pos: {{{image1}}} | Back- }}{{ #pos: {{{image2}}} | Back- }}
+
}}{{ #if: {{ #pos: {{{image0}}} | Back- }}{{ #pos: {{{image1}}} | Back- }}{{ #pos: {{{image2}}} | Back- }}
           {{ #pos: {{{image3}}} | Back- }}{{ #pos: {{{image4}}} | Back- }}{{ #pos: {{{image5}}} | Back- }}
+
           {{ #pos: {{{image3}}} | Back- }}{{ #pos: {{{image4}}} | Back- }}{{ #pos: {{{image5}}} | Back- }}
           {{ #pos: {{{image6}}} | Back- }}{{ #pos: {{{image7}}} | Back- }}{{ #pos: {{{image8}}} | Back- }}
+
           {{ #pos: {{{image6}}} | Back- }}{{ #pos: {{{image7}}} | Back- }}{{ #pos: {{{image8}}} | Back- }}
           {{ #pos: {{{image9}}} | Back- }}
+
           {{ #pos: {{{image9}}}  | Back- }}{{ #pos: {{{image10}}} | Back- }}{{ #pos: {{{image11}}} | Back- }}
 
   | [[Category:Errata table transclusions with card backings]]
 
   | [[Category:Errata table transclusions with card backings]]
}}<includeonly>[[Category:Cards with {{ #expr: {{ #var: $rev1 }} + {{ #var: $rev2 }} + {{ #var: $rev3 }} +
+
}}<includeonly>[[Category:Cards with {{ #expr: {{ #var: $rev1 }} + {{ #var: $rev2 }} + {{ #var: $rev3 }} +
                                               {{ #var: $rev4 }} + {{ #var: $rev5 }} + {{ #var: $rev6 }} +
+
                                               {{ #var: $rev4 }} + {{ #var: $rev5 }} + {{ #var: $rev6 }} +
                                               {{ #var: $rev7 }} + {{ #var: $rev8 }} + {{ #var: $rev9 }} + 0 }} errat{{ #if: {{ #var: $rev2 }} | a | um }}]]<!--
+
                                               {{ #var: $rev7 }} + {{ #var: $rev8 }} + {{ #var: $rev9 }} +
 +
                                              {{ #var: $rev10 }} + {{ #var: $rev11 }} + 0 }} errat{{ #if: {{ #var: $rev2 }} | a | um }}]]<!--
 
-->{{ #if: {{ #var: $ln }} | [[Category:Cards with {{ #var: $lang }} errata]] }}</includeonly><noinclude>
 
-->{{ #if: {{ #var: $ln }} | [[Category:Cards with {{ #var: $lang }} errata]] }}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 04:47, 16 June 2018

Original First erratum
{{{name0}}} {{{name1}}}
{{{card_type0}}} {{{card_type1}}}
{{{lore0}}} {{{lore1}}}
{{{lore0T}}} {{{lore1T}}}
[[File:|thumb|center|{{{cap0}}}]] [[File:|thumb|center|{{{cap1}}}]]