Editing
Template:Navbox/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Setup parameters === ; ''name''<nowiki>*</nowiki> : The name of the template, which is needed for the view, discuss, and edit icon links to work properly on all pages where the template is used. You can enter <code><nowiki>{{subst:PAGENAME}}</nowiki></code> for this value as a shortcut. The name parameter is only mandatory if a <code>title</code> is specified and the <code>border</code> parameter is not set. ; ''state''<nowiki>*</nowiki> <span style="font-weight:normal;">[<code>uncollapsed, collapsed, off</code>]</span> :* Defaults to <code>uncollapsed</code>. :* If set to <code>collapsed</code>, the navbox will always start out in a collapsed state. :* If set to <code>off</code>, the navbox will always be expanded with no [hide] link on the right. :* If set to anything other than <code>collapsed</code>, or <code>off</code> (such as <code>uncollapsed</code>), the navbox will always start out in an expanded state, but have the "hide" button. : To define a default initial state for a navbox that can be overridden in an article: :* In your intermediate template, create a parameter also named "state" as a pass-through: :: <tt><nowiki>| state = {{{state<includeonly>|your_desired_initial_state</includeonly>}}}</nowiki></tt> :* The <nowiki><includeonly>|</nowiki> will expand the template when viewing the template page by itself. : Example: {{tl|Absalom navbox}} with autocollapse as the default initial state. [[The Docks]] transcludes it and has only one navbox, so the Absalom navbox shows. [[Absalom]] has two navboxes, so the Absalom navbox collapses. <!-- No PFW navboxes use expanded as the default Example: {{tl|Historical currencies of Hungary}} with expanded as the default initial state. All transcluding articles shows the content by default, unless there were an hypothetical article that specifies state = collapsed when transcluding. -->
Summary:
Please note that all contributions to 2d4chan may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
2d4chan:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information