Template:Tnavbar/doc: Difference between revisions
(Created page with "{{documentation subpage}} <includeonly>{{high-use| 800,000+ }}</includeonly> <!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE---> <span style="font-size:200%;">Tnavbar</span>{{spaces|2}}('''T'''emplate '''nav'''igation '''bar''') == Usage == Copyable examples when inside a given template adds Tnavbar navigational functionality: :<tt><nowiki>{{Tnavbar|{{subst:PAGENAME}}|mini=1}}</nowiki></tt> :<tt><...") |
No edit summary Tag: Manual revert |
(3 intermediate revisions by the same user not shown) | |
(No difference)
|
Latest revision as of 16:55, 21 October 2025
{{#if: |
{{#if:x||
}} |{{#ifeq: doc | doc
|
{{
#ifeq: show | show | {{ {{#switch: {{#if: | | {{#ifeq:template| | main | {{#ifeq:template|template talk | talk | template }} }} }}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}}
| type = notice
| image = File:Edit-copy green.svg.png
| imageright =
| style =
| textstyle =
| text = This is a documentation subpage for Template:Tnavbar (see that page for the {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template | {{ #if: Template | template | article }}}}}} itself).
It contains usage information, categories and other content that is not part of the original {{ #if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template page | {{ #if: Template |template page|article}}}}}}}}.
| small =
| smallimage =
| smallimageright =
| smalltext =
}}
}}{{ #if: | | [[Category:{{ #if: Template | Template | Article }} documentation]] }}
| }} }}
Tnavbar{{#ifexpr:(2*2-000)>000| }}{{#ifexpr:(2*2-001)>001| }}{{#ifexpr:(2*2-002)>002| }}{{#ifexpr:(2*2-003)>003| }}{{#ifexpr:(2*2-004)>004| }}{{#ifexpr:(2*2-005)>005| }}{{#ifexpr:(2*2-006)>006| }}{{#ifexpr:(2*2-007)>007| }}{{#ifexpr:(2*2-008)>008| }}{{#ifexpr:(2*2-009)>009| }}{{#ifexpr:(2*2-010)>010| }}{{#ifexpr:(2*2-011)>011| }}{{#ifexpr:(2*2-012)>012| }}{{#ifexpr:(2*2-013)>013| }}{{#ifexpr:(2*2-014)>014| }}{{#ifexpr:(2*2-015)>015| }}{{#ifexpr:(2*2-016)>016| }}{{#ifexpr:(2*2-017)>017| }}{{#ifexpr:(2*2-018)>018| }}{{#ifexpr:(2*2-019)>019| }}{{#ifexpr:(2*2-020)>020| }}{{#ifexpr:(2*2-021)>021| }}{{#ifexpr:(2*2-022)>022| }}{{#ifexpr:(2*2-023)>023| }}{{#ifexpr:(2*2-024)>024| }}{{#ifexpr:(2*2-025)>025| }}{{#ifexpr:(2*2-026)>026| }}{{#ifexpr:(2*2-027)>027| }}{{#ifexpr:(2*2-028)>028| }}{{#ifexpr:(2*2-029)>029| }}{{#ifexpr:(2*2-030)>030| }}{{#ifexpr:(2*2-031)>031| }}{{#ifexpr:(2*2-032)>032| }}{{#ifexpr:(2*2-033)>033| }}{{#ifexpr:(2*2-034)>034| }}{{#ifexpr:(2*2-035)>035| }}{{#ifexpr:(2*2-036)>036| }}{{#ifexpr:(2*2-037)>037| }}{{#ifexpr:(2*2-038)>038| }}{{#ifexpr:(2*2-039)>039| }}{{#ifexpr:(2*2-040)>040| }}{{#ifexpr:(2*2-041)>041| }}{{#ifexpr:(2*2-042)>042| }}{{#ifexpr:(2*2-043)>043| }}{{#ifexpr:(2*2-044)>044| }}{{#ifexpr:(2*2-045)>045| }}{{#ifexpr:(2*2-046)>046| }}{{#ifexpr:(2*2-047)>047| }}{{#ifexpr:(2*2-048)>048| }}{{#ifexpr:(2*2-049)>049| }}{{#ifexpr:(2*2-050)>050| }}{{#ifexpr:(2*2-051)>051| }}{{#ifexpr:(2*2-052)>052| }}{{#ifexpr:(2*2-053)>053| }}{{#ifexpr:(2*2-054)>054| }}{{#ifexpr:(2*2-055)>055| }}{{#ifexpr:(2*2-056)>056| }}{{#ifexpr:(2*2-057)>057| }}{{#ifexpr:(2*2-058)>058| }}{{#ifexpr:(2*2-059)>059| }}{{#ifexpr:(2*2-060)>060| }}{{#ifexpr:(2*2-061)>061| }}{{#ifexpr:(2*2-062)>062| }}{{#ifexpr:(2*2-063)>063| }}{{#ifexpr:(2*2-064)>064| }}{{#ifexpr:(2*2-065)>065| }}{{#ifexpr:(2*2-066)>066| }}{{#ifexpr:(2*2-067)>067| }}{{#ifexpr:(2*2-068)>068| }}{{#ifexpr:(2*2-069)>069| }}{{#ifexpr:(2*2-070)>070| }}{{#ifexpr:(2*2-071)>071| }}{{#ifexpr:(2*2-072)>072| }}{{#ifexpr:(2*2-073)>073| }}{{#ifexpr:(2*2-074)>074| }}{{#ifexpr:(2*2-075)>075| }}{{#ifexpr:(2*2-076)>076| }}{{#ifexpr:(2*2-077)>077| }}{{#ifexpr:(2*2-078)>078| }}{{#ifexpr:(2*2-079)>079| }}{{#ifexpr:(2*2-080)>080| }}{{#ifexpr:(2*2-081)>081| }}{{#ifexpr:(2*2-082)>082| }}{{#ifexpr:(2*2-083)>083| }}{{#ifexpr:(2*2-084)>084| }}{{#ifexpr:(2*2-085)>085| }}{{#ifexpr:(2*2-086)>086| }}{{#ifexpr:(2*2-087)>087| }}{{#ifexpr:(2*2-088)>088| }}{{#ifexpr:(2*2-089)>089| }}{{#ifexpr:(2*2-090)>090| }}{{#ifexpr:(2*2-091)>091| }}{{#ifexpr:(2*2-092)>092| }}{{#ifexpr:(2*2-093)>093| }}{{#ifexpr:(2*2-094)>094| }}{{#ifexpr:(2*2-095)>095| }}{{#ifexpr:(2*2-096)>096| }}{{#ifexpr:(2*2-097)>097| }}{{#ifexpr:(2*2-098)>098| }}{{#ifexpr:(2*2-099)>099| }}{{#ifexpr:(2*2-100)>100| }}{{#ifexpr:(2*2-101)>101| }}{{#ifexpr:(2*2-102)>102| }}{{#ifexpr:(2*2-103)>103| }}{{#ifexpr:(2*2-104)>104| }}{{#ifexpr:(2*2-105)>105| }}{{#ifexpr:(2*2-106)>106| }}{{#ifexpr:(2*2-107)>107| }}{{#ifexpr:(2*2-108)>108| }}{{#ifexpr:(2*2-109)>109| }}{{#ifexpr:(2*2-110)>110| }}{{#ifexpr:(2*2-111)>111| }}{{#ifexpr:(2*2-112)>112| }}{{#ifexpr:(2*2-113)>113| }}{{#ifexpr:(2*2-114)>114| }}{{#ifexpr:(2*2-115)>115| }}{{#ifexpr:(2*2-116)>116| }}{{#ifexpr:(2*2-117)>117| }}{{#ifexpr:(2*2-118)>118| }}{{#ifexpr:(2*2-119)>119| }}{{#ifexpr:(2*2-120)>120| }}{{#ifexpr:(2*2-121)>121| }}{{#ifexpr:(2*2-122)>122| }}{{#ifexpr:(2*2-123)>123| }}{{#ifexpr:(2*2-124)>124| }}{{#ifexpr:(2*2-125)>125| }}{{#ifexpr:(2*2-126)>126| }}{{#ifexpr:(2*2-127)>127| }}{{#ifexpr:(2*2-128)>128| }}{{#ifexpr:(2*2-129)>129| }}{{#ifexpr:(2*2-130)>130| }}{{#ifexpr:(2*2-131)>131| }}{{#ifexpr:(2*2-132)>132| }}{{#ifexpr:(2*2-133)>133| }}{{#ifexpr:(2*2-134)>134| }}{{#ifexpr:(2*2-135)>135| }}{{#ifexpr:(2*2-136)>136| }}{{#ifexpr:(2*2-137)>137| }}{{#ifexpr:(2*2-138)>138| }}{{#ifexpr:(2*2-139)>139| }}{{#ifexpr:(2*2-140)>140| }}{{#ifexpr:(2*2-141)>141| }}{{#ifexpr:(2*2-142)>142| }}{{#ifexpr:(2*2-143)>143| }}{{#ifexpr:(2*2-144)>144| }}{{#ifexpr:(2*2-145)>145| }}{{#ifexpr:(2*2-146)>146| }}{{#ifexpr:(2*2-147)>147| }}{{#ifexpr:(2*2-148)>148| }}{{#ifexpr:(2*2-149)>149| }}(Template navigation bar)
Usage[edit]
Copyable examples when inside a given template adds Tnavbar navigational functionality:
- {{Tnavbar|{{subst:PAGENAME}}|mini=1}}
- {{Tnavbar|{{subst:PAGENAME}}|plain=1}}
- {{Tnavbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}
- {{Tnavbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}
- {{Tnavbar|{{subst:PAGENAME}}|miniv=1}}
- {{Tnavbar|{{subst:PAGENAME}}|viewplain=1}}
- {{Tnavbar|{{subst:PAGENAME}}|miniv=1|nodiv=1}}
- {{Tnavbar|{{subst:PAGENAME}}|viewplain=1|nodiv=1}}
- {{Tnavbar|{{subst:PAGENAME}}|fontcolor=green}}
- The
{{subst:PAGENAME}}
will be substituted with the template's name when parsed by the servers. - {{Tnavbar|Tnavbar/doc}} gives: {{#if:|
Note to editors with edit access to this template[edit]
This template is represented across hundreds of thousands of pages, so please tread lightly when editing here. Conducting sufficient sandbox testing (Tnavbar specific) to establish the validity of edits relative to Tnavbar is strongly encouraged prior to attempting to integrate changes.
Examples[edit]
{{Tnavbar|Name of Template|mini= |nodiv= |fontcolor= }}
Required parameters[edit]
{{Tnavbar|Name of Template}}
the template name is required.
Optional parameters[edit]
Options | Parameters | Produces... | |
---|---|---|---|
Normal | |||
Normal | {{tnavbar|Template Name}} |
1|{{#if:|view|v}}|{{#if:|v|view}} • {{#if:|d|talk}} • {{#if:|e|edit}}}}{{#if:| |}} | |
No "This box:" text. | {{tnavbar|Template Name|plain=1}} |
1|{{#if:|view|v}}|{{#if:|v|view}} • {{#if:|d|talk}} • {{#if:|e|edit}}}}{{#if:| |}} | |
Good for "blending" into text. | {{tnavbar|Template Name|nodiv=1}} |
1|{{#if:|view|v}}|{{#if:|v|view}} • {{#if:|d|talk}} • {{#if:|e|edit}}}}{{#if:1| |}} Ipsum | |
Blended no "This box:" text. | {{tnavbar|Template Name|plain=1|nodiv=1}} |
1|{{#if:|view|v}}|{{#if:|v|view}} • {{#if:|d|talk}} • {{#if:|e|edit}}}}{{#if:1| |}} Ipsum | |
For a color option. | {{tnavbar|Template Name|fontcolor=color}} |
1|{{#if:|view|v}}|{{#if:|v|view}} • {{#if:|d|talk}} • {{#if:|e|edit}}}}{{#if:| |}} | |
Mini | |||
Makes Tnavbar display in a mini version: | {{tnavbar|Template Name|mini=1}} |
1|{{#if:|view|v}}|{{#if:1|v|view}} • {{#if:1|d|talk}} • {{#if:1|e|edit}}}}{{#if:| |}} | |
Good for "blending" into text. | {{tnavbar|Template Name|mini=1|nodiv=1}} |
1|{{#if:|view|v}}|{{#if:1|v|view}} • {{#if:1|d|talk}} • {{#if:1|e|edit}}}}{{#if:1| |}} Ipsum | |
View only | |||
For a simpler access option. | {{tnavbar|Template Name|miniv=1}} |
1|{{#if:|view|v}}|{{#if:|v|view}} • {{#if:|d|talk}} • {{#if:|e|edit}}}}{{#if:| |}} | |
For a full simpler access option. | {{tnavbar|Template Name|viewplain=1}} |
1|{{#if:1|view|v}}|{{#if:|v|view}} • {{#if:|d|talk}} • {{#if:|e|edit}}}}{{#if:| |}} |
Prepackaged[edit]
- {{Tnavbar-header}}
- Positions v • d • e on the right edge of the line, often used in non-collapsible navbox heading.
- {{Tnavbar-navframe}}
- For use in conjunction with Navframe divs, positions v • d • e opposite of the [hide]/[show] feature.
- {{Tnavbar-collapsible}}
- For use in conjunction with Collapsible tables,floats v • d • e opposite of the [hide]/[show] feature.
A list of meta-templates that may be used in place of custom navbox code follows.
See also[edit]
{{Codifiednavbar}}
{{#if:| | 1|{{#if:|view|v}}|{{#if:|v|view}} • {{#if:|d|talk}} • {{#if:|e|edit}}}}{{#if:| |}} | collapsible | Header color | Image | Groups | Style (body) parameter/s |
Examples |
---|---|---|---|---|---|---|---|
{{Navbox}} | collapsible | navbox | Left/right of body | Yes | Yes | {{USCongress}}, {{Solar System}} | |
{{Navbox with columns}} | collapsible | navbox | Left/right of columns | No | Yes | {{Current U.S. Senators}}, {{Czech lands}} | |
{{Navbox with collapsible groups}} | collapsible | navbox | Left/right of body and/or in each list | Yes | Yes | {{University of Michigan}}, {{Scouting}} |
Type | CSS classes | Javascript | Collapses when | Custom initial state |
Nesting |
---|---|---|---|---|---|
Collapsible tables | collapsible | Defined in Common.js | 2 or more autocollapse on page | Yes | Yes |