Template:IconEx/Doc: Difference between revisions

From HorizonXI Wiki
Line 49: Line 49:
! align="left" | Recognized Values
! align="left" | Recognized Values
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:check.gif|x16px|Check]] || c, check
| align="center" | [[File:Check.png|x16px|Check]] || c, check
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Exclamation.gif|x16px|Exclamation]] || exclaim
| align="center" | [[File:ExclamationIcon.png|x16px|Exclamation]] || exclaim
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Information.png|x16px|Information]] || info, information
| align="center" | [[File:InformationNeededIcon.png|x16px|Information]] || info, information
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:qmark.gif|x16px|Question]] || q, question, qmark
| align="center" | [[File:qmark.gif|x16px|Question]] || q, question, qmark
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:eks.gif|x16px|X]] || x, eks
| align="center" | [[File:Eks.png|x16px|X]] || x, eks
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Gold Medal.png|x16px|1st Place]] || 1st
| align="center" | [[File:Gold Medal.png|x16px|1st Place]] || 1st
Line 77: Line 77:
</div>
</div>
<div style="width:50%;float:right;">
<div style="width:50%;float:right;">
==== '''Elements''' ====
==== '''Elements''' ====
{| border="0" cellspacing="2" cellpadding="3" style="width:100%;"
{| border="0" cellspacing="2" cellpadding="3" style="width:100%;"

Revision as of 20:52, 2 May 2024

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:

See Also:

Usage

Syntax

{{IconEx|type|size|alt|link}}

Example

{{IconEx|fishing|icon||Category:Fishing}}

Output: File:Ffxi gld 01.gif

Parameters

  1. type: The type of icon to be displayed. See the table below.
  2. 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.
  3. 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.
  4. link: Page to link the image to. If not provided, the image will link to either the article (if applicable) or the image page.

Icons