FANDOM


To use these, copy them onto the page you're editing, replacing the markup already there where appropriate. When the page is saved, most of the copied markup automagically gets replaced with much cleaner (less scary =D ) markup.

At some point, all of this is going into a template (or several), whereupon it should be much less scary. =D

Set Card Galleries

Example: Set Card Galleries:Gladiator's Assault (TCG-FR-1E)

{{ subst:#vardefine: $set | {{subst:Normalized pagename|{{ subst:#explode: {{subst:PAGENAME}} | ( }}}}
}}{{ subst:#vardefine: $print | {{ subst:#explode: {{subst:PAGENAME}} | ( | 1 }}
}}{{ subst:#vardefine: $ocg-tcg | {{ subst:#explode: {{ subst:#var: $print }} | - }}
}}{{ subst:#vardefine: $rg | {{ subst:#sub: {{ subst:#explode: {{ subst:#var: $print }} | - | 1 }} | 0 | 2 }}
}}{{ subst:#vardefine: $italics | {{ subst:#switch: {{ subst:#var: $rg }} | JP | JA | KR | TC = | #default = '' }}
}}{{ subst:#vardefine: $region | {{subst:Region|{{ subst:#var: $rg }}}}
}}{{ subst:#vardefine: $ln | {{ subst:#switch: {{ subst:#var: $rg }} | EN | NA | EU | AU | AE = en | FR | FC = fr | DE = de | IT = it | JA | JP = ja | KR = ko | PT = pt | SP = es | TC = zh }}
}}{{ subst:#vardefine: $lang-set | {{Card name|{{ subst:#var: $set }}|{{ subst:#var: $ln }}}}
}}{{ subst:#vardefine: $ed | {{ subst:#sub: {{ subst:#explode: {{ subst:#var: $print }} | - | 2 }} | 0 | 2 }}
}}{{ subst:#vardefine: $edition | {{ subst:#switch: {{ subst:#var: $ed }} | 1E = 1st Edition | UE = Unlimited Edition | LE = Limited Edition | DT = Duel Terminal | #default = }}
}}{{{{ subst:#var: $ocg-tcg }}SetGalleries}}
<div style="text-align: center;"><span style="font-size: 120%;">'''''[[{{ subst:#var: $set }}]]'''''</span>{{ subst:#switch: {{ subst:#var: $rg }} | EN | EU | NA | AU | AE = | #default = {{ subst:#ifeq: {{ subst:#var: $set }} | {{ subst:#var: $lang-set }} || <br />{{ subst:#var: $italics }}'''{{ subst:#var: $lang-set }}'''{{ subst:#var: $italics }} }} }}<br />{{ subst:#if: {{ subst:#var: $edition }} | {{ subst:#var: $region }} - {{ subst:#var: $edition }} | {{ subst:#var: $region }} }}</div>

{| class="card-galleries"
|-
|
{{ subst:#tag:gallery|
Imagename.png {{subst:!}} [[ABBR-LN999]] ([[RaR]])<br />{{ subst:#ifeq: {{ subst:#var: $ln }} | en | [[Card Name]] | {{Gallery card names|Card Name|{{ subst:#var: $ln }}}} }}
|widths="175px"|position="center"|captionalign="center"}}
|-

! ... Rares
|-
|
{{ subst:#tag:gallery|
Imagename.png {{subst:!}} [[ABBR-LN999]] ([[RaR]])<br />{{ subst:#ifeq: {{ subst:#var: $ln }} | en | [[Card Name]] | {{Gallery card names|Card Name|{{ subst:#var: $ln }}}} }}
|widths="175px"|position="center"|captionalign="center"}}
|-
|}

[[Category:{{ subst:#var: $region }} {{subst:NAMESPACE}}]]
{{ subst:#if: {{ subst:#var: $edition }} | [[Category:{{ subst:#var: $edition }} {{subst:NAMESPACE}}]]}}

Set Card Lists

Example: Set Card Lists:Shadow of Infinity (OCG-AE)

<noinclude>{{ subst:#vardefine: $set | {{subst:Normalized pagename|{{ subst:#explode: {{subst:PAGENAME}} | ( }}}}
}}{{ subst:#vardefine: $print | {{ subst:#explode: {{subst:PAGENAME}} | ( | 1 }}
}}{{ subst:#vardefine: $rg | {{ subst:#sub: {{ subst:#explode: {{ subst:#var: $print }} | - | 1 }} | 0 | 2 }}
}}{{ subst:#vardefine: $italics | {{ subst:#switch: {{ subst:#var: $rg }} | JP | JA | KR | TC = | #default = '' }}
}}{{ subst:#vardefine: $region | {{subst:Region|{{ subst:#var: $rg }}}}
}}{{ subst:#vardefine: $ln | {{ subst:#switch: {{ subst:#var: $rg }} | EN | NA | EU | AU | AE = en | FR | FC = fr | DE = de | IT = it | JA | JP = ja | KR = ko | PT = pt | SP = es | TC = zh }}
}}{{ subst:#vardefine: $lang-set | {{Card name|{{ subst:#var: $set }}|{{ subst:#var: $ln }}}}
}}<div style="text-align: center;"><span style="font-size: 120%;">'''''[[{{ subst:#var: $set }}]]'''''</span>{{ subst:#switch: {{ subst:#var: $rg }} | EN | EU | NA | AU | AE = | #default = {{ subst:#ifeq: {{ subst:#var: $set }} | {{ subst:#var: $lang-set }} || <br />{{ subst:#var: $italics }}'''{{ subst:#var: $lang-set }}'''{{ subst:#var: $italics }} }} }}<br />{{ subst:#var: $region }}</div>

</noinclude>{| class="wikitable sortable card-list"
|-
! scope="col" | Set number
! scope="col" | {{ subst:#ifeq: {{ subst:#var: $ln }} | en | Name | English name
! scope="col" {{subst:!}} {{ subst:#var: $region }} name }}
! scope="col" | Rarity
! scope="col" | Category{{ subst:#if: |


=== EDITOR INSTRUCTIONS ===

* add the set abbreviation in the first line, replacing the string "ABBR-LN" (for example, the English "Storm of Ragnarok" list would use "STOR-EN")
* replace "Card Name" in the second line with that card's name; this only needs to be done once per card for everything to get it automagically =)
* replace "999" in the third line with the numerical part of that card's Card Number


}}{{ subst:#vardefine: $set-abbr | ABBR-LN }}
|-{{ subst:#vardefine: $card | Card Name }}
| [[{{ subst:#var: $set-abbr }}999]]
| {{ subst:#ifeq: {{ subst:#var: $ln }} | en | [[{{ subst:#var: $card }}]] | [[{{ subst:#var: $card }}]]
{{subst:!}} {{Card name|{{ subst:#var: $card }}|{{ subst:#var: $ln }}}} }}
| [[Common]]
| [[{{ subst:#ifeq: {{ subst:#explode: {{ subst:#vardefineecho: $type | {{ subst:#show: {{ subst:#var: $card }} |?Card type | link = none }} }} | , | 1 }} | Monster Card | {{ subst:#explode: {{ subst:#var: $type }} | , | 0 }} | {{ subst:#explode: {{ subst:#var: $type }} | , | 1 }} }}]]
|-
|}<noinclude>

[[Category:{{ subst:#var: $region }} {{subst:NAMESPACE}}]]</noinclude>

Community content is available under CC-BY-SA unless otherwise noted.