Template:Navbox/sub: Difference between revisions

From Destinypedia, the Destiny wiki

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{| class="navbox-sub" style="width:100%;margin:-0.1em 0 0 -0.25em"
<includeonly>{| class="navbox-sub" style="width:100%;margin:-0.1em 0 0 -0.25em !important"
{{#forargs:list|key|value|{{#ifeq:{{#var:key}}|1||<nowiki/>
{{#forargs:list|key|value|{{#ifeq:{{#var:key}}|1||<nowiki/>
{{!}}-
{{!}}-
Line 7: Line 7:
{{!}} class="navbox-group" style="width:{{{width|15%}}};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|15%}}};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}}
}}
}}
|}</includeonly><noinclude>[[Category:Navigation 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]].
 
=== Customization ===
* '''width''' - Width of the group cell(s). Default: <code>15%</code>
* '''bg''' - Background color of the group cell(s). Default: <code>none</code>
* '''color''' - Text color of the group cell(s). Default: <code>#000</code>
 
[[Category:Navigation templates|*]]</noinclude>

Revision as of 18:40, May 17, 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.

Customization

  • width - Width of the group cell(s). Default: 15%
  • bg - Background color of the group cell(s). Default: none
  • color - Text color of the group cell(s). Default: #000