|
|
| Line 1: |
Line 1: |
| | <!-- Template:Navbox subgroup --> |
|
| |
|
| {{Navbox subgroup | | {{#if:{{{title|}}}| |
| | name = Example Navbox Subgroup | | {| {{{basestyle|}}} |
| | title = [[Example Navbox Subgroup]] | | |- |
| | listclass = hlist | | ! colspan="2" style="background-color:#e0e0e0; text-align:center; font-weight:bold;" | {{{title}}} |
| | state = {{{state|autocollapse}}} | | |- |
| | bodyclass = | | {{#if:{{{imageleft|}}}|{{!}} style="text-align:center; width:5%;" | {{{imageleft}}}|}} |
| | groupstyle = | | {{!}} style="text-align:center;" | {{{above|}}} |
| | basestyle = | | {{#if:{{{image|}}}|{{!}} style="text-align:center; width:5%;" | {{{image}}}|}} |
| | above = [[Main article]] | | |- |
| | image = [[File:Example.png|50px]] | | | colspan="2" style="background-color:#ffffff;" | |
| | imageleft = [[File:ExampleLeft.png|50px]]
| | {| class="hlist {{{listclass|}}}" style="width:100%;" |
| | below = [[See also]] | | |- |
| | group1 = [[Group 1]] | | {{#if:{{{group1|}}}|{{!}} style="{{{groupstyle|}}}" | '''{{{group1}}}''' |}} |
| | list1 = | | {{!}} style="{{{groupstyle|}}}" | {{{list1|}}} |
| * [[Item 1A]]
| | |- |
| * [[Item 1B]]
| | {{#if:{{{group2|}}}|{{!}} style="{{{groupstyle|}}}" | '''{{{group2}}}''' |}} |
| * [[Item 1C]]
| | {{!}} style="{{{groupstyle|}}}" | {{{list2|}}} |
| | group2 = [[Group 2]] | | |- |
| | list2 = | | {{#if:{{{group3|}}}|{{!}} style="{{{groupstyle|}}}" | '''{{{group3}}}''' |}} |
| * [[Item 2A]]
| | {{!}} style="{{{groupstyle|}}}" | {{{list3|}}} |
| * [[Item 2B]]
| | |} |
| * [[Item 2C]]
| | |- |
| | group3 = [[Group 3]] | | | colspan="2" style="background-color:#e0e0e0; text-align:center;" | {{{below|}}} |
| | list3 = | | |} |
| * [[Item 3A]]
| |
| * [[Item 3B]]
| |
| * [[Item 3C]]
| |
| }} | | }} |
| ```
| | <noinclude> |
| | | [[Category:Infobox templates]] |
| This template is a basic structure for a navbox subgroup, which is used to create navigation boxes that can be included at the bottom of related WikiMD articles. The template includes several customizable parameters:
| | [[Category:Navigational templates]] |
| | | [[Category:Template documentation]] |
| - **name**: The name of the navbox subgroup.
| | </noinclude> |
| - **title**: The title displayed at the top of the navbox.
| |
| - **listclass**: CSS class for styling the list.
| |
| - **state**: The default state of the navbox (e.g., collapsed, expanded).
| |
| - **bodyclass**: Additional CSS classes for the body of the navbox.
| |
| - **groupstyle**: CSS styles for the group headers.
| |
| - **basestyle**: Base CSS styles for the entire navbox.
| |
| - **above**: Content displayed above the main list, often linking to a main article.
| |
| - **image**: An image displayed on the right side of the navbox.
| |
| - **imageleft**: An image displayed on the left side of the navbox.
| |
| - **below**: Content displayed below the main list, often linking to related articles.
| |
| - **group1, group2, group3, etc.**: Headers for different groups of links.
| |
| - **list1, list2, list3, etc.**: Lists of links under each group header.
| |
| | |
| This template can be expanded with additional groups and lists as needed to accommodate more links and categories.
| |