Difference between revisions of "Template:Duel Links card"

From Yugipedia
Jump to: navigation, search
(Adding support for releases of multiple artworks. Adding auto-generated gallery with NC images)
(Small optimizations. Adding {{{artwork1_name}}} parameters from 1 to 5 to name each artwork in the gallery and release tables. Adding {{{has_edited_artwork}}} to include another image in the gallery. Replacing (OCG) with (Japan) because this is Duel Links)
 
Line 29: Line 29:
 
-->{{ #vardefine: $has_lore    | {{{lore|}}}{{{material|}}}{{{ja_lore|}}}{{{ja_material<includeonly>|</includeonly>}}} }}<!--
 
-->{{ #vardefine: $has_lore    | {{{lore|}}}{{{material|}}}{{{ja_lore|}}}{{{ja_material<includeonly>|</includeonly>}}} }}<!--
  
-->{{ #vardefine: $image_nc    | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}.png }}<!--
+
-->{{ #ifeq: {{ #var: $card_type | Monster }} | Monster
-->{{ #vardefine: $image_nc    | {{ #ifexist: File:{{ #var: $image_nc }} | {{ #var: $image_nc }} }} }}<!--
+
|<!--
-->{{ #vardefine: $image_nc_jp  | {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}.png }}<!--
+
  -->{{ #vardefine: $artwork1_name | {{{artwork1_name | Standard artwork }}} }}<!--
-->{{ #vardefine: $image_nc_jp  | {{ #ifexist: File:{{ #var: $image_nc_jp }} | {{ #var: $image_nc_jp }} }} }}<!--
+
  -->{{ #vardefine: $image_nc      | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}.png }}<!--
 +
  -->{{ #if: {{{has_edited_artwork|}}} | {{ #vardefine: $image_nc_jp  | {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}.png }} }}<!--
  
-->{{ #if: {{{releases2|}}}
+
  -->{{ #if: {{{releases2|}}}
|<!--
+
  |<!--
-->{{ #vardefine: $image_nc_2  | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}-2.png }}<!--
+
  -->{{ #vardefine: $artwork2_name | {{{artwork2_name | {{ #if: {{{releases3|}}} | Alternate artwork 1 | Alternate artwork }} }}} }}<!--
-->{{ #vardefine: $image_nc_2  | {{ #ifexist: File:{{ #var: $image_nc_2 }} | {{ #var: $image_nc_2 }} }} }}<!--
+
  -->{{ #vardefine: $image_nc_2    | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}-2.png }}<!--
-->{{ #vardefine: $image_nc_jp_2| {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}-2.png }}<!--
+
  -->{{ #if: {{{has_edited_artwork|}}} | {{ #vardefine: $image_nc_jp_2| {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}-2.png }} }}
-->{{ #vardefine: $image_nc_jp_2| {{ #ifexist: File:{{ #var: $image_nc_jp_2 }} | {{ #var: $image_nc_jp_2 }} }} }}
+
  }}<!--
}}<!--
 
  
-->{{ #if: {{{releases3|}}}
+
  -->{{ #if: {{{releases3|}}}
|<!--
+
  |<!--
-->{{ #vardefine: $image_nc_3   | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}-3.png }}<!--
+
  -->{{ #vardefine: $artwork3_name | {{{artwork3_name | Alternate artwork 2 }}} }}<!--
-->{{ #vardefine: $image_nc_3  | {{ #ifexist: File:{{ #var: $image_nc_3 }} | {{ #var: $image_nc_3 }} }} }}<!--
+
  -->{{ #vardefine: $image_nc_3   | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}-3.png }}<!--
-->{{ #vardefine: $image_nc_jp_3| {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}-3.png }}<!--
+
  -->{{ #if: {{{has_edited_artwork|}}} | {{ #vardefine: $image_nc_jp_3| {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}-3.png }} }}
-->{{ #vardefine: $image_nc_jp_3| {{ #ifexist: File:{{ #var: $image_nc_jp_3 }} | {{ #var: $image_nc_jp_3 }} }} }}
+
  }}<!--
}}<!--
 
  
-->{{ #if: {{{releases4|}}}
+
  -->{{ #if: {{{releases4|}}}
|<!--
+
  |<!--
-->{{ #vardefine: $image_nc_4   | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}-4.png }}<!--
+
  -->{{ #vardefine: $artwork4_name | {{{artwork4_name | Alternate artwork 3 }}} }}<!--
-->{{ #vardefine: $image_nc_4  | {{ #ifexist: File:{{ #var: $image_nc_4 }} | {{ #var: $image_nc_4 }} }} }}<!--
+
  -->{{ #vardefine: $image_nc_4   | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}-4.png }}<!--
-->{{ #vardefine: $image_nc_jp_4| {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}-4.png }}<!--
+
  -->{{ #if: {{{has_edited_artwork|}}} | {{ #vardefine: $image_nc_jp_4| {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}-4.png }} }}
-->{{ #vardefine: $image_nc_jp_4| {{ #ifexist: File:{{ #var: $image_nc_jp_4 }} | {{ #var: $image_nc_jp_4 }} }} }}
+
  }}<!--
}}<!--
 
  
-->{{ #if: {{{releases5|}}}
+
  -->{{ #if: {{{releases5|}}}
|<!--
+
  |<!--
-->{{ #vardefine: $image_nc_5   | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}-5.png }}<!--
+
  -->{{ #vardefine: $artwork5_name | {{{artwork5_name | Alternate artwork 4 }}} }}<!--
-->{{ #vardefine: $image_nc_5  | {{ #ifexist: File:{{ #var: $image_nc_5 }} | {{ #var: $image_nc_5 }} }} }}<!--
+
  -->{{ #vardefine: $image_nc_5   | {{ #var: $image-name-fragment }}-DULI-EN-VG-NC{{ #var: $alt_card }}-5.png }}<!--
-->{{ #vardefine: $image_nc_jp_5| {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}-5.png }}<!--
+
  -->{{ #if: {{{has_edited_artwork|}}} | {{ #vardefine: $image_nc_jp_5| {{ #var: $image-name-fragment }}-DULI-JP-VG-NC{{ #var: $alt_card }}-5.png }} }}
-->{{ #vardefine: $image_nc_jp_5| {{ #ifexist: File:{{ #var: $image_nc_jp_5 }} | {{ #var: $image_nc_jp_5 }} }} }}
+
  }}
 
}}<!--
 
}}<!--
  
Line 438: Line 436:
 
{{ #tag: gallery
 
{{ #tag: gallery
 
|  {{ #if: {{ #var: $image_nc }}      |&#32;
 
|  {{ #if: {{ #var: $image_nc }}      |&#32;
{{ #var: $image_nc }} {{!}} Non-card
+
{{ #var: $image_nc }} {{!}} {{ #var: $artwork1_name }}
 
   }}{{ #if: {{ #var: $image_nc_jp }}    |&#32;
 
   }}{{ #if: {{ #var: $image_nc_jp }}    |&#32;
{{ #var: $image_nc_jp }} {{!}} Non-card (OCG)
+
{{ #var: $image_nc_jp }} {{!}} {{ #var: $artwork1_name }} (Japan)
 
   }}{{ #if: {{ #var: $image_nc_2 }}      |&#32;
 
   }}{{ #if: {{ #var: $image_nc_2 }}      |&#32;
{{ #var: $image_nc_2 }} {{!}} Non-card #2
+
{{ #var: $image_nc_2 }} {{!}} {{ #var: $artwork2_name }}
 
   }}{{ #if: {{ #var: $image_nc_jp_2 }}    |&#32;
 
   }}{{ #if: {{ #var: $image_nc_jp_2 }}    |&#32;
{{ #var: $image_nc_jp_2 }} {{!}} Non-card #2 (OCG)
+
{{ #var: $image_nc_jp_2 }} {{!}} {{ #var: $artwork2_name }} (Japan)
 
   }}{{ #if: {{ #var: $image_nc_3 }}      |&#32;
 
   }}{{ #if: {{ #var: $image_nc_3 }}      |&#32;
{{ #var: $image_nc_3 }} {{!}} Non-card #3
+
{{ #var: $image_nc_3 }} {{!}} {{ #var: $artwork3_name }}
 
   }}{{ #if: {{ #var: $image_nc_jp_3 }}    |&#32;
 
   }}{{ #if: {{ #var: $image_nc_jp_3 }}    |&#32;
{{ #var: $image_nc_jp_3 }} {{!}} Non-card #3 (OCG)
+
{{ #var: $image_nc_jp_3 }} {{!}} {{ #var: $artwork3_name }} (Japan)
 
   }}{{ #if: {{ #var: $image_nc_4 }}      |&#32;
 
   }}{{ #if: {{ #var: $image_nc_4 }}      |&#32;
{{ #var: $image_nc_4 }} {{!}} Non-card #4
+
{{ #var: $image_nc_4 }} {{!}} {{ #var: $artwork4_name }}
 
   }}{{ #if: {{ #var: $image_nc_jp_4 }}    |&#32;
 
   }}{{ #if: {{ #var: $image_nc_jp_4 }}    |&#32;
{{ #var: $image_nc_jp_4 }} {{!}} Non-card #4 (OCG)
+
{{ #var: $image_nc_jp_4 }} {{!}} {{ #var: $artwork4_name }} (Japan)
 
   }}{{ #if: {{ #var: $image_nc_5 }}      |&#32;
 
   }}{{ #if: {{ #var: $image_nc_5 }}      |&#32;
{{ #var: $image_nc_5 }} {{!}} Non-card #5
+
{{ #var: $image_nc_5 }} {{!}} {{ #var: $artwork5_name }}
 
   }}{{ #if: {{ #var: $image_nc_jp_5 }}    |&#32;
 
   }}{{ #if: {{ #var: $image_nc_jp_5 }}    |&#32;
{{ #var: $image_nc_jp_5 }} {{!}} Non-card #5 (OCG)
+
{{ #var: $image_nc_jp_5 }} {{!}} {{ #var: $artwork5_name }} (Japan)
 
   }}
 
   }}
 
}}
 
}}
Line 465: Line 463:
 
{{ #if: {{{releases<includeonly>|</includeonly>}}}
 
{{ #if: {{{releases<includeonly>|</includeonly>}}}
 
| {{ #if: {{{releases2|}}}{{{releases3|}}}{{{releases4|}}}{{{releases5|}}}
 
| {{ #if: {{{releases2|}}}{{{releases3|}}}{{{releases4|}}}{{{releases5|}}}
   | '''Artwork 1'''<br />{{{releases}}}
+
   | '''{{ #var: $artwork1_name }}'''<br />{{{releases}}}
     {{ #if: {{{releases2|}}} | '''Artwork 2'''<br />{{{releases2}}} }}
+
     {{ #if: {{{releases2|}}} | '''{{ #var: $artwork2_name }}'''<br />{{{releases2}}} }}
     {{ #if: {{{releases3|}}} | '''Artwork 3'''<br />{{{releases3}}} }}
+
     {{ #if: {{{releases3|}}} | '''{{ #var: $artwork3_name }}'''<br />{{{releases3}}} }}
     {{ #if: {{{releases4|}}} | '''Artwork 4'''<br />{{{releases4}}} }}
+
     {{ #if: {{{releases4|}}} | '''{{ #var: $artwork4_name }}'''<br />{{{releases4}}} }}
     {{ #if: {{{releases5|}}} | '''Artwork 5'''<br />{{{releases5}}} }}
+
     {{ #if: {{{releases5|}}} | '''{{ #var: $artwork5_name }}'''<br />{{{releases5}}} }}
 
   | {{{releases}}}
 
   | {{{releases}}}
 
   }}
 
   }}

Latest revision as of 22:33, 19 January 2020

Main card page: "[[{{{main}}}|Duel Links card]]"

{{{article_messages}}}

  • [[Card Gallery:{{{main}}}#|Gallery]]
  • [[Card Artworks:{{{main}}}#|Artworks]]
  • [[Card Tips:{{{main}}}#|Tips]]
  • [[Card Trivia:{{{main}}}#|Trivia]]
  • [[Card Appearances:{{{main}}}#|Appearances]]

Images

Releases

{{{releases}}}

Other languages

Name Pendulum EffectLore
French {{{fr_name}}} {{{fr_pendulum_effect}}}

{{{fr_material}}}

{{{fr_lore}}}
German {{{de_name}}} {{{de_pendulum_effect}}}

{{{de_material}}}

{{{de_lore}}}
Italian {{{it_name}}} {{{it_pendulum_effect}}}

{{{it_material}}}

{{{it_lore}}}
Portuguese {{{pt_name}}} {{{pt_pendulum_effect}}}

{{{pt_material}}}

{{{pt_lore}}}
Spanish {{{es_name}}} {{{es_pendulum_effect}}}

{{{es_material}}}

{{{es_lore}}}
Russian {{{ru_name}}} {{{ru_pendulum_effect}}}

{{{ru_material}}}

{{{ru_lore}}}
{{{ru_romanized_name}}}
Japanese {{{ja_name}}} {{{ja_pendulum_effect}}}

{{{ja_material}}}

{{{ja_lore}}}
{{{romaji_name}}}
Japanese translated {{{trans_name}}} {{{ja_trans_pendulum_effect}}}

{{{ja_material}}}

{{{ja_trans_lore}}}
Korean {{{ko_name}}} {{{ko_pendulum_effect}}}

{{{ko_material}}}

{{{ko_lore}}}
{{{ko_rr_name}}}
Chinese (Traditional) {{{zh_hant_name}}} {{{zh_hant_pendulum_effect}}}

{{{zh_hant_material}}}

{{{zh_hant_lore}}}
{{{zh_hant_romanized_name}}}
Chinese (Simplified) {{{zh_hans_name}}} {{{zh_hans_pendulum_effect}}}

{{{zh_hans_material}}}

{{{zh_hans_lore}}}
{{{zh_hans_romanized_name}}}

Search categories

Supports
[[{{{supports}}}|{{{supports}}}]]
Anti-supports
[[{{{anti-supports}}}|{{{anti-supports}}}]]
Archetypes and series
[[{{{archseries}}}|{{{archseries}}}]]
Supports archetypes
[[{{{supports_archetypes}}}|{{{supports_archetypes}}}]]
Anti-supports archetypes
[[{{{anti-supports_archetypes}}}|{{{anti-supports_archetypes}}}]]
Related to archetypes and series
[[{{{related_to_archseries}}}|{{{related_to_archseries}}}]]
Counters
[[{{{counter}}}|{{{counter}}}]]
Actions
[[{{{action}}}|{{{action}}}]]
Stat changes
[[{{{stat_change}}}|{{{stat_change}}}]]
Monster/Spell/Trap categories
[[{{{m/s/t}}}|{{{m/s/t}}}]]
Summoning categories
[[{{{summoning}}}|{{{summoning}}}]]
Attack categories
[[{{{attack}}}|{{{attack}}}]]
Banished categories
[[{{{banished}}}|{{{banished}}}]]
LP
[[{{{life_points}}}|{{{life_points}}}]]
Fusion Material for
[[{{{fm_for}}}|{{{fm_for}}}]]
Synchro Material for
[[{{{sm_for}}}|{{{sm_for}}}]]
Miscellaneous
[[{{{misc}}}|{{{misc}}}]]
Template documentation[create]