Template:Tnavbar: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Tag: Undo |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude><includeonly><!-- | </noinclude><includeonly> | ||
This template | <!-- | ||
This template provides a navigation bar ("navbar") for use in other templates. | |||
Usage: {{Tnavbar|TemplateName|mini=1|nodiv=1|plain=1}} | |||
--> | |||
{{#if:{{{plain|}}}| | {{#if:{{{plain|}}}| | ||
<!-- | <!-- Plain version (no links) --> | ||
{{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} • | |||
[{{fullurl:{{{1}}}|action=edit}} edit] • | |||
[{{fullurl:{{{1}}}|action=history}} history] | |||
| | | | ||
<!-- Full version --> | |||
{{#if:{{{nodiv|}}}| | {{#if:{{{nodiv|}}}| | ||
<!-- no div | <!-- no wrapper div --> | ||
< | {{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} • | ||
{{#if:{{{mini|}}}|[[{{{1}}}|v]]|[[{{{1}}}|view]]}} | [{{fullurl:{{{1}}}|action=edit}} edit] • | ||
[{{fullurl:{{{1}}}|action=edit}} edit] | [{{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] | ||
</ | </div> | ||
}} | |||
}} | |||
</includeonly> | |||
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
}}
{{
#ifeq: show | show
|{{
#ifexist: {{#switch: Tnavbar
|sandbox|testcases={{ #rel2abs: ../doc }}
|#default=Template:Tnavbar/doc
}}
|This documentation is transcluded from [[{{#switch: Tnavbar |sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Tnavbar/doc
}}]]. ([{{fullurl:{{#switch: Tnavbar
|sandbox|testcases={{ #rel2abs: ../doc }}
|#default=Template:Tnavbar/doc
}}|action=edit}} edit] | [{{fullurl:{{#switch: Tnavbar
|sandbox|testcases={{ #rel2abs: ../doc }}
|#default=Template:Tnavbar/doc
}}|action=history}} history])
}} |
}}{{
#switch: Tnavbar
|sandbox=
|testcases=
|#default={{
#switch: Template/show
| Template/show | User/show ={{
#ifexist: {{ #rel2abs: /sandbox }}
| This template has a sandbox ([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit]) {{
#ifexist: {{ #rel2abs: /testcases }}
| and testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])
|}} for editors to experiment.
|{{
#ifexist: {{ #rel2abs: /testcases }}
| This template has testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit]) for editors to experiment.
}}
}}
|
}}
}}{{ {{ #ifexist: {{#switch: Tnavbar
|sandbox|testcases={{ #rel2abs: ../doc }}
|#default=Template:Tnavbar/doc
}} | {{#switch: Tnavbar
|sandbox|testcases={{ #rel2abs: ../doc }}
|#default=Template:Tnavbar/doc
}} | ns:0 }} }}