Template:IconEx/Doc: Difference between revisions

From HorizonXI Wiki
(Created page with "<noinclude>{{TemplateDocNotice}}</noinclude> <onlyinclude><includeonly>{{TemplateDocInfo}}</includeonly>{{Tocright}} ==Introduction== Displays a selected icon and optionally makes it a link. No categories are output with this template. '''Sub-Templates:''' * {{Tl|{{#titleparts:{{PAGENAME}} | 1}}/Size}} * {{Tl|{{#titleparts:{{PAGENAME}} | 1}}/Link}} '''See Also:''' * Icon Templates ==Usage== ===Syntax=== <code><nowiki>{{IconEx|</nowiki>''type''<nowiki>|</nowiki>...")
 
Line 85: Line 85:
| align="center" | [[File:Trans_Dark.gif|x16px|Dark]] || dark
| align="center" | [[File:Trans_Dark.gif|x16px|Dark]] || dark
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Double Dark.gif|x16px|Double Dark]] || dark2
| align="center" | [[File:Double Dark.png|x16px|Double Dark]] || dark2
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Trans_Earth.gif|x16px|Earth]] || earth
| align="center" | [[File:Trans_Earth.gif|x16px|Earth]] || earth
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Double Earth.gif|x16px|Double Earth]] || earth2
| align="center" | [[File:Double Earth.png|x16px|Double Earth]] || earth2
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Trans_Fire.gif|x16px|Fire]] || fire
| align="center" | [[File:Trans_Fire.gif|x16px|Fire]] || fire
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Double Fire.gif|x16px|Double Fire]] || fire2
| align="center" | [[File:Double Fire.png|x16px|Double Fire]] || fire2
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Trans_Ice.gif|x16px|Ice]] || ice
| align="center" | [[File:Trans_Ice.gif|x16px|Ice]] || ice
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Double Ice.gif|x16px|Double Ice]] || ice2
| align="center" | [[File:Double Ice.png|x16px|Double Ice]] || ice2
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Trans_Light.gif|x16px|Light]] || light
| align="center" | [[File:Trans_Light.gif|x16px|Light]] || light
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Double Light.gif|x16px|Double Light]] || light2
| align="center" | [[File:Double Light.png|x16px|Double Light]] || light2
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Trans_Lightning.gif|x16px|Lightning]] || lightning
| align="center" | [[File:Trans_Lightning.gif|x16px|Lightning]] || lightning
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Double Lightning.gif|x16px|Double Lightning]] || lightning2
| align="center" | [[File:Double Lightning.png|x16px|Double Lightning]] || lightning2
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Trans_Water.gif|x16px|Water]] || water
| align="center" | [[File:Trans_Water.gif|x16px|Water]] || water
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Double Water.gif|x16px|Double Water]] || water2
| align="center" | [[File:Double Water.png|x16px|Double Water]] || water2
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Trans_Wind.gif|x16px|Wind]] || wind
| align="center" | [[File:Trans_Wind.gif|x16px|Wind]] || wind
|- style="background-color:#eef0ff;"
|- style="background-color:#eef0ff;"
| align="center" | [[File:Double Wind.gif|x16px|Double Wind]] || wind2
| align="center" | [[File:Double Wind.png|x16px|Double Wind]] || wind2
|}
|}
</div>
</div>
Line 120: Line 120:
<div style="vertical-align:top;">
<div style="vertical-align:top;">
<div style="width:50%;float:left;">
<div style="width:50%;float:left;">
==== '''Various''' ====
==== '''Various''' ====
{| border="0" cellspacing="2" cellpadding="3" style="width:100%;"
{| border="0" cellspacing="2" cellpadding="3" style="width:100%;"

Revision as of 11:17, 1 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