Template:NavBar: Difference between revisions
Jump to navigation
Jump to search
Navigation bar
THIS TEMPLATE SHOULD NOT BE EDITED UNLESS ABSOLUTELY NESSESARY
Navigation bar
Navigation bar
m (Link tweaks) |
mNo edit summary |
||
Line 39: | Line 39: | ||
*<code>color</code> Controls the color in this template. | *<code>color</code> Controls the color in this template. | ||
*<code>MainpageLink</code> Controls the main page link. This should either be: <code>[[Main Page]]</code> or <code>[[Main Page|Return to Main page]]</code>. | *<code>MainpageLink</code> Controls the main page link. This should either be: <code><nowiki>[[Main Page]]</nowiki></code> or <code><nowiki>[[Main Page|Return to Main page]]</nowiki></code>. | ||
*<code>tabs</code> Controls the lower open box on this template, input for this is left open but should be used to create buttons to link to different parts of the wiki. See [[Template:NavBar#A_slightly more_advanced_example| The example]] for how to do this. | *<code>tabs</code> Controls the lower open box on this template, input for this is left open but should be used to create buttons to link to different parts of the wiki. See [[Template:NavBar#A_slightly more_advanced_example| The example]] for how to do this. | ||
Revision as of 21:29, 13 March 2023
How to use this template
This template has several parameters and all of them will be displayed in the example below.
color
Controls the color in this template.MainpageLink
Controls the main page link. This should either be:[[Main Page]]
or[[Main Page|Return to Main page]]
.tabs
Controls the lower open box on this template, input for this is left open but should be used to create buttons to link to different parts of the wiki. See The example for how to do this.
Use case examples
{{Template:NavBar | color = #005C53 | tabs = PLACEHOLDER! }} These parameters will result in the following:
PLACEHOLDER!
A slightly more advanced example
{{Template:NavBar | color = #005C53 | tabs = <div style="display:flex;"> <div style="background: #2A96339e; width: 33.3%; border-radius: 0 0 0 1em;">TEST BUTTON 1</div> <div style="background: #BA56569e; width: 33.3%; border-radius: 0 0 0 0;">TEST BUTTON 2</div> <div style="background: #127BB79e; width: 33.4%; border-radius: 0 0 1em 0;">TEST BUTTON 3</div> </div> }} These parameters will result in the following:
TEST BUTTON 1
TEST BUTTON 2
TEST BUTTON 3