Template:Navbox/doc: Difference between revisions

From Inkipedia, the Splatoon wiki
(Move template documentation from {{Navbox}})
 
m (added s3 demonstration to display multiple navboxes in documentation)
Line 29: Line 29:
{{Navbox
{{Navbox
|colorscheme = Splatoon 2
|colorscheme = Splatoon 2
|title = Demonstration
|title = S2 Demonstration
}}
}}
{{NavboxGroup
{{NavboxGroup
|colorscheme = Splatoon 2
|colorscheme = Splatoon 2
|style = width: 150px;
|Group
}}
|Content
|}
</div>
|}
{{Navbox
|colorscheme = Splatoon 3
|title = S3 Demonstration
}}
{{NavboxGroup
|colorscheme = Splatoon 3
|style = width: 150px;
|style = width: 150px;
|Group
|Group
Line 45: Line 58:
{{Navbox
{{Navbox
|colorscheme = Splatoon 2
|colorscheme = Splatoon 2
|title = Demonstration
|title = S2 Demonstration
}}
}}
{{NavboxGroup
{{NavboxGroup
|colorscheme = Splatoon 2
|colorscheme = Splatoon 2
|style = width: 150px;
|Group
}}
|Content
|}
</div>
|}
{{Navbox
|colorscheme = Splatoon 3
|title = S3 Demonstration
}}
{{NavboxGroup
|colorscheme = Splatoon 3
|style = width: 150px;
|style = width: 150px;
|Group
|Group

Revision as of 21:43, 29 December 2023

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