Template:BubbleNav: Difference between revisions

From Red Faction Wiki
(Created page with "{| class="bubble-table" |{{{1}}} |- |class="bubble-linkrow"|{{{2}}} |}")
 
No edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="bubble-table"
<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}}
|class="bubble-linkrow"|{{{2}}}
</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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Preset1

The preset that the navigation will use. This parameter grabs the presets from the Template:BubbleNav/data page.

Example
RFGCharacters
Stringrequired
No Divider2

Sets whether the template's bottom divider is disabled. Use "yes" to disable the divider, "no" to keep the divider enabled.

Suggested values
yes no
Default
no
Example
yes
Stringoptional
Collapsed3

Sets whether the template is collapsed by default. Use "yes" to set it to collapsed, "no" to open by default.

Suggested values
yes no
Default
no
Example
yes
Stringoptional
{{BubbleNav|PRESET}}

Usage:

{{BubbleNav|RFGCharacters|no|no}}

Output: