|
|
(9 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| <includeonly><div class="bubble-container" id="{{#if: {{{nodivider|}}} | bubble-nodivider}}"> | | <includeonly><div class="bubble-container" id="{{#switch: {{{2}}}|yes = bubble-nodivider|no =|}}"> |
| {| class="bubble-table" | | <li class="mw-collapsible {{#switch: {{{3}}}|yes = mw-collapsed|no =}}" style="list-style: none;">{{BubbleNav/data|{{{1|}}}|data=title}} |
| |{{{title}}} | | <ul class="mw-collapsible-content">{{BubbleNav/data|{{{1|}}}|data=links}} |
| |- | | </ul> |
| |class="bubble-linkrow"|{{{links}}}
| | </li> |
| |} | | </div> |
| </div></includeonly><noinclude> | | </includeonly><noinclude> |
| <pre> | | :To view, add and edit navigation presets, see [[Template:BubbleNav/data]]. |
| {{BubbleNav
| | <templatedata> |
| |nodivider =
| | { |
| |title =
| | "params": { |
| |links =
| | "1": { |
| }}
| | "label": "Preset", |
| </pre> | | "description": "The preset that the navigation will use. This parameter grabs the presets from the Template:BubbleNav/data page.", |
| | | "example": "RFGCharacters", |
| '''Guide to each parameter:''' View [[Template:Bubble]] for more information on how to use.
| | "type": "string", |
| <pre> | | "required": true |
| {{BubbleNav | | }, |
| |nodivider = Use "yes" to denote that there should be no divider on the bottom of this {{BubbleNav}}. Use this parameter on any {{BubbleNav}}'s that are above another. Make sure only the bottom {{BubbleNav}} has the divider by leaving the parameter blank or omitting it.
| | "2": { |
| | | "label": "No Divider", |
| |title = A bubble template is used here. ONLY use the "explore" type. -
| | "description": "Sets whether the template's bottom divider is disabled. Use \"yes\" to disable the divider, \"no\" to keep the divider enabled.", |
| | | "example": "yes", |
| "explore" type: | | "type": "string", |
| Used on main game pages.
| | "suggestedvalues": [ |
| * If the navigation is intended for use on a main game page: only put the game's link as the text.
| | "yes", |
| * If the navigation is intended for use on subpages: For example, if they are pages part of a larger collection, such as RF:G's locations. The text would link to the "Red Faction: Guerrilla Locations" page. Make sure to read any pages with this template for more context such as the ones just mentioned.
| | "no" |
| | | ], |
| "none" type: | | "default": "no" |
| This type is not intended to be used for the title, but is there if needed. This type removes the "Explore" label and only contains the text and icon.
| | }, |
| | | "3": { |
| |links = One or more bubble templates can be used here. ONLY use the "link" type.
| | "label": "Collapsed", |
| }} | | "description": "Sets whether the template is collapsed by default. Use \"yes\" to set it to collapsed, \"no\" to open by default.", |
| </pre> | | "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:''' | | '''Usage:''' |
| <pre> | | <pre>{{BubbleNav|RFGCharacters|no|no}}</pre> |
| {{BubbleNav | |
| |nodivider = yes | |
| |title = | |
| {{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}}
| |
| |links =
| |
| {{Bubble|link|[[RF:G Editing Main Page|Modding]]|Icon_RFG.png|RF:G Editing Main Page}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Campaign Guide|Campaign]]|Icon_RFGBadge1.png|Red Faction: Guerrilla Campaign Guide}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Multiplayer Guide|Multiplayer]]|Icon_RFGBadge2.png|Red Faction: Guerrilla Multiplayer Guide}}
| |
| {{Bubble|link|[[Wrecking Crew]]|Icon_RFGBadge3.png|Wrecking Crew}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Vehicles|Vehicles]]|Icon_RFGVehicle.png|Red Faction: Guerrilla Vehicles}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Locations|Locations]]|Icon_RFGSafehouse.png|Red Faction: Guerrilla Locations}}
| |
| }}
| |
| | |
| {{BubbleNav
| |
| |title =
| |
| {{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}}
| |
| |links =
| |
| {{Bubble|link|[[RF:G Editing Main Page|Modding]]|Icon_RFG.png|RF:G Editing Main Page}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Campaign Guide|Campaign]]|Icon_RFGBadge1.png|Red Faction: Guerrilla Campaign Guide}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Multiplayer Guide|Multiplayer]]|Icon_RFGBadge2.png|Red Faction: Guerrilla Multiplayer Guide}}
| |
| {{Bubble|link|[[Wrecking Crew]]|Icon_RFGBadge3.png|Wrecking Crew}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Vehicles|Vehicles]]|Icon_RFGVehicle.png|Red Faction: Guerrilla Vehicles}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Locations|Locations]]|Icon_RFGSafehouse.png|Red Faction: Guerrilla Locations}}
| |
| }} | |
| </pre> | |
| | |
| '''Output:''' | | '''Output:''' |
| {{BubbleNav | | {{BubbleNav|RFGCharacters|no|no}} |
| |nodivider = yes
| | [[Category:Core Templates]] |
| |title =
| |
| {{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}}
| |
| |links =
| |
| {{Bubble|link|[[RF:G Editing Main Page|Modding]]|Icon_RFG.png|RF:G Editing Main Page}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Campaign Guide|Campaign]]|Icon_RFGBadge1.png|Red Faction: Guerrilla Campaign Guide}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Multiplayer Guide|Multiplayer]]|Icon_RFGBadge2.png|Red Faction: Guerrilla Multiplayer Guide}}
| |
| {{Bubble|link|[[Wrecking Crew]]|Icon_RFGBadge3.png|Wrecking Crew}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Vehicles|Vehicles]]|Icon_RFGVehicle.png|Red Faction: Guerrilla Vehicles}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Locations|Locations]]|Icon_RFGSafehouse.png|Red Faction: Guerrilla Locations}}
| |
| }}
| |
| {{BubbleNav
| |
| |title = | |
| {{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}}
| |
| |links =
| |
| {{Bubble|link|[[RF:G Editing Main Page|Modding]]|Icon_RFG.png|RF:G Editing Main Page}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Campaign Guide|Campaign]]|Icon_RFGBadge1.png|Red Faction: Guerrilla Campaign Guide}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Multiplayer Guide|Multiplayer]]|Icon_RFGBadge2.png|Red Faction: Guerrilla Multiplayer Guide}}
| |
| {{Bubble|link|[[Wrecking Crew]]|Icon_RFGBadge3.png|Wrecking Crew}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Vehicles|Vehicles]]|Icon_RFGVehicle.png|Red Faction: Guerrilla Vehicles}}
| |
| {{Bubble|link|[[Red Faction: Guerrilla Locations|Locations]]|Icon_RFGSafehouse.png|Red Faction: Guerrilla Locations}}
| |
| }}
| |
| </noinclude> | | </noinclude> |