Template:Navbox/sub: Difference between revisions

From Halopedia, the Halo wiki

m (adding sample text for copy/pasting the template)
No edit summary
Line 5: Line 5:
}}
}}
{{!}}-
{{!}}-
{{!}} class="navbox-group" style="width:{{{width|auto}}};background:{{{bg|none}}};color:{{{color|#000}}};text-align:center;font-weight:bold;padding:0.2em 0.25em 0" {{!}} {{{group{{#var:key}}|}}} {{!}}{{!}} class="navbox-list" style="padding:0.2em 0.25em 0" {{!}} {{#var:value}}
{{!}} class="navbox-group" style="width:{{{width|auto}}};background:{{{bg|none}}};color:{{{color|#000}}};text-align:center;font-weight:bold;border-radius:0;padding:0.2em 0.25em 0" {{!}} {{{group{{#var:key}}|}}} {{!}}{{!}} class="navbox-list" style="border-radius:0;padding:0.2em 0.25em 0" {{!}} {{#var:value}}
}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>

Revision as of 09:52, September 21, 2022

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