Template:WalkthroughPrevNext: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary
(documentation)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| align="center" style="background: #{{{{{game|unknown}}} color}}; width: 100%; margin: 5px; {{roundytop|10px}} {{roundybottom|10px}};"
{| class="roundy" style="background: #{{{{{game|unknown}}} color}}; margin: 5px; width: 100%"
|- align="center"
|-
| width="45%" style="background: #{{{{{game2|{{{game|unknown}}}}}} color light}}; {{roundyleft|10px}}" |
| class="roundyleft" style="background: #{{{{{game2|{{{game|unknown}}}}}} color {{#ifeq: {{{prev|yes}}}|no||light}}}}; width: 45%" | {{#ifeq: {{{prev|yes}}}|no||
{| align="right" style="background: #{{{{{game2|{{{game|unknown}}}}}} color light}}; width:100%; {{roundyleft|10px}};"
{{{!}} width="100%"
| align="right" | {{#switch: {{{prev|yes}}}|yes=[[Appendix:{{{gamename}}} walkthrough/Section {{{prevsection}}}|{{color|000|← Part {{{prevsection}}}}}]]|no=}}
{{!}} {{color2|000|Appendix:{{{gamename}}} walkthrough/{{{prevpage|Section {{{prevsection}}}}}}|← {{{prevpage|Part {{{prevsection}}}}}}}}
| align="right" | {{#switch: {{{prev|yes}}}|yes=[[Appendix:{{{gamename}}} walkthrough/Section {{{prevsection}}}|{{color|000|''{{{prevname}}}''}}]]|no=}}
{{!}} style="text-align:right" {{!}} {{color2|000|Appendix:{{{gamename}}} walkthrough/{{{prevpage|Section {{{prevsection}}}}}}|''{{{prevname}}}''}}
|}
{{!}}}
| style="background: #{{{{{game2|{{{game|unknown}}}}}} color light}}" |
}}
{| align="center" style="background: #{{{{{game2|{{{game|unknown}}}}}} color light}}; width:100%;"
| style="background: #{{{{{game2|{{{game|unknown}}}}}} color light}}; padding: 3px; text-align: center" | {{color2|000|Appendix:{{{gamename}}} walkthrough|{{{gamename}}}<br>walkthrough}}
| align="center" | [[Appendix:{{{gamename}}} walkthrough|{{color|000|{{{gamename}}} <br> Walkthrough}}]]
| class="roundyright" style="background: #{{{{{game2|{{{game|unknown}}}}}} color {{#ifeq: {{{next|yes}}}|no||light}}}}; width: 45%" | {{#ifeq: {{{next|yes}}}|no||
|}
{{{!}} width="100%"
| width="45%" style="background: #{{{{{game2|{{{game|unknown}}}}}} color light}}; {{roundyright|10px}}" |
{{!}} {{color2|000|Appendix:{{{gamename}}} walkthrough/{{{nextpage|Section {{{nextsection}}}}}}|''{{{nextname}}}''}}
{| align="right" style="background: #{{{{{game2|{{{game|unknown}}}}}} color light}}; width:100%; {{roundyright|10px}};"
{{!}} style="text-align:right" {{!}} {{color2|000|Appendix:{{{gamename}}} walkthrough/{{{nextpage|Section {{{nextsection}}}}}}|{{{nextpage|Part {{{nextsection}}}}}} &rarr;}}
| align="left" | {{#switch: {{{next|yes}}}|yes=[[Appendix:{{{gamename}}} walkthrough/Section {{{nextsection}}}|{{color|000|''{{{nextname}}}''}}]]|no=}}
{{!}}}
| align="left" | {{#switch: {{{next|yes}}}|yes=[[Appendix:{{{gamename}}} walkthrough/Section {{{nextsection}}}|{{color|000|Part {{{nextsection}}} &rarr;}}]]|no=}}
}}
|}
|}<noinclude>
|}<noinclude>[[Category:PrevNext templates]]</noinclude>
 
{{documentation}}
 
[[Category:PrevNext templates]]</noinclude>

Latest revision as of 21:02, 6 May 2023

[[Appendix:{{{gamename}}} walkthrough/Section {{{prevsection}}}|← Part {{{prevsection}}}]] [[Appendix:{{{gamename}}} walkthrough/Section {{{prevsection}}}|{{{prevname}}}]]
[[Appendix:{{{gamename}}} walkthrough|{{{gamename}}}
walkthrough
]]
[[Appendix:{{{gamename}}} walkthrough/Section {{{nextsection}}}|{{{nextname}}}]] [[Appendix:{{{gamename}}} walkthrough/Section {{{nextsection}}}|Part {{{nextsection}}} →]]



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 navigation on Project Walkthrough pages. It links to pages before and after the current walkthrough page, as well as to the landing page for the walkthrough.

Parameters

Named parameters
  • game: a primary color used for the template (if game2 is used, it only affects the borders); if the walkthrough is for a pair of games, this could be the first game
  • game2 (optional): a secondary color used for the main background; if the walkthrough is for a pair of games, this could be the second game
  • gamename: The name of the walkthrough (before "walkthrough"); for example, "Red and Blue" for Appendix:Red and Blue walkthrough
  • prev (optional): if set as "no", the left half of the template does not link to a previous page
  • prevpage (optional): an explicit name for the previous page (the part after "walkthrough/"); this overrides prevsection
  • prevsection: the number of the previous part of the walkthrough (if prevpage is not used); the previous page must be named "Section [prevsection]"
  • prevname: a title for the previous section (generally describing what it covers; should also be used on the walkthrough landing page)
  • next (optional): if set as "no", the right half of the template does not link to a next page
  • nextpage (optional): an explicit name for the next page (the part after "walkthrough/"); this overrides nextsection
  • nextsection: the number of the next part of the walkthrough (if nextpage is not used); the next page must be named "Section [nextsection]"
  • nextname: a title for the next section (generally describing what it covers; should also be used on the walkthrough landing page)

Examples

{{WalkthroughPrevNext
|game=Sun
|game2=Moon
|gamename=Sun and Moon
|prev=no
|nextsection=2
|nextname=Route 1, Iki Town Festival, Professor Kukui's Lab, Trainers' School
}}
Sun and Moon
walkthrough
Route 1, Iki Town Festival, Professor Kukui's Lab, Trainers' School Part 2 →


{{WalkthroughPrevNext
|game=Sun
|game2=Moon
|gamename=Sun and Moon
|prevsection=2
|prevname=Route 1, Iki Town Festival, Professor Kukui's Lab, Trainers' School
|nextsection=4
|nextname=Route 2, Hau'oli Cemetery, Berry Fields, Verdant Cavern
}}
← Part 2 Route 1, Iki Town Festival, Professor Kukui's Lab, Trainers' School
Sun and Moon
walkthrough
Route 2, Hau'oli Cemetery, Berry Fields, Verdant Cavern Part 4 →