Template:Navbar-collapsible/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Dispenser m removed {{sprotected2}} |
meta>Dispenser updated documentation |
||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
Simply place '''<nowiki>{{</nowiki>'''Tnavbar-collapsible|Heading|Name of Template'''<nowiki>}}</nowiki>''' in the header area of a | Simply place '''<nowiki>{{</nowiki>'''Tnavbar-collapsible|Heading|Name of Template'''<nowiki>}}</nowiki>''' in the header area of a [[Wikipedia: NavFrame#Collapsible tables|Collapsible tables]] to add a left justified <small>v • d • e</small> navigational functionality. | ||
===Parameters=== | ===Parameters=== | ||
Line 10: | Line 10: | ||
; 1 : (the first unnamed parameter) Text that appears centered in the titlebar (the top bar). | ; 1 : (the first unnamed parameter) Text that appears centered in the titlebar (the top bar). | ||
; 2 : (the second unnamed parameter) The name of the template, which is needed for the "<span style="white-space:nowrap;">view • talk • edit</span>" links to work properly on all of the pages where the template is used on. You can enter <code><nowiki>{{subst:PAGENAME}}</nowiki></code> for this value as a shortcut. | ; 2 : (the second unnamed parameter) The name of the template, which is needed for the "<span style="white-space:nowrap;">view • talk • edit</span>" links to work properly on all of the pages where the template is used on. You can enter <code><nowiki>{{subst:PAGENAME}}</nowiki></code> for this value as a shortcut. | ||
====''Optional''==== | |||
; fontcolor : (<span style="color: red;">'''Deprecated'''</span>) Specifies the title text color | |||
==See also== | ==See also== | ||
;{{tl|Tnavbar-header}}: | ;{{tl|Tnavbar}}: This template [[Wikipedia:Transclusion|transcluses]] tnavbar, the source is more customizable. | ||
;{{tl|Tnavbar}}: | ;{{tl|tnavbar-header}}: Positions <small>v • d • e</small> on the right edge of the line, often used in non-collapsible navbox heading. | ||
;{{tl|Tnavbar-navframe}}: For use in conjunction with [[Wikipedia:NavFrame|Navframe div]]s, positions <small>v • d • e</small> opposite of the [hide]/[show] feature. | |||
Make use of meta-template to reduce code bloat and simplify editing: | |||
{{Navigational templates}} | |||
<includeonly> | <includeonly> |
Revision as of 22:25, 10 January 2007
Template:Template doc page viewed directly
Usage
Simply place {{Tnavbar-collapsible|Heading|Name of Template}} in the header area of a Collapsible tables to add a left justified v • d • e navigational functionality.
Parameters
Mandatory
- 1
- (the first unnamed parameter) Text that appears centered in the titlebar (the top bar).
- 2
- (the second unnamed parameter) The name of the template, which is needed for the "view • talk • edit" links to work properly on all of the pages where the template is used on. You can enter
{{subst:PAGENAME}}
for this value as a shortcut.
Optional
- fontcolor
- (Deprecated) Specifies the title text color
See also
- {{Tnavbar}}
- This template transcluses tnavbar, the source is more customizable.
- {{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.
Make use of meta-template to reduce code bloat and simplify editing: Template:Navigational templates