Template:Ranged


 * For a general overview of the icons used on the wiki, see the Icon Glossary.

This template gives the icon for a particular kind of Ranged Attack, followed by optional text.

The syntax is: The "Switch" can be one of the following: Any other switch parameter will result in being treated as the text parameter instead, in which case any further parameters are ignored, and the template will use the same icon and link as if the "General" switch parameter was used.
 * Bow (b, a, arrow, missile)
 * Magic (m, s, spell)
 * Rock (r, boulder)
 * Sling
 * General

The "Text" can be anything, and will always appear in bold white font, or simply in bold on the mobile wikia skin. Leaving the text empty will cause only the icon will appear.

Based on the selected switch, clicking on the resulting icon will redirect the user to the appropriate article:
 * Bow redirects to Ranged Missile Attack
 * Magic redirects to Ranged Magical Attack
 * Rock redirects to Ranged Boulder Attack
 * Sling redirects to Ranged Missile Attack
 * General redirects to Ranged Attack

Examples
This code:

Gives these results: