Summary[edit]
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[edit]
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[edit]
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 |
pm |
processed material |
poi |
poison |
pot |
potion |
q |
quest |
r |
runestone |
re |
reagent |
res |
resource |
rm |
raw material |
sc |
scroll |
|
Abbr |
Full |
sk |
skill |
sm |
shadowmark |
so |
solvent |
sp |
spell |
st |
stolen |
sty |
style material |
sy |
synergy |
t |
tool |
tr |
trait material |
w |
weapon |
|
Examples[edit]
{{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]]
)