Template:Navbox: Difference between revisions

From Inkipedia, the Splatoon wiki
(Added a category.)
m (Oopsie (moved category inside the noinclude tag))
Line 10: Line 10:
     |{{ColorScheme|{{{colorscheme|Generic}}}|contentBackground}}
     |{{ColorScheme|{{{colorscheme|Generic}}}|contentBackground}}
}}; border-radius: 18px; padding: 4px 4px 0px 4px;"></includeonly>
}}; border-radius: 18px; padding: 4px 4px 0px 4px;"></includeonly>
<noinclude>{{documentation}}</noinclude>
<noinclude>{{documentation}}[[Category:Navigation templates]]</noinclude>
 
[[Category:Navigation templates]]

Revision as of 22:55, 23 December 2023



Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Navbox/doc to edit this documentation. (How does this work?)

Opens an expandable navigation box. The resulting DOM construct must be terminated with the following wiki markup:

</div>
|}

Arguments

title Unnamed The text to display at the top of the navbox, even when collapsed.
colorscheme Optional The color scheme of the navbox. Defaults to Generic.
color Optional Deprecated; use colorscheme instead. An RGB triplet to use as the base color for formatting. If left blank, the color scheme specified is used.
style Optional A list of CSS rules to apply to the top-level container.

Example

Markup

{{Navbox
|colorscheme = Splatoon 2
|title = S2 Demonstration
}}
{{NavboxGroup
|colorscheme = Splatoon 2
|style = width: 150px;
|Group
}}
|Content
|}
</div>
|}
{{Navbox
|colorscheme = Splatoon 3
|title = S3 Demonstration
}}
{{NavboxGroup
|colorscheme = Splatoon 3
|style = width: 150px;
|Group
}}
|Content
|}
</div>
|}

Output