Template:IconEx: Difference between revisions

From HorizonXI Wiki
(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...")
 
m (changed some filenames from gif to png (gif doesn't exist))
Line 32: Line 32:
-->
-->
   | dark = [[File:Trans_Dark.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Dark}}}{{IconEx/Link|{{{4|none}}}}}]]
   | dark = [[File:Trans_Dark.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Dark}}}{{IconEx/Link|{{{4|none}}}}}]]
   | dark2 = [[File:Double Dark.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Dark}}}{{IconEx/Link|{{{4|none}}}}}]]
   | dark2 = [[File:Double Dark.png|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Dark}}}{{IconEx/Link|{{{4|none}}}}}]]
   | earth = [[File:Trans_Earth.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Earth}}}{{IconEx/Link|{{{4|none}}}}}]]
   | earth = [[File:Trans_Earth.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Earth}}}{{IconEx/Link|{{{4|none}}}}}]]
   | earth2 = [[File:Double Earth.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Earth}}}{{IconEx/Link|{{{4|none}}}}}]]
   | earth2 = [[File:Double Earth.png|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Earth}}}{{IconEx/Link|{{{4|none}}}}}]]
   | fire = [[File:Trans_Fire.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Fire}}}{{IconEx/Link|{{{4|none}}}}}]]
   | fire = [[File:Trans_Fire.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Fire}}}{{IconEx/Link|{{{4|none}}}}}]]
   | fire2 = [[File:Double Fire.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Fire}}}{{IconEx/Link|{{{4|none}}}}}]]
   | fire2 = [[File:Double Fire.png|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Fire}}}{{IconEx/Link|{{{4|none}}}}}]]
   | ice = [[File:Trans_Ice.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Ice}}}{{IconEx/Link|{{{4|none}}}}}]]
   | ice = [[File:Trans_Ice.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Ice}}}{{IconEx/Link|{{{4|none}}}}}]]
   | ice2 = [[File:Double Ice.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Ice}}}{{IconEx/Link|{{{4|none}}}}}]]
   | ice2 = [[File:Double Ice.png|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Ice}}}{{IconEx/Link|{{{4|none}}}}}]]
   | light = [[File:Trans_Light.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Light}}}{{IconEx/Link|{{{4|none}}}}}]]
   | light = [[File:Trans_Light.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Light}}}{{IconEx/Link|{{{4|none}}}}}]]
   | light2 = [[File:Double Light.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Light}}}{{IconEx/Link|{{{4|none}}}}}]]
   | light2 = [[File:Double Light.png|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Light}}}{{IconEx/Link|{{{4|none}}}}}]]
   | lightning = [[File:Trans_Lightning.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Lightning}}}{{IconEx/Link|{{{4|none}}}}}]]
   | lightning = [[File:Trans_Lightning.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Lightning}}}{{IconEx/Link|{{{4|none}}}}}]]
   | lightning2 = [[File:Double Lightning.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Lightning}}}{{IconEx/Link|{{{4|none}}}}}]]
   | lightning2 = [[File:Double Lightning.png|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Lightning}}}{{IconEx/Link|{{{4|none}}}}}]]
   | water = [[File:Trans_Water.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Water}}}{{IconEx/Link|{{{4|none}}}}}]]
   | water = [[File:Trans_Water.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Water}}}{{IconEx/Link|{{{4|none}}}}}]]
   | water2 = [[File:Double Water.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Water}}}{{IconEx/Link|{{{4|none}}}}}]]
   | water2 = [[File:Double Water.png|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Water}}}{{IconEx/Link|{{{4|none}}}}}]]
   | wind = [[File:Trans_Wind.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Wind}}}{{IconEx/Link|{{{4|none}}}}}]]
   | wind = [[File:Trans_Wind.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Wind}}}{{IconEx/Link|{{{4|none}}}}}]]
   | wind2 = [[File:Double Wind.gif|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Wind}}}{{IconEx/Link|{{{4|none}}}}}]]
   | wind2 = [[File:Double Wind.png|{{IconEx/Size|{{{2|icon}}}|x16px}}|{{{3|Double Wind}}}{{IconEx/Link|{{{4|none}}}}}]]
<!--
<!--
     VARIOUS
     VARIOUS

Revision as of 09:29, 2 September 2025

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 won't link to anything.

Icons

Default Output

IconEx: Missing parameter >> type (#1)