Difference between revisions of "Template:Navigation/doc"

From Stoneshard wiki
Jump to navigation Jump to search
m (2 revisions imported)
(updated examples)
Line 2: Line 2:
Default wiki navigation template, codenamed "mother of all navboxes". Shows expanded relevant section and autocollapses the rest.
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).


<nowiki>{{Navigation}}</nowiki>
Example:
{{Navigation}}
==Plain==
Same navigation, but the Navbox is always expanded.
<nowiki>{{Navigation||plain}}</nowiki>


==Result==
Patch notes
Relevant navbox section should be expanded while other sections should be collapsed.
Language navbox


Example:
Example:


{{Navigation||plain}}
==Multiple navboxes==
Navigation is always collapsed and 1st parameter is placed above this navbox. Intended to use with another navbox.


{{Navigation}}
<nowiki>{{Navigation|{{Skill navbox}}}}</nowiki>
 
 
==Result==
(always expanded)


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


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

Revision as of 13:06, 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}}}}


Result

(always expanded)

Page last edited during patch: 0.9.1.19