Template:IconEx

From HorizonXI Wiki
Revision as of 00:39, 10 February 2023 by Garnet-HorizonXI (Fandom) (talk | contribs) (Created page with "<noinclude>{{ #ifeq:{{NAMESPACE}}|{{ns:Template}}| {{PAGENAME}} }}{{{{BASEPAGENAME}}/Doc}} ==Default Output== </noinclude><onlyinclude>{{#switch: {{lc:{{{1|}}}}} <!-- GENERIC ICONS --> | c | check = {{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Check}}}{{IconEx/Link|{{{4|none}}}}} | exclaim = {{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Exclamation}}}{{IconEx/Link|{{{4|none}}}}} | info | information...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:TemplateDocInfo

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

Default Output

IconEx: Missing parameter >> type (#1)