Template:Bubble: Difference between revisions

From Red Faction Wiki
mNo edit summary
mNo edit summary
Line 10: Line 10:
{{Bubble|}}
{{Bubble|}}
</pre>
</pre>
 
This template is intended to be used with [[Template:BubbleNav]]. Visit the page for more information on the bubble types.
'''Guide to each parameter:'''
'''Guide to each parameter:'''  
<pre>
<pre>
{{Bubble| TYPE | TEXT | ICON | ICON LINK }}
{{Bubble| TYPE | TEXT | ICON | ICON LINK }}

Revision as of 01:29, 24 January 2024

{{Bubble|}}

This template is intended to be used with Template:BubbleNav. Visit the page for more information on the bubble types. Guide to each parameter:

{{Bubble| TYPE | TEXT | ICON | ICON LINK }}

Each parameter is separated by the vertical bar/pipe symbol "|", there are no parameter names used in this template. The template will only work correctly if the order of parameters is also correct. Make sure to read the Usage section for more examples.

type:
"explore", "link" or "none".

text:
The link or text that's going to show in the box to right of the icon.

icon:
An image shown to the left of the text. Only write the image name with its extension and no other formatting, e.g. "Icon_RFG.png".

icon link:
The link that the icon will redirect to. Make sure it's the SAME link you use inside "text" and write it without any brackets. For example, if the text was "[[Red Faction: Guerrilla Vehicles|Vehicles]]" or "[[Mount Vogel]]", the icon link would be "Red Faction: Guerrilla Vehicles" and "Mount Vogel" respectively.

Usage:

{{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}}
{{Bubble|none|Locations of [[Red Faction: Guerrilla]]|Icon_RFGSafehouse.png|Red Faction: Guerrilla}}
{{Bubble|link|[[Parker (Sector)|Parker]]|Icon_RFG.png|Parker (Sector)}}

Output:

  • "explore" bubble:
  • "none" bubble:
EXPLORE
Icon RFGSafehouse.png

Locations of Red Faction: Guerrilla

  • "link" bubble: