Difference between revisions of "Template:Navigation/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Created page with "{{doc/start}} ==Syntax== {{tl|Navigation}} ==Result== Patch notes Will select appropriate navbox (or multiple navboxes) for the given page, OR displays error message if p...")
 
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
Default wiki navigation template, codenamed "mother of all navboxes". Shows expanded relevant section and autocollapses the rest.


==Syntax==


{{tl|Navigation}}
==Default - Autocollapsing Navbox==
Shows everything collapsed since this documentation isn't a page in the navbox. If on a page from the navbox, for example [[Traits]], only the relevant subnavbox gets expanded (or the whole thing if there's no sub navbox).


==Result==
  <nowiki>{{Navigation}}</nowiki>
  Patch notes
Will select appropriate navbox (or multiple navboxes) for the given page, OR displays error message if page doesn't exist within the template.
Language navbox


Example with error:
 
Example:


{{Navigation}}
{{Navigation}}


For example without error, go to [[The story]] page.
 
==Plain==
Same navigation, but the Navbox is always expanded.
 
<nowiki>{{Navigation||plain}}</nowiki>
 
 
Example:
 
{{Navigation||plain}}
 
 
==Multiple navboxes==
Navigation is always collapsed and 1st parameter is placed above this navbox. Intended to use with another navbox.
 
<nowiki>{{Navigation|{{Skill navbox}}}}</nowiki>
 
 
Example:
 
{{Navigation|{{Skill navbox}}}}


{{doc/end}}
{{doc/end}}

Latest revision as of 13:09, 25 February 2025

Template-info.png Documentation

Default wiki navigation template, codenamed "mother of all navboxes". Shows expanded relevant section and autocollapses the rest.


Default - Autocollapsing Navbox

Shows everything collapsed since this documentation isn't a page in the navbox. If on a page from the navbox, for example Traits, only the relevant subnavbox gets expanded (or the whole thing if there's no sub navbox).

{{Navigation}}


Example:

Page last edited during patch: 0.9.1.19



Plain

Same navigation, but the Navbox is always expanded.

{{Navigation||plain}}


Example:

Page last edited during patch: 0.9.1.19



Multiple navboxes

Navigation is always collapsed and 1st parameter is placed above this navbox. Intended to use with another navbox.

{{Navigation|{{Skill navbox}}}}


Example:

Page last edited during patch: 0.9.1.19