Difference between revisions of "Template:Card table anime and manga appearances"
Dinoguy1000 (talk | contribs) (#set doesn't output anything by default) |
Dinoguy1000 (talk | contribs) (better var/array names) |
||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
− | -->{{ #vardefine: $ | + | -->{{ #vardefine: $ctaama-type | {{ #ifeq: {{{type}}} | Episode | episode | chapter }} }}<!-- |
− | -->{{ #vardefine: $ | + | -->{{ #vardefine: $ctaama-series | Yu-Gi-Oh! {{{series|}}} }}<!-- |
− | -->{{ #arraydefine: | + | -->{{ #arraydefine: @ctaama-episodes | {{{1|}}} | , }}{{ #arrayunique: @ctaama-episodes }}{{ #arrayprint: @ctaama-episodes |
| ,  | | ,  | ||
| $episode | | $episode | ||
| [[{{ #ifexpr: {{ #len: $episode }} < 4 | Yu-Gi-Oh! {{{series|}}} - {{{type}}} }} $episode|$episode]]{{IfSemantics | | [[{{ #ifexpr: {{ #len: $episode }} < 4 | Yu-Gi-Oh! {{{series|}}} - {{{type}}} }} $episode|$episode]]{{IfSemantics | ||
− | | {{ #set: {{ #var: $ | + | | {{ #set: {{ #var: $ctaama-series }} {{ #var: $ctaama-type }} appearances (linked) | [[{{ #ifexpr: {{ #len: $episode }} < 4 | Yu-Gi-Oh! {{{series|}}} - {{{type}}} }} $episode|$episode]] }}[[{{ #var: $ctaama-series }} {{ #var: $ctaama-type }} appearances::$episode| ]] |
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 18:00, 31 August 2018
This template is the root of the "anime and manga appearances" template series, and should not be used directly on articles.
Usage
It accepts two named parameters ({{{series}}}
and {{{type}}}
) and one comma-delimited, unnamed parameter (input might be e.g. 022, 054, 055, 056, 071
).
{{{series}}}
is the name of the series, minus the standard "Yu-Gi-Oh!" prefix, and must be spelled and capitalized the same way it is in article titles for that series' episode/chapter articles.{{{type}}}
should reflect the word used to describe episodes or chapters for that series - for most anime, this should be "Episode", but for manga, it might be "Duel" or something else.
See also
Manga | Anime | |
---|---|---|
Metatemplate | {{Card table anime and manga appearances}} | |
General links to articles | {{Chapter}}/{{Volume}} | {{Episode}} |
{{Video game chapter}} |