Template:Navbar
From Captain of Industry Wiki
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Optional parameters
| Options | Parameters | Produces... | "Shortcut" template |
|---|---|---|---|
| Basic | {{navbar|Template Name}} |
||
| Different text | {{navbar|Template Name|text=This template:}} |
||
| Without "This box:" text | {{navbar|Template Name|plain=y}} |
{{view}} | |
| Short version | {{navbar|Template Name|mini=y}} |
{{v}} | |
| With brackets | {{navbar|Template Name|brackets=y}} |
||
| With font styling examples (span) | {{navbar|Template Name|fontstyle=color: green; font-style: italic;}} |
||
| With whole-template styling examples (div) | {{navbar|Template Name|style=float:right; background: Beige; padding: 5px; border: 1px solid;}} |
||
| History, move, and watchlist links | {{navbar|template=Template Name|e|t|h|m|w}} |
Note that to show the history, move, and watchlist links, |template= needs to be set to the template value specifically. Individual values can be left out of this list, e.g. {{navbar|template=Template Name|h|m|w}} will only show the view, history, move, and watchlist links.
TemplateData
<templatedata> {
"description": "When placed inside a given template, it adds navbar navigational functionality",
"params": {
"1": {
"label": "Template Name",
"description": "The name of the template, so links work correctly",
"type": "string",
"default": "",
"required": true
},
"text": {
"label": "Different text",
"description": "Allows custom text to replace the default 'this box'",
"type": "string",
"default": "This box",
"required": false
},
"plain": {
"label": "Without 'This box:' text",
"description": "Removes 'This box'",
"type": "number",
"default": "0",
"required": false
},
"mini": {
"label": "Short Version",
"description": "Shortens text to V T E",
"type": "number",
"default": "0",
"required": false
},
"brackets": {
"label": "with brackets",
"description": "adds brackets before and after the links",
"type": "number",
"default": "0",
"required": false
},
"fontstyle": {
"label": "Font color",
"description": "Allows you to change the color of the font (in the format color:green)",
"type": "string",
"default": "",
"required": false
},
"style": {
"label": "To float to the side",
"description": "Allows the template to float to the side (format=float:right)",
"type": "string",
"default": "float:left",
"required": false
}
}
}
</templatedata>The above text is transcluded from Template:Navbar/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Navbar/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Navbar/doc. (View all subpages of this page.)