Difference between revisions of "Template:EDS card"

From Yugipedia
Jump to: navigation, search
(Fix password2 for when password doesn't exist)
(Support calling "Divine-Beast" "Divine", remove Type icon for Divine monsters.)
Line 11: Line 11:
 
-->{{ #vardefine: $attribute  | {{ uc: {{{attribute|}}} }}                        }}<!--
 
-->{{ #vardefine: $attribute  | {{ uc: {{{attribute|}}} }}                        }}<!--
 
-->{{ #vardefine: $type      | {{ #explode: {{{types<includeonly>|</includeonly>}}} | / }} }}<!--
 
-->{{ #vardefine: $type      | {{ #explode: {{{types<includeonly>|</includeonly>}}} | / }} }}<!--
 +
-->{{ #vardefine: $type_link  | {{ #ifeq: {{ #var: $type }} | Divine | Divine-Beast | {{ #var: $type }} }} }}<!--
 
-->{{ #vardefine: $type2      | {{ #explode: {{{types|}}} | / | 1 }}              }}<!--
 
-->{{ #vardefine: $type2      | {{ #explode: {{{types|}}} | / | 1 }}              }}<!--
 
-->{{ #vardefine: $type3      | {{ #explode: {{{types|}}} | / | 2 }}              }}<!--
 
-->{{ #vardefine: $type3      | {{ #explode: {{{types|}}} | / | 2 }}              }}<!--
Line 85: Line 86:
 
   }}<!--
 
   }}<!--
 
   -->[[Attribute::{{ #var: $attribute }}| ]]<!--
 
   -->[[Attribute::{{ #var: $attribute }}| ]]<!--
   -->[[Type::{{ #var: $type }}| ]]<!--
+
   -->[[Type::{{ #var: $type_link }}| ]]<!--
 
   -->{{ #set: Lore = {{{lore|}}} }}<!--
 
   -->{{ #set: Lore = {{{lore|}}} }}<!--
 
   -->{{ #if: {{{level|}}} | {{Star properties}} }}<!--
 
   -->{{ #if: {{{level|}}} | {{Star properties}} }}<!--
Line 144: Line 145:
 
| label4    = [[Type]]
 
| label4    = [[Type]]
 
| data4    = {{ #if: {{{types<includeonly>|</includeonly>}}} |
 
| data4    = {{ #if: {{{types<includeonly>|</includeonly>}}} |
[[File:{{ #var: $type }}-TF06.png|16px|alt=]]
+
{{ #ifeq: {{ #var: $type }} | Divine || [[File:{{ #var: $type }}-TF06.png|16px|alt=]] }}
[[{{ #var: $type      }}|{{ #var: $type  }}]] {{  #if: {{ #var: $type2_page }} |
+
[[{{ #var: $type_link        }}|{{ #var: $type  }}]] {{  #if: {{ #var: $type2_page }} |
 
&#32;/ [[{{ #var: $type2_page }}|{{ #var: $type2 }}]] }}{{ #if: {{ #var: $type3_page }} |
 
&#32;/ [[{{ #var: $type2_page }}|{{ #var: $type2 }}]] }}{{ #if: {{ #var: $type3_page }} |
 
&#32;/ [[{{ #var: $type3_page }}|{{ #var: $type3 }}]] }}
 
&#32;/ [[{{ #var: $type3_page }}|{{ #var: $type3 }}]] }}

Revision as of 15:28, 18 May 2019

EDS card
Back-EN.png
Type

[[File:{{{types}}}-TF06.png|16px|alt=]]

[[{{{types}}}|{{{types}}}]]
ATK / DEF {{{atk}}} / {{{def}}}
Effect type

  • [[{{{effect_types}}}|{{{effect_types}}}]]Property "Effect type" (as page type) with input value "{{{effect_types}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Number
  • {{{number}}} (artwork 1)
  • {{{number2}}} (artwork 2)
Internal number
  • {{{internal_number}}} (artwork 1)
  • {{{internal_number2}}} (artwork 2)
Password {{{password}}}

{{{lore}}}

  • [[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]]