Template:Icon/doc: Difference between revisions
Jump to navigation
Jump to search
Added three more items |
No edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
This template provides access to simple icons for various common in-game terms. | This template provides access to simple icons for various common in-game terms. When adding new icons, please be sure to edit this [[Template:Icon/doc|documentation]] to include the new icons. | ||
==Usage== | ==Usage== | ||
Syntax: <code><nowiki>{{Icon|identifier|width}}</nowiki></code> or <code><nowiki>{{Icon|identifier}}</nowiki></code>. | Syntax: <code><nowiki>{{Icon|identifier|width}}</nowiki></code> or <code><nowiki>{{Icon|identifier}}</nowiki></code>. If width is left unset, icon size should default to 20px. | ||
For example, adding <code><nowiki>{{Icon|ammo}}</nowiki></code> to the page source will add {{Icon|ammo}} to the page, and adding <code><nowiki>{{Icon|ammo|w=50px}}</nowiki></code> will add {{Icon|ammo|w=50px}}. | For example, adding <code><nowiki>{{Icon|ammo}}</nowiki></code> to the page source will add {{Icon|ammo}} to the page, and adding <code><nowiki>{{Icon|ammo|w=50px}}</nowiki></code> will add {{Icon|ammo|w=50px}}. | ||
Add <code>m</code> as second argument to display a background (<code><nowiki>{{Icon|identifier|m}}</nowiki></code>). | |||
Add <code>pnc</code> as third argument to link to the [[PNC Items]] article (<code><nowiki>{{Icon|identifier||pnc}}</nowiki></code>). | |||
==Available Icons== | ==Available Icons== |
Revision as of 16:32, 25 May 2023
![]() | This is a documentation subpage for Template:Icon. It contains usage information, categories and other content that is not part of the original template page. |
This template provides access to simple icons for various common in-game terms. When adding new icons, please be sure to edit this documentation to include the new icons.
Usage
Syntax: {{Icon|identifier|width}}
or {{Icon|identifier}}
. If width is left unset, icon size should default to 20px.
For example, adding {{Icon|ammo}}
to the page source will add to the page, and adding
{{Icon|ammo|w=50px}}
will add .
Add m
as second argument to display a background ({{Icon|identifier|m}}
).
Add pnc
as third argument to link to the PNC Items article ({{Icon|identifier||pnc}}
).