Template:Tnavbar: Difference between revisions

From Bose Portable PA Encyclopedia
Jump to navigation Jump to search
(Created page with "<noinclude> {{Documentation}} </noinclude><includeonly> <!-- This template provides a navigation bar ("navbar") for use in other templates. Usage: {{Tnavbar|TemplateName|mini=...")
 
mNo edit summary
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 provides a navigation bar ("navbar") for use in other templates.
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 version (no links) -->
   <!-- plain (no div) -->
   {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} •  
   <span class="navbar plainlinks">
  [{{fullurl:{{{1}}}|action=edit}} edit] •  
    {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}}&#32;&#32;
  [{{fullurl:{{{1}}}|action=history}} history]
    [{{fullurl:{{{1}}}|action=edit}} edit]&#32;&#32;
    [{{fullurl:{{{1}}}|action=history}} history]
  </span>
|
|
  <!-- Full version -->
   {{#if:{{{nodiv|}}}|
   {{#if:{{{nodiv|}}}|
     <!-- no wrapper div -->
     <!-- no div wrapper -->
     {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} •  
     <span class="navbar plainlinks">
    [{{fullurl:{{{1}}}|action=edit}} edit] •  
      {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}}&#32;&#32;
    [{{fullurl:{{{1}}}|action=history}} history]
      [{{fullurl:{{{1}}}|action=edit}} edit]&#32;&#32;
      [{{fullurl:{{{1}}}|action=history}} history]
    </span>
   |
   |
     <div class="navbar" style="font-size:smaller; text-align:right;">
    <!-- full navbar with div -->
       {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} •  
     <div class="navbar plainlinks" style="float:right; font-size:smaller;">
      [{{fullurl:{{{1}}}|action=edit}} edit] •
       {{#if:{{{mini|}}}|
      [{{fullurl:{{{1}}}|action=history}} history]
        [[{{{1}}}|v]]&#32;&#32;[{{
    </div>
  }}
}}
</includeonly>

Revision as of 14:50, 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 }} }}