Difference between revisions of "Template:Duel Links card"

From Yugipedia
Jump to: navigation, search
(Image shouldn't link to Special:Upload)
(if the specified image hasn't been uploaded, set wgUploadDescription in the upload URL so it doesn't have to be filled in manually, and display the main page's image in grayscale as a visual indicator)
Line 92: Line 92:
  
 
-->{{ #vardefine: $image      | {{{image<includeonly>|</includeonly>}}} }}<!--
 
-->{{ #vardefine: $image      | {{{image<includeonly>|</includeonly>}}} }}<!--
-->{{ #ifeq: {{ #imgw: {{ #var: $image }} }} | 0 | {{ #vardefine: $image_name | {{ #var: $image }} }}{{ #vardefine: $image | {{ #ifeq: {{ #imgw: {{ #show: {{ #var: $main }} |?Card image }} }} | 0 | {{ #var: $image_back }} | {{ #show: {{ #var: $main }} |?Card image }} }} }} }}<!--
+
-->{{ #ifeq: {{ #imgw: {{ #var: $image }} }} | 0
 +
| {{ #vardefine: $image_name | {{ #var: $image }}
 +
  }}{{ #vardefine: $image | {{ #ifeq: {{ #imgw: {{ #show: {{ #var: $main }} |?Card image }} }} | 0
 +
    | {{ #var: $image_back }}
 +
    | {{ #show: {{ #var: $main }} |?Card image }}
 +
    }}
 +
  }}<includeonly>[[Category:Duel Links cards without card images]]</includeonly>
 +
}}<!--
  
 
-->{{ #if: {{{ja_name<includeonly>|</includeonly>}}}{{ #var: $main }}
 
-->{{ #if: {{{ja_name<includeonly>|</includeonly>}}}{{ #var: $main }}
Line 179: Line 186:
 
     -->{{ #set: Property (short) = [[{{{property}}} {{ #var: $card_type }} Card|{{{property}}}]] }}
 
     -->{{ #set: Property (short) = [[{{{property}}} {{ #var: $card_type }} Card|{{{property}}}]] }}
 
   }}<!--
 
   }}<!--
 +
 +
--><templatestyles src="Duel Links card/styles.css" /><!--
  
 
-->{{ #if: {{ #var: $main }}
 
-->{{ #if: {{ #var: $main }}
Line 199: Line 208:
 
     | blank
 
     | blank
 
     }}
 
     }}
   }}-card
+
   }}-card {{ #if: {{ #var: $image_name }} | needs-image }}
  
 
| title          = [[English name::{{ #var: $name }}]]
 
| title          = [[English name::{{ #var: $name }}]]
 
| image          = {{ #var: $image }}
 
| image          = {{ #var: $image }}
| image_link    = {{ #if: {{ #var: $image_name }} | <includeonly>[[Category:Duel Links cards without card images]]</includeonly> [[:File:{{ #var: $image_name }}]] }}
+
| image_link    = {{ #if: {{ #var: $image_name }} | {{fullurl:Special:Upload|wpDestFile=File:{{ #var: $image_name }}&wpUploadDescription={{ urlencode: {{((}}OCG-TCG card image }}%0A{{ urlencode: {{!}} name = {{Normalized pagename|{{PAGENAME}}}} }}%0A{{ urlencode: {{))}} }}}} }}
 
| width          = {{{width|}}}
 
| width          = {{{width|}}}
 
| max_width      = {{ #ifexpr: {{ #imgw: {{ #var: $image }} }} > 200 | 200 | {{ #imgw: {{ #var: $image }} }} }}
 
| max_width      = {{ #ifexpr: {{ #imgw: {{ #var: $image }} }} > 200 | 200 | {{ #imgw: {{ #var: $image }} }} }}

Revision as of 16:59, 6 August 2019

{{{article_messages}}}

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

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}}}]]