Template:Navbox/sub: Difference between revisions
From Halopedia, the Halo wiki
m (Protected "Template:Navbox/sub" ([Edit=Allow only Halopedia staff] (indefinite) [Move=Allow only Halopedia staff] (indefinite))) |
No edit summary |
||
(14 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| class="navbox-sub" style="margin:- | <includeonly>{| class="navbox-sub" style="width:100%;margin:-1px 0 0 -3px !important" | ||
{{#forargs: | {{#forargs:list|key|value|{{#ifeq:{{#var:key}}|1||<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}} | {{!}} | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
{{!}} class="navbox-group" style=" | {{!}} class="navbox-group {{#if:{{{bg|}}}{{{color|}}}||default}}" style="width:{{{width|auto}}} !important;background:{{{bg|none}}};color:{{{color|#000}}};text-align:center;font-weight:bold;border:0;border-radius:0;padding:1px 3px 0" {{!}} {{{group{{#var:key}}|}}} {{!}}{{!}} class="navbox-list" style="border-radius:0;padding:1px 3px 0" {{!}} {{#var:value}} | ||
}} | }} | ||
|}</includeonly><noinclude>[[Category:Formatting templates]]</noinclude> | |}</includeonly><noinclude> | ||
This templates allows for the use of sub-sections within navbox sections. | |||
== Usage == | |||
=== Content === | |||
Use '''groupX''' and '''listX''' parameters, where '''X''' represents numbers. Similar to [[Template:Navbox]]. | |||
<pre> | |||
{{Navbox/sub | |||
|group1= | |||
|list1= | |||
|group2= | |||
|list2= | |||
|group3= | |||
|list3= | |||
}}</pre> | |||
=== Customization === | |||
* '''width''' - Width of the group cell(s). Default: <code>auto</code> | |||
* '''bg''' - Background of the group cell(s). Default: <code>none</code> | |||
* '''color''' - Text color of the group cell(s). Default: <code>#000</code> | |||
[[Category:Formatting templates]]</noinclude> |
Latest revision as of 12:59, August 27, 2023
This templates allows for the use of sub-sections within navbox sections.
Usage
Content
Use groupX and listX parameters, where X represents numbers. Similar to Template:Navbox.
{{Navbox/sub |group1= |list1= |group2= |list2= |group3= |list3= }}
Customization
- width - Width of the group cell(s). Default:
auto
- bg - Background of the group cell(s). Default:
none
- color - Text color of the group cell(s). Default:
#000