Open main menu

UESPWiki β

Template:Icon

Due to the sensitive nature of this template or the fact that it is used on a large number of pages, it has been semi-protected to prevent site-wide damage by vandal bots.
Editors: In order to minimize the impact on our servers, please use sandboxes to make and test changes to widely used templates before deployment.
For more information, please see this article's talk page.

Summary

This template allows you to simply place an icon on a page using only the item name and an abbreviation indicating its type. The namespace will automatically be determined based on the page the icon was used on.

The template can be substituted (using {{subst:Icon}}). This produces the code directly rather than calling the template itself and is particularly important when a template is used repeatedly on the same page or inside another template.

Parameters

Icon
Parameter Scope Description
1 required An abbreviation indicating the type of icon. See below for a listing of abbreviations used. Alternatively, you can just put the whole word in, useful for cases where there is no abbreviation.
2 required The name of the item as it appears in the icon's file name.
3 or size optional The horizontal size in pixels of the icon. (Default: 48)
4 or ext optional The file extension to use. (Default: png)
al optional Alignment of the image or other extended formatting. See Wikipedia's image help for details.
alt optional Text alternative for screen reader. See Wikipedia's accessibility help for details.
ns_base optional Optional namespace to use for icons outside of their native namespace. Useful for using Morrowind, Oblivion, or Skyrim icons on their expansions' pages, for example, or using icons in Lore space. For sandboxes, you'll usually want to use the {{Sandbox Space}} template instead.

Icon Types

Abbr Full
a armor
ach achievement
b book
c clothing
d dish
e effect
f food
fi fish
furn furnishing
g glyph
i ingredient
Abbr Full
j jewelry
m misc
o outfit
pm processed material
poi poison
pot potion
q quest
r runestone
re reagent
res resource
rm raw material
Abbr Full
sc scroll
sk skill
sm shadowmark
so solvent
sp spell
st stolen
sty style material
sy synergy
t tool
tr trait material
w weapon


Examples

{{Icon|st|Jar|al=middle}}

  if in Online space

{{subst:Icon|st|Jar|al=middle}}

  if in Online space (as [[File:ON-icon-stolen-Jar.png|48px|middle]])