Template:Tnavbar: Difference between revisions

From Bose Portable PA Encyclopedia
Jump to navigation Jump to search
mNo edit summary
m (Undo revision 25178 by ST (talk))
Tag: Undo
 
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
<!--
of other templates such as {{Navbox}} or {{Sidebar}}.
This template provides a navigation bar ("navbar") for use in other templates.
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) -->
   <!-- Plain version (no links) -->
   <span class="navbar plainlinks">
   {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} •  
    {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}}&#32;&#32;
  [{{fullurl:{{{1}}}|action=edit}} edit] •  
    [{{fullurl:{{{1}}}|action=edit}} edit]&#32;&#32;
  [{{fullurl:{{{1}}}|action=history}} history]
    [{{fullurl:{{{1}}}|action=history}} history]
  </span>
|
|
  <!-- Full version -->
   {{#if:{{{nodiv|}}}|
   {{#if:{{{nodiv|}}}|
     <!-- no div wrapper -->
     <!-- no wrapper div -->
     <span class="navbar plainlinks">
    {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} •
       {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}}&#32;&#32;
    [{{fullurl:{{{1}}}|action=edit}} edit] •
       [{{fullurl:{{{1}}}|action=edit}} edit]&#32;&#32;
    [{{fullurl:{{{1}}}|action=history}} history]
  |
     <div class="navbar" style="font-size:smaller; text-align:right;">
       {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} •  
       [{{fullurl:{{{1}}}|action=edit}} edit] •  
       [{{fullurl:{{{1}}}|action=history}} history]
       [{{fullurl:{{{1}}}|action=history}} history]
     </span>
     </div>
   |
   }}
    <!-- full navbar with div -->
}}
    <div class="navbar plainlinks" style="float:right; font-size:smaller;">
</includeonly>
      {{#if:{{{mini|}}}|
        [[{{{1}}}|v]]&#32;•&#32;[{{

Latest revision as of 14:51, 11 November 2025

{{
 #if: Documentation
|
{{
   #ifexist: {{#switch: Tnavbar
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Tnavbar/doc

}}

   |[[{{fullurl:{{#switch: Tnavbar
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Tnavbar/doc

}}|action=edit}} edit]]

   |{{
     #if: 
     |
     |[[{{fullurl:{{#switch: Tnavbar
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Tnavbar/doc

}}|action=edit&preload=Template:Documentation/preload}} create]]

   }}
}}
Documentation

}}

{{ {{ #ifexist: {{#switch: Tnavbar

 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Tnavbar/doc

}} | {{#switch: Tnavbar

 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Tnavbar/doc

}} | ns:0 }} }}