Template:Navbar: Difference between revisions

From Archaelund Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
<onlyinclude><includeonly>{{#switch:{{{1|}}}
<onlyinclude><includeonly>{{#switch:{{{1|}}}
|Game = <span>[[{{MediaWiki:Mainpage}}]]</span>
|Game = <span>[[{{MediaWiki:Mainpage}}|Archaelund]]</span>
|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>}}

Latest revision as of 16:54, 14 March 2020

Description

This template generates various elements of a navigation bar, intended to be displayed at the top of a page.

Usage

{{Navbar|<element>|<parameter 1>|<parameter 2>}}

Element types

ElementDescriptionParametersExample output
GameDisplays a navbar element with a link to the main page of the game.noneArchaelund
SectionDisplays a navbar element with the name of a section.<parameter 1> = section name (does not link)Test section
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)Test page
SeparatorDisplays a dividing element to visually separate individual navbar elements.<parameter 1> = "Section" or "Page"Section:
Page:

View/Edit documentation page