Difference between revisions of "Template:Navbar (AL)"

From Exiled Kingdoms Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
<onlyinclude><includeonly>{{#switch:{{{1|}}}
 
<onlyinclude><includeonly>{{#switch:{{{1|}}}
|Game = <span style="border:solid 1px; border-color:green; background-color:green; color:white; padding:2px 10px 2px 10px; border-radius:24px 24px 24px 24px;">Archaelund</span>
+
|Game = <span>[[Archaelund]] &#10095;</span>
|Section = <span style="border:solid 1px; border-color:goldenrod; background-color:goldenrod; color:black; padding:2px 6px 2px 10px; border-radius:24px 0px 0px 24px;>{{{3|{{{2|}}}}}}</span>
+
|Section = <span>{{{3|{{{2|}}}}}} &#10095;</span>
|Page = {{#ifeq:{{{2|}}}|{{PAGENAME}}|<span style="border:solid 1px; border-color:goldenrod; background-color:goldenrod; color:black; padding:2px 6px 2px 6px;>{{{3|{{{2|}}}}}}</span>|<span style="border:solid 1px; border-color:goldenrod; padding:2px 6px 2px 6px;>[[{{{2|}}}|{{{3|{{{2|}}}}}}]]</span>}}
+
|Page = {{#ifeq:{{{2|}}}|{{PAGENAME}}|<span style="border-bottom:2px solid #ffb300; padding-bottom:0.25ex;">{{{3|{{{2|}}}}}}</span>|<span style="border-bottom:2px solid #4c4c4c; padding-bottom:0.25ex;">[[{{{2|}}}|{{{3|{{{2|}}}}}}]]</span>}}
|End = <span style="border:solid 1px; border-color:goldenrod; background-color:goldenrod; color:goldenrod; padding:2px 6px 2px 6px; border-radius:0px 24px 24px 0px;>)</span>
+
|Divider = <span>&bull;</span>
 
}}</includeonly></onlyinclude>
 
}}</includeonly></onlyinclude>
 
{{Documentation (AL)}}
 
{{Documentation (AL)}}
 
[[Category:AL Templates]]
 
[[Category:AL Templates]]

Latest revision as of 20:20, 13 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

ElementDescriptionParametersExample output
GameDisplays a navbar element with just the name of the game.noneArchaelund
SectionDisplays a navbar element with the name of a section.<parameter 1> = section name (does not link)Quests ❯
PageDisplays 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
DividerDisplays a dividing element to visually separate individual page links.none

View/Edit documentation page