Template:EpicodePrevNext: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (proper formatting for XY series) |
(documentation, removing non-breaking space, adding automatic text coloring depending on color scheme) |
||
Line 1: | Line 1: | ||
{| style="background: #{{colorschemedark|{{{colorscheme}}}}}; width: 100%; margin: 5px; {{roundy|20px}} border: 2px solid #{{colorschemedark|{{{colorscheme}}}}};" | <includeonly>{| style="background: #{{colorschemedark|{{{colorscheme}}}}}; width: 100%; margin: 5px; {{roundy|20px}} border: 2px solid #{{colorschemedark|{{{colorscheme}}}}};" | ||
|- | |- | ||
| width="35%" style="background: #{{#ifeq: {{{prevcode}}}|None|{{colorschemedark|{{{colorscheme}}}}}|{{colorschemelight|{{{colorscheme}}}}}}}; {{roundyleft|15px}}" | | | width="35%" style="background: #{{#ifeq: {{{prevcode}}}|None|{{colorschemedark|{{{colorscheme}}}}}|{{colorschemelight|{{{colorscheme}}}}}}}; {{roundyleft|15px}}" | | ||
{{#ifeq: {{{prevcode}}}|None| | {{#ifeq: {{{prevcode}}}|None|| | ||
{{{!}} style="text-align:right; background: #{{colorschemelight|{{{colorscheme}}}}}; width:100%; {{roundyleft|15px}}" | {{{!}} style="text-align:right; background: #{{colorschemelight|{{{colorscheme}}}}}; width:100%; {{roundyleft|15px}}" | ||
{{!}} style="text-align:right;" {{!}} [[{{{prevcode}}}|{{color|000|←}}]] | {{!}} style="text-align:right;" {{!}} [[{{{prevcode}}}|{{color|{{#switch:{{{colorscheme|}}}|Paldea=FFF|000}}|←}}]] | ||
{{!}} style="text-align:right;" {{!}} [[{{{prevcode}}}|{{color|000|{{{prevcode}}}{{#if: {{{prevtitle|}}}|: ''{{{prevtitle|}}}''}}}}]] | {{!}} style="text-align:right;" {{!}} [[{{{prevcode}}}|{{color|{{#switch:{{{colorscheme|}}}|Paldea=FFF|000}}|{{{prevcode}}}{{#if: {{{prevtitle|}}}|: ''{{{prevtitle|}}}''}}}}]] | ||
{{!}}} | {{!}}} | ||
}} | }} | ||
| style="background: #{{colorschemelight|{{{colorscheme}}}}}" | | | style="background: #{{colorschemelight|{{{colorscheme}}}}}" | | ||
{| style="background: #{{colorschemelight|{{{colorscheme}}}}}; width:100%;" | {| style="background: #{{colorschemelight|{{{colorscheme}}}}}; width:100%;" | ||
| style="text-align:center;" | [[{{{episodelist|List of {{#switch: {{{series}}}|Original series=original series|{{{series}}}}} episodes}}}|{{color|000|{{#switch: {{{series}}}|AG|Advanced Generation|Advanced Generation series=''Advanced Generation'' series|DP|Diamond & Pearl|Diamond & Pearl series=''Diamond & Pearl'' series|BW|Best Wishes|Best Wishes series=''Best Wishes'' series|XY|XY series=''XY'' series|{{ucfirst: {{{series}}}}}}}}}]] | | style="text-align:center;" | [[{{{episodelist|List of {{#switch: {{{series}}}|Original series=original series|{{{series}}}}} episodes}}}|{{color|{{#switch:{{{colorscheme|}}}|Paldea=FFF|000}}|{{#switch: {{{series}}}|AG|Advanced Generation|Advanced Generation series=''Advanced Generation'' series|DP|Diamond & Pearl|Diamond & Pearl series=''Diamond & Pearl'' series|BW|Best Wishes|Best Wishes series=''Best Wishes'' series|XY|XY series=''XY'' series|{{ucfirst: {{{series}}}}}}}}}]] | ||
|} | |} | ||
| width="35%" style="background: #{{#ifeq: {{{nextcode}}}|None|{{colorschemedark|{{{colorscheme}}}}}|{{colorschemelight|{{{colorscheme}}}}}}}; {{roundyright|15px}}" | | | width="35%" style="background: #{{#ifeq: {{{nextcode}}}|None|{{colorschemedark|{{{colorscheme}}}}}|{{colorschemelight|{{{colorscheme}}}}}}}; {{roundyright|15px}}" | | ||
{{#ifeq: {{{nextcode}}}|None| | {{#ifeq: {{{nextcode}}}|None|| | ||
{{{!}} style="background: #{{colorschemelight|{{{colorscheme}}}}}; width:100%; {{roundyright|15px}}" | {{{!}} style="background: #{{colorschemelight|{{{colorscheme}}}}}; width:100%; {{roundyright|15px}}" | ||
{{!}} [[{{{nextcode}}}|{{color|000|{{{nextcode}}}{{#if: {{{nexttitle|}}}|: ''{{{nexttitle}}}''}}}}]] | {{!}} [[{{{nextcode}}}|{{color|{{#switch:{{{colorscheme|}}}|Paldea=FFF|000}}|{{{nextcode}}}{{#if: {{{nexttitle|}}}|: ''{{{nexttitle}}}''}}}}]] | ||
{{!}} [[{{{nextcode}}}|{{color|000|→}}]] | {{!}} [[{{{nextcode}}}|{{color|{{#switch:{{{colorscheme|}}}|Paldea=FFF|000}}|→}}]] | ||
{{!}}} | {{!}}} | ||
}} | }} | ||
|}<noinclude>[[Category:PrevNext templates]]</noinclude> | |}</includeonly><noinclude> | ||
{{documentation}} | |||
[[Category:PrevNext templates]]</noinclude> |
Revision as of 03:10, 8 September 2023
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
This template is to be used for navigating between episode pages in sequence.
Usage
{{EpicodePrevNext |colorscheme= |prevcode= |prevtitle= |nextcode= |nexttitle= |series= |episodelist= }}
Template fields
- colorscheme - Name of a color scheme (not a color hex code) to be used. This will be passed to Template:Colorschemedark and Template:Colorschemelight.
- prevcode - The epicode of the previous episode. If there is no previous episode, put "None". This field must not be left blank, or the template will break!
- prevtitle - The title of the previous episode. If the title is not known, this can be left blank.
- nextcode - The epicode of the next episode. If there is no next episode, put "None". This field must not be left blank, or the template will break!
- nextitle - The title of the next episode. If the title is not known, this can be left blank.
- series - The series that this episode is part of. Certain names are available as pre-sets, but the field will work for any value.
- "AG", "Advanced Generation", or "Advanced Generation series" will map to "Advanced Generation series".
- "DP", "Diamond & Pearl", or "Diamond & Pearl series" will map to "Diamond & Pearl series".
- "BW", "Best Wishes", or "Best Wishes series" will map to "Best Wishes series".
- "XY" or "XY series" will map to "XY series".
- episodelist (optional) - Override the series field with a completely-custom link and display name.
Examples
Standard use
{{EpicodePrevNext| prevcode=BW004 | prevtitle=The Battle Club and Tepig's Choice! | nextcode=BW006 | nexttitle=Dreams by the Yard Full! | series=Pokémon the Series: Black & White | colorscheme=Unova}}
|
|
|
No previous
{{EpicodePrevNext| prevcode=None | prevtitle=None | nextcode=PPW02 | nexttitle= | series=Pokémon: Paldean Winds | colorscheme=Paldea}}
|
|
No next
{{EpicodePrevNext |prevcode=PTP03 |prevtitle=Internationals |nextcode=None <!--|nexttitle=--> |series=Pokémon: Path to the Peak |colorscheme=bulba}}
|
|