Editing
Template:Navbox with collapsible groups/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!
== Parameters == This template shares many common parameters with its sister templates {{t1|Navbox}} and {{t1|Navbox with columns}}. The common parameters are marked with a cross<sup>'''β '''</sup>. Please refer to the documentation of {{t1|Navbox}} for more in depth descriptions and examples of those parameters. ===Setup parameters=== :;name<sup>β </sup> ::The name of the template. The name of this template, for example, is "Navbox with collapsible groups". :; ''state''<sup>β </sup> <span style="font-weight:normal;">[<code>autocollapse, uncollapsed, collapsed, plain, off</code>]</span> ::The initial state of the show/hide feature for the main title. See {{t1|Navbox}} for more information. Does not affect display or hiding of group items, see ''state<sub>n</sub>'', below. :;''navbar''<sup>β </sup> ::Possible values are <code>plain</code>, <code>off</code>, and the default value of blank. See {{t1|Navbox}} for more information. :;''border''<sup>β </sup> ::Possible values are <code>child</code>, <code>none</code>, and the default value of blank. Set to <code>child</code> if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{t1|Navbox}}, the columns of a {{t1|Navbox with columns}}, or a list area of {{t1|Navbox with collapsible groups}}. See {{t1|Navbox}} for more information and examples. ===Basic data parameters=== :;'''''title'''''<sup>β </sup> ::The title of the template, displayed centered in the titlebar at the top of the template. :;''above''<sup>β </sup> ::Text or other elements to appear above groups/lists. :;''image''<sup>β </sup> ::Image to the right of all of the groups/lists. :;''imageleft''<sup>β </sup> ::Image to the left of all of the groups/lists. :;''below''<sup>β </sup> ::Text or other elements to appear below the groups/lists. ===Group/list parameters=== :; ''group<sub>n</sub>''<sup>β </sup> :: The title of each section. :; ''list<sub>n</sub>''<sup>β </sup> :: The content/wikilinks that will be shown in the group. Use dots or bullets as separators (see the [[#See also|See also]] section). A {{t1|Navbox}} or {{t1|Navbox with columns}} can optionally be used here with its <code>border = child</code> parameter set. If this is done, leave the corresponding group<sub>n</sub> blank, as the child navbox will already provide the collapsible feature. :; ''abbr<sub>n</sub>'' :: This is the abbreviation of the group. See <code>selected</code> parameter immediately below to see how to use this parameter. This parameter is optional, but recommended. :; ''selected'' :: If the value of <code>selected</code> equals the value of <code>abbr<sub>n</sub></code>, then list<sub>n</sub> is uncollapsed and all other lists are collapsed. If <code>selected</code> is left blank, or if it does not match any <code>abbr<sub>n</sub></code>, then all groups are collapsed. Usually this parameter should be set to <tt><nowiki>{{{1|}}}</nowiki></tt>. Since this template is a base template for others, there has to be a way to pass the group parameter from the article, to the secondary template to this one. :: The collapsed/uncollapsed options can be listed on the template's page by using the {{tl|Collapsible sections option}} template in the <nowiki><noinclude></nowiki> part of the page. :; ''state<sub>n</sub>'' <span style="font-weight:normal;">[<code>autocollapse, uncollapsed, collapsed, plain, off</code>]</span> :: The initial collapsible state of list<sub>n</sub>. Set to collapsed by default. Overridden to uncollapsed if <code>selected</code> equals <code>abbr<sub>n</sub></code>. :; ''image<sub>n</sub>'' :: An image to appear in the list<sub>n</sub> content area on the right side. :; ''imageleft<sub>n</sub>'' :: An image to appear in the list<sub>n</sub> content area on the left side. ===Style parameters=== :;''bodystyle''<sup>β </sup> ::CSS style/s to apply to the entire template :;''titlestyle''<sup>β </sup> ::[[Wikipedia:CSS|CSS]] style/s to apply to titlebar; usually <code>background:''color''</code>. The color of wikilink text must be manually changed using span tags. For example use <code><nowiki>title = [[Scouting|<span style="color:ivory;">Scouting</span>]]</nowiki></code> to change the color of the link to ivory. The [show]/[hide] button and the vde link button use the color set in the titlestyle parameter. Here is an example of setting the titlestyle: :::<code>titlestyle = background:darkgreen;color:ivory;</code> :;''abovestyle''<sup>β </sup> :;''belowstyle''<sup>β </sup> ::CSS style/s to apply to the ''above'' and ''below'' parameters, respectively. :;''basestyle''<sup>β </sup> ::CSS style/s to apply to the ''title'', ''above'', ''below'', and ''group<sub>n</sub>'' parameters, all at the same time. :;''imagestyle''<sup>β </sup> ::CSS style/s to apply to the ''image'' parameter. Does not get applied to the image<sub>n</sub> parameters. :;''imageleftstyle''<sup>β </sup> ::CSS style/s to apply to the ''imageleft'' parameter. Does not get applied to the imageleft<sub>n</sub> parameters. :; ''groupstyle''<sup>β </sup> :: CSS style/s to apply to all group heading parameters. Visit [http://meyerweb.com/eric/tools/color-blend/ this website] to get a lighter color similar to the title background color. Example: :::<code>groupstyle = background:lightgreen;</code> :; ''group<sub>n</sub>''style<sup>β </sup> :: CSS style/s to apply to a specific group heading; overrides any CSS styles set in ''groupstyle''. :; ''liststyle''<sup>β </sup> :: CSS style/s to apply to all list content parameters. :; ''list<sub>n</sub>''style<sup>β </sup> :: CSS style/s to apply to specific list content parameters; overrides any CSS styles set in ''liststyle''. :; ''listpadding''<sup>β </sup> :: Padding to have in each list cell; defaults to 0.25em on the left/right and 0em on the top/bottom. ===Microformat parameters=== :; ''bodyclass''<sup>β </sup> :: This parameter is inserted into the "class" attribute for the infobox as a whole. :; ''titleclass''<sup>β </sup> :: This parameter is inserted into the "class" attribute for the infobox's title caption. :See [[Wikipedia:WikiProject Microformats]] for more information on adding microformat information to Wikipedia, and [[microformat]] for more information on microformats in general.
Summary:
Please note that all contributions to Fanra's EverQuest Wiki are considered to be released under the Creative Commons Attribution Share Alike (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Main Menu
Main page
Sections
Classes and Races
Spells, Songs, Disciplines, and AAs
Items
Zones
NPCs
Quests
Raids
Tradeskills
User Interface
Tips and Guides
EQ Links
Wiki
Recent changes
Advanced search
Random page
Help
Contact Fanra
Tools
What links here
Related changes
Upload file
Special pages
Page information