Difference between revisions of "Template:Tnavbar"
(Created page with "<noinclude> {{Documentation}} </noinclude><includeonly> <!-- This template provides a navigation bar ("navbar") for use in other templates. Usage: {{Tnavbar|TemplateName|mini=...") |
m |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
| − | </noinclude><includeonly> | + | </noinclude><includeonly><!-- |
| − | <!-- | + | This template places a compact navigation bar ("navbar") in the upper-right corner |
| − | This template | + | of other templates such as {{Navbox}} or {{Sidebar}}. |
| − | Usage: {{Tnavbar|TemplateName|mini=1|nodiv=1|plain=1}} | + | |
| + | Usage examples: | ||
| + | {{Tnavbar|TemplateName}} | ||
| + | {{Tnavbar|TemplateName|mini=1}} | ||
| + | {{Tnavbar|TemplateName|nodiv=1|plain=1}} | ||
--> | --> | ||
| − | |||
{{#if:{{{plain|}}}| | {{#if:{{{plain|}}}| | ||
| − | <!-- | + | <!-- plain (no div) --> |
| − | {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} • | + | <span class="navbar plainlinks"> |
| − | + | {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} •  | |
| − | + | [{{fullurl:{{{1}}}|action=edit}} edit] •  | |
| + | [{{fullurl:{{{1}}}|action=history}} history] | ||
| + | </span> | ||
| | | | ||
| − | |||
{{#if:{{{nodiv|}}}| | {{#if:{{{nodiv|}}}| | ||
| − | <!-- no wrapper | + | <!-- no div wrapper --> |
| − | {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} • | + | <span class="navbar plainlinks"> |
| − | + | {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} •  | |
| − | + | [{{fullurl:{{{1}}}|action=edit}} edit] •  | |
| + | [{{fullurl:{{{1}}}|action=history}} history] | ||
| + | </span> | ||
| | | | ||
| − | <div class="navbar" style="font-size:smaller | + | <!-- full navbar with div --> |
| − | {{#if:{{{mini|}}}|[[{{{1}}}|v]] | + | <div class="navbar plainlinks" style="float:right; font-size:smaller;"> |
| − | + | {{#if:{{{mini|}}}| | |
| − | + | [[{{{1}}}|v]] • [{{ | |
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 14:50, 11 November 2025
[create] Documentation