Template:Navbar (AL): Difference between revisions
From Exiled Kingdoms Wiki
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|Section = <span style="border-bottom:2px solid #ffb300; padding-bottom:0.25em;">{{{3|{{{2|}}}}}}</span> | |Section = <span style="border-bottom:2px solid #ffb300; padding-bottom:0.25em;">{{{3|{{{2|}}}}}}</span> | ||
|Page = {{#ifeq:{{{2|}}}|{{PAGENAME}}|<span style="border-bottom:2px solid #ffb300; padding-bottom:0.25em;">{{{3|{{{2|}}}}}}</span>|<span>[[{{{2|}}}|{{{3|{{{2|}}}}}}]]</span>}} | |Page = {{#ifeq:{{{2|}}}|{{PAGENAME}}|<span style="border-bottom:2px solid #ffb300; padding-bottom:0.25em;">{{{3|{{{2|}}}}}}</span>|<span>[[{{{2|}}}|{{{3|{{{2|}}}}}}]]</span>}} | ||
| | |Separator = {{#switch:{{{2|}}}|Section = <span>❯</span>|Page = <span>•</span>}} | ||
| | |||
}}</includeonly></onlyinclude> | }}</includeonly></onlyinclude> | ||
{{Documentation (AL)}} | {{Documentation (AL)}} | ||
[[Category:AL Templates]] | [[Category:AL Templates]] |
Latest revision as of 13:19, 28 February 2020
Description
This template generates various elements of a navigation bar (intended to be displayed at the top of a page).
Usage
{{Navbar (AL)|<element>|<parameter 1>|<parameter 2>}}
Element types
Element | Description | Parameters | Example output |
---|---|---|---|
Game | Displays a navbar element with just the name of the game. | none | Archaelund |
Section | Displays a navbar element with the name of a section. | <parameter 1> = section name (does not link) | Quests |
Page | Displays a navbar element with a link to an internal page. | <parameter 1> = pagename (links automatically); <parameter 2> = link text (optional, otherwise pagename is displayed) | Quests by Type |
Separator | Displays a dividing element to visually separate individual navbar elements. | <parameter 1> = "Section" or "Page" | Section: ❯ Page: • |
View/Edit documentation page