User:Donni Iris/Sandbox/Template Navbox/doc: Difference between revisions
Jump to navigation
Jump to search
Donni Iris (talk | contribs) wholesale yoink from mirheze |
Donni Iris (talk | contribs) No edit summary |
||
| Line 4: | Line 4: | ||
{{Navbox suite}} | {{Navbox suite}} | ||
== Usage == | == Usage == | ||
<pre>{{Navbox | <pre>{{User:Donni Iris/Sandbox/Template Navbox | ||
| name = {{PAGENAME}} <!-- This has to be the name of the template --> | | name = {{PAGENAME}} <!-- This has to be the name of the template --> | ||
| Line 32: | Line 32: | ||
}}</pre> | }}</pre> | ||
{{Navbox | {{User:Donni Iris/Sandbox/Template Navbox | ||
| name = {{PAGENAME}} | | name = {{PAGENAME}} | ||
Revision as of 14:00, 28 April 2026
| This is a template documentation subpage for User:Donni Iris/Sandbox/Template Navbox. It contains usage information, categories, and other content that is not part of the original user template page. |
Template:Dependencies Template:Uses TemplateStyles Template:Navbox suite
Usage
{{User:Donni Iris/Sandbox/Template Navbox
| name = {{PAGENAME}} <!-- This has to be the name of the template -->
| title = TITLE
| titleclass = wraplinks
| listclass = hlist
| state = autocollapse
| aboveclass = hlist
| above = Example of Navbox
| group1 = A
| list1 =
• [[1]]
| group2 = B
| list2 =
• [[2]]
| group3 = C
| list3 =
• [[3]]
<!-- ... -->
| below = [[4]]
}}
<templatestyles src="User:Donni Iris/Sandbox/Navbox/styles.css" /><templatestyles src="User:Donni Iris/Sandbox/Hlist/styles.css"/>
| |||||||||||||||||
The basic and most common parameters are as follows (see below for the full list):
name– the name (Wikipedia location) of the template.title– text in the title bar, such as: [[Navigation stuff]].listclass– a CSS class for the list cells, usuallyhlistfor horizontal lists. Alternatively, use bodyclass for the whole box.state– controls when a navbox is expanded or collapsed.titlestyle– a CSS style for the title-bar, such as:background: gray;groupstyle– a CSS style for the group-cells, such as:background: #eee;above– text to appear above the group/list section (could be a list of overall wikilinks).image– an optional right-side image, coded as the whole image, such as:[[File:XX.jpg|80px|alt=Alternate text]]imageleft– an optional left-side image (code the same as the "image" parameter).groupn– the left-side text before list-n (if group-n omitted, list-n extends to the left edge of the box, and defaults totext-align:centerstyling).listn– text listing wikilinks using a wikilist format.below– optional text to appear below the group/list section.