Template:Bubble: Difference between revisions

From Red Faction Wiki
mNo edit summary
mNo edit summary
Line 7: Line 7:
{{{2}}}
{{{2}}}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{BubbleNav
<pre>
|title  =
{{Bubble|}}
</pre>
 
'''Guide to each parameter:'''
<pre>
{{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.
</pre>
 
'''Usage:'''
<pre>
{{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|none|Locations of [[Red Faction: Guerrilla]]|Icon_RFGSafehouse.png|Red Faction: Guerrilla}}
|links  =
{{Bubble|link|[[Parker (Sector)|Parker]]|Icon_RFG.png|Parker (Sector)}}
{{Bubble|link|[[Parker (Sector)|Parker]]|Icon_RFG.png|Parker (Sector)}}
{{Bubble|link|[[Dust]]|Icon_RFG.png|Dust}}
</pre>
{{Bubble|link|[[The Badlands]]|Icon_RFG.png|The Badlands}}
{{Bubble|link|[[Oasis]]|Icon_RFG.png|Oasis}}
{{Bubble|link|[[Free Fire Zone]]|Icon_RFG.png|Free Fire Zone}}
{{Bubble|link|[[Eos (Sector)|Eos]]|Icon_RFG.png|Eos (Sector)}}
{{Bubble|link|[[Mount Vogel]]|Icon_RFG.png|Mount Vogel}}
}}


{{Bubble
'''Output:'''
|type        =
|text        = Locations of [[Red Faction: Guerrilla]]
|icon        = Icon_RFGSafehouse.png
|icon link    = Red Faction: Guerrilla
}}


<pre>
* "explore" bubble:
{{Bubble
{{Bubble|explore|[[Red Faction: Guerrilla]]|Icon_RFG.png|Red Faction: Guerrilla}}
|type        =
 
|text        =
* "none" bubble:
|icon        =
{{Bubble|none|Locations of [[Red Faction: Guerrilla]]|Icon_RFGSafehouse.png|Red Faction: Guerrilla}}
|icon link   =
 
}}
* "link" bubble:
</pre>
{{Bubble|link|[[Parker (Sector)|Parker]]|Icon_RFG.png|Parker (Sector)}}
</noinclude>
</noinclude>

Revision as of 01:22, 24 January 2024

{{Bubble|}}

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: