Difference between revisions of "Template:Infobox/Yu-Gi-Oh!/Episode"
({{value list}} for one-point lesson cards) |
Dinoguy1000 (talk | contribs) (rollback) |
||
Line 1: | Line 1: | ||
− | + | {{ #vardefine: $name | {{ #replace: {{Normalized pagename}} | Yu-Gi-Oh! }} | |
}}{{ #vardefine: $series | {{ #sub: Yu-Gi-Oh! {{ #var: $name }} | 0 | {{ #rpos: Yu-Gi-Oh! {{ #var: $name }} | - }} }} | }}{{ #vardefine: $series | {{ #sub: Yu-Gi-Oh! {{ #var: $name }} | 0 | {{ #rpos: Yu-Gi-Oh! {{ #var: $name }} | - }} }} | ||
}}{{ #vardefine: $series | {{ #if: {{ #pos: {{ #var: $series }} | First }} | Yu-Gi-Oh! (first series) | {{ #var: $series }} }} | }}{{ #vardefine: $series | {{ #if: {{ #pos: {{ #var: $series }} | First }} | Yu-Gi-Oh! (first series) | {{ #var: $series }} }} | ||
− | }}{{ #vardefine: $number | {{ #iferror: {{ #expr: {{ #explode: {{ #var: $name }} || -1 }} }} | + | }}{{ #vardefine: $number | {{ #iferror: {{ #expr: {{ #explode: {{ #var: $name }} || -1 }} }} | {{ #explode: {{ #var: $name }} || -1 }} }} |
− | + | }}<noinclude> | |
− | + | Episode infoboxes are used for <section begin=for />episode pages<section end=for />. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | </noinclude>{{#switch: {{NAMESPACE}} | = [[Category:{{ #var: $series }} episodes]]}} | |
− | + | {| class="box info colored bordered innerbordered type-animanga fill-td list-noicon {{#switch:{{{float|}}}|left=float-left-clear|none=|right|float-right-clear}}" | |
+ | |- | ||
+ | ! colspan=2 class="mainheader" | {{var|{{{title|}}}|{{PAGENAME}}}}{{{ref|}}}{{ | ||
+ | #if:{{{image name|}}}{{{image|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | {{!}} colspan=2 class="imagecell" {{!}}{{#if:{{{image name|}}} | ||
+ | | [[File:{{PAGENAME:{{{image name}}}}}|link=File:{{PAGENAME:{{{image name}}}}}|{{ #iferror: {{ #ifexpr: {{{image size}}} < 300 | {{{image size}}} | 300 }} | 300 }}px|{{ #if: {{{image caption|}}} | {{{image caption}}} | {{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} }}]] [[Screenshot::{{{image name}}}| ]] | ||
+ | | {{#if:{{{image|}}}|{{{image|}}}| }} | ||
+ | }} | ||
+ | | }}{{#if:{{{kanji|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Kanji | ||
+ | {{!}} | ||
+ | {{IfSemantics | ||
+ | |{{#if:{{{ruby japanese|}}}|[[Ruby Japanese episode name::{{{ruby japanese}}}]][[Japanese episode name::{{{kanji}}}| ]]|[[Japanese episode name::{{{kanji}}}]]}} | ||
+ | |{{#if:{{{ruby japanese|}}}|{{{ruby japanese}}}|{{{kanji}}}}} | ||
+ | }} | ||
+ | | }}{{#if:{{{romaji|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Rōmaji | ||
+ | {{!}} | ||
+ | {{IfSemantics | ||
+ | |[[Romaji episode name::{{{romaji}}}]] | ||
+ | |{{{romaji}}} | ||
+ | }} | ||
+ | | }}{{#if:{{{japanese translated|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Japanese translation | ||
+ | {{!}} | ||
+ | {{IfSemantics | ||
+ | |[[Translated Japanese episode name::{{{japanese translated}}}]] | ||
+ | |{{{japanese translated}}} | ||
+ | }} | ||
+ | | }}{{#if:{{{english|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} English | ||
+ | {{!}} | ||
+ | {{IfSemantics | ||
+ | |[[English episode name::{{{english}}}]] | ||
+ | |{{{english}}} | ||
+ | }} | ||
+ | | }}{{#if:{{{alternate|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Alternate names | ||
+ | {{!}} | ||
+ | {{{alternate}}} | ||
+ | | }}<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Episode number | ||
+ | {{!}} | ||
+ | {{IfSemantics | ||
+ | |[[Episode number::{{ #var: $number }}]] | ||
+ | |{{ #var: $number }} | ||
+ | }}{{#if:{{{japanese air date|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Japanese air date | ||
+ | {{!}} | ||
+ | {{IfSemantics | ||
+ | |[[Japanese air date::{{{japanese air date}}}]] | ||
+ | |{{{japanese air date}}} | ||
+ | }} | ||
+ | | }}{{#if:{{{english air date|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} English air date | ||
+ | {{!}} | ||
+ | {{IfSemantics | ||
+ | |[[English air date::{{ #explode: {{{english air date}}} | ( }}]] | ||
+ | |{{{english air date}}} | ||
+ | }} | ||
+ | | }}{{#if:{{{french air date|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} French air date | ||
+ | {{!}} | ||
+ | {{IfSemantics | ||
+ | |[[French air date::{{{french air date}}}]] | ||
+ | |{{{french air date}}} | ||
+ | }} | ||
+ | | }}{{#if:{{{german air date|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} German air date | ||
+ | {{!}} | ||
+ | {{IfSemantics | ||
+ | |[[German air date::{{{german air date}}}]] | ||
+ | |{{{german air date}}} | ||
+ | }} | ||
+ | | }}<!-- | ||
− | + | Cards heading (below) | |
− | |||
− | |||
− | |||
− | + | -->{{#if:{{{featured card|}}}{{{one point cards|}}}{{{showcase cards|}}}{{#ifexist:Episode Card Galleries:{{Normalized pagename}} (JP)|1|{{#ifexist:Episode Card Galleries:{{Normalized pagename}} (INT)|1}}}}|<nowiki/> | |
− | + | {{!}}- | |
− | + | ! colspan=2 class="mainheader lightheader" {{!}} Cards | |
− | + | | }}<!-- | |
− | + | Check for gallery pages (below) | |
− | |||
− | |||
− | |||
− | + | -->{{#if:{{#ifexist:Episode Card Galleries:{{Normalized pagename}} (JP)|1|{{#ifexist:Episode Card Galleries:{{Normalized pagename}} (INT)|1}}}}|<nowiki/> | |
− | + | {{!}}- | |
− | + | !{{!}} Gallery | |
− | + | {{!}}{{!}} {{ #ifexist: Episode Card Galleries:{{Normalized pagename}} (JP) | [[Episode Card Galleries:{{Normalized pagename}} (JP)|Japanese]]<br/>}}{{ #ifexist: Episode Card Galleries:{{Normalized pagename}} (INT) | [[Episode Card Galleries:{{Normalized pagename}} (INT)|International]]}} | |
− | + | | }}{{#if:{{{featured card|}}}|<nowiki/> | |
− | + | {{!}}- | |
− | + | !{{!}} [[Featured card|Featured card]] | |
− | + | {{!}} | |
− | + | {{IfSemantics | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|{{ #set: Featured card = {{{featured card}}} }}[[{{{featured card}}}|{{ #show: {{{featured card}}} |?English name }}]] | |{{ #set: Featured card = {{{featured card}}} }}[[{{{featured card}}}|{{ #show: {{{featured card}}} |?English name }}]] | ||
|{{{featured card}}} | |{{{featured card}}} | ||
− | + | }} | |
− | + | | }}{{#if:{{{showcase cards|}}}|<nowiki/> | |
− | + | {{!}}- | |
− | + | !{{!}} Showcase cards | |
− | + | {{!}} | |
− | + | {{IfSemantics | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| {{ #arraymap: {{{showcase cards|}}} | * | $x$ | [[Showcase cards::$x$]] | <br /> }} | | {{ #arraymap: {{{showcase cards|}}} | * | $x$ | [[Showcase cards::$x$]] | <br /> }} | ||
|{{{showcase cards}}} | |{{{showcase cards}}} | ||
− | }}</ | + | }} |
− | + | | }}{{#if:{{{one point cards|}}}|<nowiki/> | |
− | + | {{!}}- | |
− | + | !{{!}} One-point lesson cards | |
− | + | {{!}} | |
− | + | {{IfSemantics | |
− | + | | {{ #arraymap: {{{one point cards|}}} | * | $x$ | [[One-point lesson cards::$x$]] | <br /> }} | |
− | + | |{{{one point cards}}} | |
− | + | }} | |
− | + | | }}{{#if:{{{japanese opening|}}}{{{japanese ending|}}}{{{english opening|}}}{{{english ending|}}}{{{italian opening|}}}{{{italian ending|}}}|<nowiki/> | |
− | + | {{!}}- | |
− | + | ! colspan=2 class="mainheader lightheader" {{!}} Music | |
− | + | | }}{{#if:{{{japanese opening|}}}|<nowiki/> | |
− | + | {{!}}- | |
− | + | !{{!}} Japanese opening | |
− | + | {{!}} | |
− | + | {{{japanese opening}}} | |
− | + | | }}{{#if:{{{english opening|}}}|<nowiki/> | |
− | + | {{!}}- | |
− | + | !{{!}} English opening | |
− | + | {{!}} | |
− | + | {{{english opening}}} | |
− | + | | }}{{#if:{{{italian opening|}}}|<nowiki/> | |
− | + | {{!}}- | |
+ | !{{!}} Italian opening | ||
+ | {{!}} | ||
+ | {{{italian opening}}} | ||
+ | | }}{{#if:{{{japanese ending|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Japanese ending | ||
+ | {{!}} | ||
+ | {{{japanese ending}}} | ||
+ | | }}{{#if:{{{english ending|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} English ending | ||
+ | {{!}} | ||
+ | {{{english ending}}} | ||
+ | | }}{{#if:{{{italian ending|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Italian ending | ||
+ | {{!}} | ||
+ | {{{italian ending}}} | ||
+ | | }}{{#if:{{{screenwriter|}}}{{{director|}}}{{{storyboard artist|}}}{{{animation director|}}}{{{mechanical animation director|}}}{{{art director|}}}{{{prop designer|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | ! colspan=2 class="mainheader lightheader" {{!}} Staff | ||
+ | | }}{{#if:{{{screenwriter|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Screenplay | ||
+ | {{!}} | ||
+ | {{value list|{{{screenwriter}}}|Screenwriter}} | ||
+ | | }}{{#if:{{{director|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Director | ||
+ | {{!}} | ||
+ | {{value list|{{{director}}}|Director}} | ||
+ | | }}{{#if:{{{storyboard artist|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Storyboard | ||
+ | {{!}} | ||
+ | {{value list|{{{storyboard artist}}}|Storyboard artist}} | ||
+ | | }}{{#if:{{{animation director|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Animation director | ||
+ | {{!}} | ||
+ | {{value list|{{{animation director}}}|Animation director}} | ||
+ | | }}{{#if:{{{mechanical animation director|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Mechanical animation director | ||
+ | {{!}} | ||
+ | {{value list|{{{mechanical animation director}}}|Mechanical animation director}} | ||
+ | | }}{{#if:{{{prop designer|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Prop design | ||
+ | {{!}} | ||
+ | {{value list|{{{prop designer}}}|Prop designer}} | ||
+ | | }}{{#if:{{{art director|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | !{{!}} Art director | ||
+ | {{!}} | ||
+ | {{value list|{{{art director}}}|Art director}} | ||
+ | | }}{{#if:{{And|{{ #var: $number }}|{{ #var: $series }}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | ! colspan=2 class="mainheader lightheader" {{!}} Chronology | ||
+ | {{IfSemantics| | ||
+ | {{!}}- | ||
+ | !{{!}} Episode listing | ||
+ | {{!}}{{!}} [[Episode series::{{ #var: $series }}| ]][[Episode season number::{{{season|1}}}| ]]{{#ask: [[Episode listing series::{{ #var: $series }}]][[Episode listing season number::{{{season|1}}}]] }} | ||
+ | }} | ||
+ | {{!}}- | ||
+ | !{{!}} Previous | ||
+ | {{!}}{{!}} {{IfSemantics | ||
+ | |{{#ask: [[Episode series::{{ #var: $series }}]] [[Episode number::{{#expr:+{{ #var: $number }} - 1 }}]] | ?Translated Japanese episode name |?English episode name | link=none | format = template | template = PipeLink | default = N/A}} | ||
+ | |[[{{ #var: $series }} - Episode {{padleft:{{#expr:{{ #var: $number }} - 1}}|3|0}}]] | ||
+ | }} | ||
+ | {{!}}- | ||
+ | !{{!}} Next | ||
+ | {{!}}{{!}} {{IfSemantics | ||
+ | |{{#ask: [[Episode series::{{ #var: $series }}]] [[Episode number::{{#expr:+{{ #var: $number }} + 1 }}]] | ?Translated Japanese episode name |?English episode name | link=none | format = template | template = PipeLink | default = N/A}} | ||
+ | |[[{{ #var: $series }} - Episode {{padleft:{{#expr:{{ #var: $number }} + 1}}|3|0}}]] | ||
+ | }} | ||
+ | | }} | ||
+ | |}<noinclude> | ||
− | + | [[Category:Templates/Infobox|{{SUBPAGENAME}}]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Templates/Infobox/Yu-Gi-Oh!|{{SUBPAGENAME}}]]</noinclude> | [[Category:Templates/Infobox/Yu-Gi-Oh!|{{SUBPAGENAME}}]]</noinclude> |
Revision as of 02:05, 14 November 2017
Episode infoboxes are used for
episode pages
.
Infobox/Yu-Gi-Oh!/Episode | |
---|---|
Episode number |
Template:Infobox//Episode |
Chronology | |
Episode listing | |
Previous | N/A"strong class="error">Expression error: Unrecognized word "template"." is not a number. |
Next | N/A"strong class="error">Expression error: Unrecognized word "template"." is not a number. |