Template:BubbleNav: Difference between revisions
SimpleArrows (talk | contribs) (Created page with "{| class="bubble-table" |{{{1}}} |- |class="bubble-linkrow"|{{{2}}} |}") |
SimpleArrows (talk | contribs) No edit summary |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class=" | <includeonly><div class="bubble-container" id="{{#switch: {{{2}}}|yes = bubble-nodivider|no =|}}"> | ||
|{{{1}}} | <li class="mw-collapsible {{#switch: {{{3}}}|yes = mw-collapsed|no =}}" style="list-style: none;">{{BubbleNav/data|{{{1|}}}|data=title}} | ||
| | <ul class="mw-collapsible-content">{{BubbleNav/data|{{{1|}}}|data=links}} | ||
</ul> | |||
|} | </li> | ||
</div> | |||
</includeonly><noinclude> | |||
:To view, add and edit navigation presets, see [[Template:BubbleNav/data]]. | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Preset", | |||
"description": "The preset that the navigation will use. This parameter grabs the presets from the Template:BubbleNav/data page.", | |||
"example": "RFGCharacters", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "No Divider", | |||
"description": "Sets whether the template's bottom divider is disabled. Use \"yes\" to disable the divider, \"no\" to keep the divider enabled.", | |||
"example": "yes", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"yes", | |||
"no" | |||
], | |||
"default": "no" | |||
}, | |||
"3": { | |||
"label": "Collapsed", | |||
"description": "Sets whether the template is collapsed by default. Use \"yes\" to set it to collapsed, \"no\" to open by default.", | |||
"example": "yes", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"yes", | |||
"no" | |||
], | |||
"default": "no" | |||
} | |||
}, | |||
"description": "Place at the top of pages to create a navigation bar for quick access to other pages.", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3" | |||
], | |||
"format": "inline", | |||
"maps": { | |||
"Test": {} | |||
} | |||
} | |||
</templatedata> | |||
<pre>{{BubbleNav|PRESET}}</pre> | |||
'''Usage:''' | |||
<pre>{{BubbleNav|RFGCharacters|no|no}}</pre> | |||
'''Output:''' | |||
{{BubbleNav|RFGCharacters|no|no}} | |||
[[Category:Core Templates]] | |||
</noinclude> |
Latest revision as of 03:39, 2 March 2024
- To view, add and edit navigation presets, see Template:BubbleNav/data.
Place at the top of pages to create a navigation bar for quick access to other pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Preset | 1 | The preset that the navigation will use. This parameter grabs the presets from the Template:BubbleNav/data page.
| String | required |
No Divider | 2 | Sets whether the template's bottom divider is disabled. Use "yes" to disable the divider, "no" to keep the divider enabled.
| String | optional |
Collapsed | 3 | Sets whether the template is collapsed by default. Use "yes" to set it to collapsed, "no" to open by default.
| String | optional |
{{BubbleNav|PRESET}}
Usage:
{{BubbleNav|RFGCharacters|no|no}}
Output:
EXPLORE
EXPLORE
EXPLORE
EXPLORE
EXPLORE
EXPLORE
EXPLORE
EXPLORE
EXPLORE
EXPLORE