Difference between pages "Emergency Return (anime)" and "Template:Anime category header"

From Yugipedia
(Difference between pages)
Jump to: navigation, search
 
(Adding special category for episodes)
 
Line 1: Line 1:
{{Anime card
+
{{ #vardefine: $pagename | {{Normalized pagename|{{PAGENAME<noinclude>:Yu-Gi-Oh! (anime) images of Bakura Ryou</noinclude>}}}}
| ja_image      = EmergencyReturn-JP-Anime-SV.png
+
}}{{ #vardefine: $type | {{ #explode: {{ #var: $pagename }} || -1 }}
| card_type     = Trap
+
}}{{ #if: {{ #pos: {{ #var: $pagename }} | images of }}
| property     = Normal
+
  | {{ #vardefine: $type | subject images }}{{ #vardefine: $subject | {{{subject|{{ #explode: {{ #explode: {{ #var: $pagename }} | images of | -1 }} | the | -1 }} }}} }}{{ #vardefine: $name-break | images of }}
| lore          = '''[REQUIREMENT]''' When an opponent's [[Monster Card|monster]] [[declare]]s an [[attack]], [[return]] 1 [[face-up]] [[Level]] 5 or higher monster from your [[field]] to the [[hand]].<br />'''[EFFECT]''' [[Negate]] the attack.
+
  | {{ #switch: {{ #var: $type }}
| ja_lore      = '''【条件】'''相手モンスターの攻撃宣言時に、自分フィールドの表側表示モンスター(レベル5以上)1体を手札に戻して発動できる。<br />'''【効果】'''その攻撃を無効にする。
+
    | artworks = {{ #switch: {{ #explode: {{ #var: $pagename }} || -2 }}
| appears_in_sv = 025, 026, 065, 073, 085
+
      | Spell    = {{ #vardefine: $type | Field Spell artworks }}
| appears_in_gr = 020, 057
+
      | card     = {{ #vardefine: $type | card artworks }}
| decks        =  
+
      | #default = <!-- one-word type that shouldn't need adjusted -->
* Yuga Ohdo
+
    }}
* Nail Saionji
+
    | arcs = {{ #vardefine: $type | story arcs }}
* Yuna Goha
+
    | art = {{ #vardefine: $type | concept art }}
| action        =  
+
    | Decks = {{ #switch: {{ #explode: {{ #var: $pagename }} || -2 }}
* Activates upon attack declaration
+
      | Starter  = {{ #vardefine: $type | Starter Decks }}
* Returns from field to hand for cost
+
      | Structure = {{ #vardefine: $type | Structure Decks }}
| attack        = Negates attacks
+
    }}
| misc         = Requires control of specific Level
+
    | Disks = {{ #vardefine: $type | Duel Disks }}
 +
    | galleries = {{ #vardefine: $type | card galleries }}
 +
    | icons = {{ #switch: {{ #explode: {{ #var: $pagename }} || -2 }}
 +
      | Attribute = {{ #vardefine: $type | Attribute icons }}
 +
      | counter  = {{ #vardefine: $type | counter icons }}
 +
      | genre    = {{ #vardefine: $type | genre icons }}
 +
      | Property  = {{ #vardefine: $type | Property icons }}
 +
      | Type      = {{ #vardefine: $type | Type icons }}
 +
     }}
 +
    | images = {{ #switch: {{ #explode: {{ #var: $pagename }} || -2 }}
 +
      | card      = {{ #vardefine: $type | card images }}
 +
      | character = {{ #vardefine: $type | character images }}
 +
      | counter  = {{ #vardefine: $type | counter icons }}{{ #vardefine: $pagename_type | counter images }}
 +
      | list      = {{ #vardefine: $type | card list images }}
 +
      | monster  = {{ #vardefine: $type | monster images }}
 +
      | pack     = {{ #vardefine: $type | pack images }}
 +
      | set      = {{ #vardefine: $type | set images }}
 +
      | #default  = {{ #ifeq: {{ #explode: {{ #var: $pagename }} || -3 }} | episode
 +
        | {{ #vardefine: $type | episode images }}{{ #vardefine: $name-break | episode }}{{ #vardefine: $episode-number | {{ #explode: {{ #var: $pagename }} || -2 }} }}
 +
      }}
 +
    }}
 +
    | Puzzles = {{ #vardefine: $type | Duel Puzzles }}
 +
    | Runners = {{ #vardefine: $type | Duel Runners }}
 +
    | cards | chapters | characters | clothing | events | files | genres | icons | items | locations | sets | songs | videos = <!-- these are one-word types that don't need adjusting -->
 +
    | #default = {{ #vardefine: $type }}<!-- clear unrecognized types -->
 +
}}}}{{ #vardefine: $series    | {{ #if: {{ #var: $type }} | {{ #explode: {{ #var: $pagename }} | {{ #var: $name-break | {{ #var: $pagename_type | {{ #var: $type }} }} }} }} | {{ #var: $pagename }} }}
 +
}}{{ #if: {{ #pos: {{ #var: $series }} | (anime) }} | {{ #vardefine: $series | Yu-Gi-Oh! }}
 +
}}{{ #vardefine: $series-link  | {{ #ifeq: {{ #var: $series }} | Yu-Gi-Oh! | Yu-Gi-Oh! (anime) | {{ #var: $series }} }}<!-- add logic for series whose article have a different, if necessary -->
 +
}}{{ #vardefine: $series-short | {{ #explode: {{ #var: $series }} | Yu-Gi-Oh! }}
 +
}}{{ #if: {{ #var: $series-short }} || {{ #vardefine: $series-short | Yu-Gi-Oh! }}}}{{ #ifeq: {{ #explode: {{ #var: $series-short }} }} | The
 +
  | {{ #vardefine: $series-short | {{ #sub: {{ #var: $series-short }} | 4 }} }}
 +
}}<!--
 +
 
 +
-->This category contains {{ #switch: {{ #var: $type }}
 +
  | artworks | card artworks = card artworks from
 +
  | Attribute icons          = images of [[Attribute]] icons from
 +
  | Field Spell artworks    = [[Field Spell Card]] artworks from
 +
  | card galleries          = card galleries from
 +
  | card images              = card images from
 +
  | chapters                = chapters from
 +
  | character images        = character images from
 +
  | clothing                = clothing items in
 +
  | concept art              = concept art from
 +
  | counter icons            = images of [[counter]] icons from
 +
  | Duel Disks              = [[Duel Disk]]s in
 +
  | Duel Puzzles            = [[Duel Puzzle]]s from
 +
  | Duel Runners            = [[Duel Runner]]s in
 +
  | episode images          = images of {{Episode| {{ #var: $series }} | {{ #var: $episode-number}} | ref}}.
 +
  | events                  = events held in
 +
  | files                    = uploaded files for
 +
  | genre icons              = images of genre icons from
 +
  | icons                    = uploaded icons for
 +
  | images                  = uploaded images for
 +
  | monster images          = non-card monster images from
 +
  | pack images              = images of packs from
 +
  | Property icons          = images of [[Property]] icons from
 +
  | set image                = set images from
 +
  | songs                    = songs from
 +
  | Starter Decks            = [[Starter Deck]]s from
 +
  | story arcs              = story arcs of
 +
  | Structure Decks         = [[Structure Deck]]s from
 +
  | subject images          = images of [[{{ #var: $subject }}]] from
 +
  | Type icons              = images of [[Type]] icons from
 +
  | videos                  = uploaded videos for
 +
  | #default                = pages related to {{ #if: {{ #var: $type }} | {{ #var: $type }} in }}
 +
}} {{ #ifeq: {{ #var: $type }} | episode images || the ''[[{{ #var: $series-link }}|{{ #var: $series }}]]'' anime.}}
 +
{{ #ifexpr: {{ formatnum: {{PAGESINCATEGORY:{{ #var: $pagename }}}} | R }} > 400 | {{CategoryTOC}}
 
}}
 
}}
 +
{{ #switch: {{ #var: $type }}
 +
  | chapters  = {{ #ifexist: Template:{{ #var: $series }} chapters | {{ {{ #var: $series }} chapters|state=collapsed}} }}
 +
  | events    = {{ #ifexist: Template:{{ #var: $series }} events | {{ {{ #var: $series }} events|state=collapsed}} }}
 +
  | songs      = {{ #ifexist: Template:{{ #var: $series }} music | {{ {{ #var: $series }} music|state=collapsed}} }}
 +
}}
 +
<includeonly>{{ #if: {{ #var: $type }}
 +
  | {{ #switch: {{ #var: $type }}<!-- categorize within the "Category:<Series>" category tree -->
 +
    | card galleries = [[Category:{{ #var: $series-link }} cards|{{ ucfirst: {{ #var: $type }} }}]]
 +
    | clothing
 +
    | Duel Disks
 +
    | Duel Runners  = [[Category:{{ #var: $series-link }} items|{{ ucfirst: {{ #var: $type }} }}]]
 +
    | icons        = [[Category:{{ #var: $series-link }} files|{{ ucfirst: {{ #var: $type }} }}]]
 +
    | #default      = <!--
 +
      # If any of the following types, put in "Category:<Series> files"
 +
      -->{{ #if: {{ #pos: {{ #var: $type }} | images }}{{ #pos: {{ #var: $type }} | videos }}{{ #pos: {{ #var: $type }} | artworks }}
 +
      | [[Category:{{ #var: $series-link }} files|{{ ucfirst: {{ #var: $type }} }}]]
 +
      | <!--
 +
        # If an icon type, put in "Category:<Series> icons"
 +
        -->{{ #if: {{ #pos: {{ #var: $type }} | icons }}
 +
        | [[Category:{{ #var: $series-link }} icons|{{ ucfirst: {{ #var: $type }} }}]]
 +
        | <!--
 +
          # if a type of set, put in "Category:<Series> sets"
 +
          -->{{ #if: {{ #pos: {{ #var: $type }} | Decks }}
 +
          | [[Category:{{ #var: $series-link }} sets|{{ ucfirst: {{ #var: $type }} }}]]
 +
          | <!--
 +
            # Any other type goes straight into "Category:<Series>"
 +
            -->[[Category:{{ #var: $series-link }}|{{ ucfirst: {{ #var: $type }} }}]]
 +
        }}
 +
      }}
 +
    }}
 +
  }}{{ #switch: {{ #var: $type }}
 +
    | Attribute icons  = [[Category:Anime Attribute icons|{{ #var: $series-short }}]]
 +
    | card galleries  = [[Category:Anime card galleries by series|{{ #var: $series-short }}]]
 +
    | card images      = [[Category:{{ #var: $series-link | Anime }} card images|{{ #var: $series-short }}]]
 +
    | cards            = [[Category:{{ #if: {{ #var: $series-link }} | {{ #var: $series-link }} cards | Cards by series }}|{{ #var: $series-short }}]]
 +
    | chapters        = [[Category:Anime chapters|{{ #var: $series-short }}]]
 +
    | characters      = [[Category:{{ #var: $series-link | Anime }} characters|{{ #var: $series-short }}]]
 +
    | character images = [[Category:Images of anime characters|{{ #var: $series-short }}]]
 +
    | clothing        = [[Category:Clothing|{{ #var: $series-short }}]]
 +
    | concept art      = [[Category:Concept art by series|{{ #var: $series-short }}]]
 +
    | counter icons    = [[Category:Counter icons|{{ #var: $series-short }}]]
 +
    | Duel Disks      = [[Category:Anime Duel Disks|{{ #var: $series-short }}]]
 +
    | Duel Puzzles    = [[Category:Duel Puzzles|{{ #var: $series-short }}]]
 +
    | Duel Runners    = [[Category:Anime Duel Runners|{{ #var: $series-short }}]]
 +
    | episode images  = [[Category:{{ #var: $series-link | Anime }} images by episode|{{ #var: $episode-number}}]]
 +
    | events          = [[Category:Anime events|{{ #var: $series-short }}]]
 +
    | files            = [[Category:Files by series|{{ #var: $series-short }}]]
 +
    | icons            = [[Category:Anime icons|{{ #var: $series-short }}]]
 +
    | items            = [[Category:{{ #var: $series-link | Anime }} items|{{ #var: $series-short }}]]
 +
    | locations        = [[Category:{{ #var: $series-link | Anime }} locations|{{ #var: $series-short }}]]
 +
    | Property icons  = [[Category:Anime Property icons|{{ #var: $series-short }}]]
 +
    | set images      = [[Category:Anime set images|{{ #var: $series-short }}]]
 +
    | sets            = [[Category:Anime sets|{{ #var: $series-short }}]]
 +
    | songs            = [[Category:Songs by series|{{ #var: $series-short }}]]
 +
    | Starter Decks    = [[Category:Starter Decks|{{ #var: $series-short }}]]
 +
    | story arcs      = [[Category:Story arcs|{{ #var: $series-short }}]]
 +
    | Structure Decks  = [[Category:Structure Decks|{{ #var: $series-short }}]]
 +
    | subject images  = {{ #ifeq: {{ #show: {{ #var: $subject }} |?Page type# }} | Character page | [[Category:{{ #var: $series-link | Anime }} images by character|{{ #var: $subject }}]] }}
 +
    | Type icons      = [[Category:Type icons|{{ #var: $series-short }}]]
 +
  }}
 +
  | [[Category:Anime|{{ #var: $series-short }}]]
 +
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 01:51, 2 December 2023

This category contains images of Bakura Ryou from the Yu-Gi-Oh! anime.