Template:NavboxGroup: Difference between revisions

From Inkipedia, the Splatoon wiki
(add colorscheme argument for easier navbox creation)
m (move documentation to doc subpage)
Line 7: Line 7:
     |rgb({{Trim|{{{color}}}}})
     |rgb({{Trim|{{{color}}}}})
     |{{ColorScheme|{{{colorscheme|Generic}}}}}
     |{{ColorScheme|{{{colorscheme|Generic}}}}}
}}; border-radius: 11px 0px 0px 11px; text-align: center; font-weight: bold; color: {{ColorScheme|{{{colorscheme|}}}|textColor}}; {{{style|}}}" rowspan="100"|{{Trim|{{{title|{{{1}}}}}}}}</includeonly><noinclude>
}}; border-radius: 11px 0px 0px 11px; text-align: center; font-weight: bold; color: {{ColorScheme|{{{colorscheme|}}}|textColor}}; {{{style|}}}" rowspan="100"|{{Trim|{{{title|{{{1}}}}}}}}</includeonly>
__NOTOC__
<noinclude>{{documentation}}</noinclude>
Displays a group header in a navbox. This produces an unterminated wiki table.
 
== Arguments ==
{| class="wikitable" style="vertical-align: top;"
|<code>title</code>
|Unnamed
|The group name to display in the row header.
|-
|<code>colorscheme</code>
|Optional
|The color scheme of the row. Should be the same as the parent navbox. Defaults to Generic.
|-
|<code>color</code>
|Optional
|'''Deprecated; use <code>colorscheme</code> instead.''' An RGB triplet to use as the base color for formatting. If left blank, the color scheme specified is used.
|-
|<code>style</code>
|Optional
|A list of CSS rules to apply to the header cell.
|}
 
== Example ==
=== Normal usage ===
<pre><nowiki>{{NavboxGroup
|colorscheme = NIWA
|style = width: 150px;
|Group
}}
|Contents
|}</nowiki></pre>
 
{{NavboxGroup
|colorscheme = NIWA
|style = width: 150px;
|Group
}}
|Contents
|}
 
=== Using <code>color</code> ===
<pre><nowiki>{{NavboxGroup
|color = {{SiteColor|Splatoon 3}}
|style = width: 150px;
|Group
}}
|Contents
|}</nowiki></pre>
 
{{NavboxGroup
|color = {{SiteColor|Splatoon 3}}
|style = width: 150px;
|Group
}}
|Contents
|}
</noinclude>

Revision as of 01:46, 17 November 2022



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

Displays a group header in a navbox. This produces an unterminated wiki table.

Arguments

title Unnamed The group name to display in the row header.
colorscheme Optional The color scheme of the row. Should be the same as the parent 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 header cell.

Example

Normal usage

{{NavboxGroup
|colorscheme = NIWA
|style = width: 150px;
|Group
}}
|Contents
|}
Group Contents

Using color

{{NavboxGroup
|color = {{SiteColor|Splatoon 3}}
|style = width: 150px;
|Group
}}
|Contents
|}
Group Contents