Difference between revisions of "Template:Tnavbar"

From Bose Portable PA Encyclopedia
Jump to: navigation, search
(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 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

[create] Documentation