Template:Navbar/doc: Difference between revisions
From Archaelund Wiki
(Created page with "== Description == This template generates various elements of a navigation bar, intended to be displayed at the top of a page. == Usage == <pre> {{Navbar|<element>|<parameter...") |
No edit summary |
||
| Line 10: | Line 10: | ||
<table class="wikitable> | <table class="wikitable> | ||
<tr><th>Element</th><th>Description</th><th>Parameters</th><th>Example output</th></tr> | <tr><th>Element</th><th>Description</th><th>Parameters</th><th>Example output</th></tr> | ||
<tr><td>Game</td><td>Displays a navbar element with | <tr><td>Game</td><td>Displays a navbar element with a link to the main page of the game.</td><td>none</td><td>{{Navbar|Game}}</td></tr> | ||
<tr><td>Section</td><td>Displays a navbar element with the name of a section.</td><td><parameter 1> = section name (does not link)</td><td>{{Navbar|Section|Test section}}</td></tr> | <tr><td>Section</td><td>Displays a navbar element with the name of a section.</td><td><parameter 1> = section name (does not link)</td><td>{{Navbar|Section|Test section}}</td></tr> | ||
<tr><td>Page</td><td>Displays a navbar element with a link to an internal page.</td><td><parameter 1> = pagename (links automatically); <parameter 2> = link text (optional, otherwise pagename is displayed)</td><td>{{Navbar|Page|Test page}}</td></tr> | <tr><td>Page</td><td>Displays a navbar element with a link to an internal page.</td><td><parameter 1> = pagename (links automatically); <parameter 2> = link text (optional, otherwise pagename is displayed)</td><td>{{Navbar|Page|Test page}}</td></tr> | ||
<tr><td>Separator</td><td>Displays a dividing element to visually separate individual navbar elements.</td><td><parameter 1> = "Section" or "Page"</td><td>Section: {{Navbar|Separator|Section}}<br> Page: {{Navbar|Separator|Page}}</td></tr> | <tr><td>Separator</td><td>Displays a dividing element to visually separate individual navbar elements.</td><td><parameter 1> = "Section" or "Page"</td><td>Section: {{Navbar|Separator|Section}}<br> Page: {{Navbar|Separator|Page}}</td></tr> | ||
</table> | </table> | ||
Latest revision as of 16:55, 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
| Element | Description | Parameters | Example output |
|---|---|---|---|
| Game | Displays a navbar element with a link to the main page of the game. | none | Archaelund |
| Section | Displays a navbar element with the name of a section. | <parameter 1> = section name (does not link) | Test section |
| 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) | Test page |
| Separator | Displays a dividing element to visually separate individual navbar elements. | <parameter 1> = "Section" or "Page" | Section: ❯ Page: • |