Template:Bubble: Difference between revisions
SimpleArrows (talk | contribs) mNo edit summary |
SimpleArrows (talk | contribs) mNo edit summary |
||
Line 7: | Line 7: | ||
{{{2}}} | {{{2}}} | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
< | <templatedata> | ||
{{ | { | ||
"params": { | |||
"1": { | |||
"label": "Type", | |||
"description": "Used to determine the bubble's style. Use \"explore\" for the title of a preset, \"link\" for the links section of the preset.", | |||
"example": "explore", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
type: | "explore", | ||
"explore", "link" | "link", | ||
"none" | |||
], | |||
"required": true | |||
}, | |||
"2": { | |||
An | "label": "Text", | ||
"description": "Text that shows to the right of the bubble's icon. Write a link as the text if the bubble's type is \"link\". Either write a link and/or description if the bubble's type is \"explore\".", | |||
"example": "[[Red Faction: Guerrilla Locations]]", | |||
The | "type": "string", | ||
</ | "required": true | ||
}, | |||
"3": { | |||
"label": "Icon", | |||
"description": "An icon shown to the left of the text. Omit if there is no icon.", | |||
"example": "Icon_RFG.png", | |||
"type": "wiki-file-name" | |||
}, | |||
"4": { | |||
"label": "Icon Link", | |||
"description": "The page that the icon redirects to. It should be the same page that is linked inside the bubble's text. Omit if there is no icon.", | |||
"example": "Red Faction: Guerrilla", | |||
"type": "wiki-page-name" | |||
} | |||
}, | |||
"description": "A bubble with icon and text for use in BubbleNav templates.", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3", | |||
"4" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
'''Usage:''' | '''Usage:''' | ||
<pre>{{Bubble| TYPE | TEXT | ICON | ICON_LINK }}</pre> | |||
<pre> | <pre> | ||
{{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}} | {{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}} | ||
{{Bubble|explore|[[Red Faction: Guerrilla Locations]]|Icon_RFG.png|Red Faction: Guerrilla Locations}} | {{Bubble|explore|[[Red Faction: Guerrilla Locations]]|Icon_RFG.png|Red Faction: Guerrilla Locations}} | ||
{{Bubble|link|[[Parker (Sector)|Parker]]|Icon_RFG.png|Parker (Sector)}} | {{Bubble|link|[[Parker (Sector)|Parker]]|Icon_RFG.png|Parker (Sector)}} | ||
</pre> | </pre> | ||
'''Output:''' | '''Output:''' | ||
{{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}} | {{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}} | ||
{{Bubble|explore|[[Red Faction: Guerrilla Locations]]|Icon_RFG.png|Red Faction: Guerrilla Locations}} | {{Bubble|explore|[[Red Faction: Guerrilla Locations]]|Icon_RFG.png|Red Faction: Guerrilla Locations}} | ||
{{Bubble|link|[[Parker (Sector)|Parker]]|Icon_RFG.png|Parker (Sector)}}</noinclude> | |||
{{Bubble|link|[[Parker (Sector)|Parker]]|Icon_RFG.png|Parker (Sector)}} | |||
</noinclude> |
Revision as of 09:40, 28 January 2024
A bubble with icon and text for use in BubbleNav templates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | 1 | Used to determine the bubble's style. Use "explore" for the title of a preset, "link" for the links section of the preset.
| String | required |
Text | 2 | Text that shows to the right of the bubble's icon. Write a link as the text if the bubble's type is "link". Either write a link and/or description if the bubble's type is "explore".
| String | required |
Icon | 3 | An icon shown to the left of the text. Omit if there is no icon.
| File | optional |
Icon Link | 4 | The page that the icon redirects to. It should be the same page that is linked inside the bubble's text. Omit if there is no icon.
| Page name | optional |
Usage:
{{Bubble| TYPE | TEXT | ICON | ICON_LINK }}
{{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}} {{Bubble|explore|[[Red Faction: Guerrilla Locations]]|Icon_RFG.png|Red Faction: Guerrilla Locations}} {{Bubble|link|[[Parker (Sector)|Parker]]|Icon_RFG.png|Parker (Sector)}}
Output: