Jump to content

Template:Navbox/doc: Difference between revisions

m
→‎Parameter list: Changed code on list sub n to eliminate invalid self-closed HTML tag
m (→‎Parameter list: Removed two self-closed HTML tags)
m (→‎Parameter list: Changed code on list sub n to eliminate invalid self-closed HTML tag)
Line 53: Line 53:
:<code>titleclass -</code> applies an HTML <code>class</code> attribute to the title bar.
:<code>titleclass -</code> applies an HTML <code>class</code> attribute to the title bar.
:<code>state - autocollapse, uncollapsed, collapsed</code>: the status of box expansion, where "autocollapse" hides stacked navboxes automatically.
:<code>state - autocollapse, uncollapsed, collapsed</code>: the status of box expansion, where "autocollapse" hides stacked navboxes automatically.
:<code>titlestyle - </code>a CSS style for the title-bar, such as: <code>background:gray;</code>
:<code>titlestyle - </code>a CSS style for the title-bar, such as: <code>background:gray;</code>
:<code>groupstyle - </code>a CSS style for the group-cells, such as: <code>background:#eee;</code>
:<code>groupstyle - </code>a CSS style for the group-cells, such as: <code>background:#eee;</code>
:<code>image - </code>an optional right-side image (coded as the whole image tag: <nowiki>[[Image:XX.jpg|90px]]</nowiki> ).
:<code>image - </code>an optional right-side image (coded as the whole image tag: <nowiki>[[Image:XX.jpg|90px]]</nowiki> ).
:<code>imageleft - </code>an optional left-side image (code the same was as the "image" parameter).
:<code>imageleft - </code>an optional left-side image (code the same was as the "image" parameter).
:<code>above - </code>text to appear above the group/list section (could be a list of overall wikilinks).
:<code>above - </code>text to appear above the group/list section (could be a list of overall wikilinks).
:<code>group<sub>n</sub> - </code>the left-side text before list-n (if group-n omitted, list-n starts at left of box).
:<code>group<sub>n</sub> - </code>the left-side text before list-n (if group-n omitted, list-n starts at left of box).
:<code>list<sub>n</sub> - </code>text listing wikilinks, often separated by middot templates, such as: [<font/>[A]]<code>{<font/>{·}}</code> [<font/>[B]]
:<code>list<sub>n</sub> - </code>text listing wikilinks, often separated by middot templates, such as: <font>[</font>[A]] <code><font>{</font>{·}}</code> <font>[</font>[B]]
:<code>below - </code>optional text to appear below the group/list section.
:<code>below - </code>optional text to appear below the group/list section.