Template:Series
From Gineipaedia, the Legend of Galactic Heroes wiki
(Difference between revisions)
(logic to determine the series number for a particular episode (currently only works for main ova)) |
m (kuhhh) |
||
Line 1: | Line 1: | ||
- | <includeonly>{{#switch:{{{2|}}}| dicks = dicks (placeholder)| #default ={{#ifexpr:{{{1|}}} > 0|{{#ifexpr:{{{1|}}} > 26|{{#ifexpr:{{{1|}}} > 54|{{#ifexpr:{{{1|}}} > 86|{{#ifexpr:{{{1|}}} < 111|4|ERROR IN TEMPLATE}}|3}}|2}}|1}}|ERROR IN TEMPLATE | + | <includeonly>{{#switch:{{{2|}}}| dicks = dicks (placeholder)| #default = {{#ifexpr:{{{1|}}} > 0|{{#ifexpr:{{{1|}}} > 26|{{#ifexpr:{{{1|}}} > 54|{{#ifexpr:{{{1|}}} > 86|{{#ifexpr:{{{1|}}} < 111|4|ERROR IN TEMPLATE}}|3}}|2}}|1}}|ERROR IN TEMPLATE}}}}</includeonly><noinclude>{{documentation}}[[Category:Custom templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 07:11, 8 October 2011
The following documentation is transcluded from Template:Series/doc:
- Description
- Template for returning the series number associated with a given episode.
- Syntax
{{series|<episode number>|[<series code>]}}
- Sample output
{{series|035}}
produces: 2
{{series|090|logh}}
produces: 4
- Notes
- This template is currently used for auto-categorisation of cited images — see, e.g., {{logh}}. It may also see future use in episode infobox templates.
- Since the code for this template is somewhat complex, a formatted version has been made available at Series/formatted. Please follow the instructions there, and make sure the two versions stay in synch.
- Acknowledgements
- n/a