Template:Icon
The UESPWiki – Your source for The Elder Scrolls since 1995
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
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
|
|
|
Examples
{{Icon|st|Jar|al=middle}}
{{subst:Icon|st|Jar|al=middle}}
if in Online space (as [[File:ON-icon-stolen-Jar.png|48px|middle]]
)