Template:IconEx/Doc: Difference between revisions
From HorizonXI Wiki
(changed default to no link (links are unlikely to be useful for these icons)) |
|||
| Line 7: | Line 7: | ||
'''Sub-Templates:''' | '''Sub-Templates:''' | ||
* {{Tl|{{#titleparts:{{PAGENAME}} | 1}}/Size}} | * {{Tl|{{#titleparts:{{PAGENAME}} | 1}}/Size}} | ||
'''See Also:''' | '''See Also:''' | ||
| Line 34: | Line 33: | ||
#* ''{width}'''''x'''''{height}'''''px''' — Resizes the image to fit within the given width and height in pixels. | #* ''{width}'''''x'''''{height}'''''px''' — Resizes the image to fit within the given width and height in pixels. | ||
# '''alt:''' Alternate text for the icon. If not provided, a default will be used.<br/>''The defaults are used in the table below. Hover on the images to see them.'' | # '''alt:''' Alternate text for the icon. If not provided, a default will be used.<br/>''The defaults are used in the table below. Hover on the images to see them.'' | ||
# '''link:''' Page to link the image to. If not provided, the image | # '''link:''' Page to link the image to. If not provided, the image won't link to anything. | ||
=== '''Icons''' === | === '''Icons''' === | ||
Latest revision as of 09:47, 2 September 2025
This is the documentation for {{IconEx}}. It is transcluded into the template page.
Introduction
Displays a selected icon and optionally makes it a link. No categories are output with this template.
Sub-Templates:
- {{IconEx/Size}}
See Also:
Usage
Syntax
{{IconEx|type|size|alt|link}}
Example
{{IconEx|fishing|icon||Category:Fishing}}
Output: File:Ffxi gld 01.gif
Parameters
- type: The type of icon to be displayed. See the table below.
- size: The size for the icon. Valid options:
- (blank), icon — Resizes the image to be 16px tall to fit within a text line.
This is the default value. - none — Leaves the image at its original size.
- {width}px — Resizes the image to fit within the given maximum width in pixels, without restricting its height.
- x{height}px — Resizes the image to fit within the given maximum height in pixels, without restricting its width.
- {width}x{height}px — Resizes the image to fit within the given width and height in pixels.
- (blank), icon — Resizes the image to be 16px tall to fit within a text line.
- alt: Alternate text for the icon. If not provided, a default will be used.
The defaults are used in the table below. Hover on the images to see them. - link: Page to link the image to. If not provided, the image won't link to anything.
Icons
Recognized Values for "type" Parameter
Generic
| Icon | Recognized Values |
|---|---|
| c, check | |
| exclaim | |
| info, information | |
| q, question, qmark | |
| x, eks | |
| 1st | |
| 2nd | |
| camera, photo | |
| video | |
| neutral | |
| oppose, no | |
| support, yes | |
| star |
Elements
| Icon | Recognized Values |
|---|---|
| dark | |
| dark2 | |
| earth | |
| earth2 | |
| fire | |
| fire2 | |
| ice | |
| ice2 | |
| light | |
| light2 | |
| lightning | |
| lightning2 | |
| water | |
| water2 | |
| wind | |
| wind2 |
Various
| Icon | Recognized Values |
|---|---|
| aug | |
| ex, exclusive | |
| rare | |
| temp, tmp | |
| escape | |
| tractor | |
| fellow | |
| ki, keyitem | |
| item | |
| nm | |
| blunt | |
| piercing | |
| slashing |
Zone-Related
| Icon | Recognized Values |
|---|---|
| harvest, harvesting | |
| chest | |
| casket | |
| coffer | |
| mining | |
| logging | |
| digging | |
| clamming | |
| excavation | |
| fishing | |
| chocobo |

