Template:SubpageNav/doc

From Len'en Wiki
Jump to navigation Jump to search
This is a documentation subpage for Template:SubpageNav.
It contains usage information, categories and other content that is not part of the original template page.

{{SubpageNav}} ia used at the top and bottom of a translation and spell card page for easier navigation.

Usage[edit source]

  • {{SubpageNav|Label|Left navigator|Right navigator}}

Or to be more specific:

  • {{SubpageNav|Label}}

Note: The Left and Right option can support up to 14 parameters with their labels optional.

Parameters[edit source]

  • |Label=: This is the label you should give to indicate the subpage is under which category such as Story, Spell Cards, etc.
  • |L1=: Meaning "Left 1", this parameter links to the previous page
  • |L1l=: Meaning "Left 1 Link Label", this parameter displays an alternative name for the link provided in |L1= rather than the subpage name. Examples will be given here
  • |R1=: Meaning "Right 1", this parameter links to the next page
  • |R1l=: Meaning "Right 1 Link Label", this parameter displays an alternative name for the link provided in |R1= rather than the subpage name. Examples will be given here
  • |Lx=, |Lxl=, |Rx=, |Rxl=: "x" being replaced with an incrementing number, the number may go up to 14 for now, but if more parameters is needed, this template will adjust accordingly.

Examples[edit source]

NB: The coding below is served as a sample of how it will display, the link may not work due to the coding not being placed on proper subpages.

Simple SubpageNav[edit source]

  • {{SubpageNav|Spell Cards|Shion|Clause}}
< Shion   Spell Cards   Clause >
  • {{SubpageNav|Spell Cards||Clause}}
 Spell Cards   Clause >
  • {{SubpageNav|Spell Cards|Shion|}}
< Shion   Spell Cards 

Parameter SubpageNav[edit source]

Let's say, you are on page "Game/Story/Scenario". The next page will have two different endings, but Ending B has a unique name not in the link. With this information your template should look like:

{{SubpageNav|Story|L1=Prologue|R1=Ending A|R2=Ending B|R2l=Good Ending B}}

Thus will end up looking like this:

< Prologue   Story   Ending A
 Good Ending B
>