Jump to content

Template:Item Tooltip: Difference between revisions

From ZenithXI
imported>Loxley
Created page with "<noinclude> Shorthand to create an item icon, name, link and tooltip, generally used for tables in Category:Private Server pages <pre>{{Item Tooltip|Name=}}</pre> {{PAGENAME}}</noinclude><includeonly>[[File:{{{Name}}} icon.png|22px|link=]] {{tooltip|text=[[{{{Name}}}]]|tooltip=[[File:{{{Name}}} description.png]]}}</includeonly>"
 
imported>Boblers
Examples: label examples
 
Line 1: Line 1:
<noinclude>
<includeonly>[[File:{{{1|{{{Name}}}}}} icon.png|22px|link=]] {{tooltip|text=[[{{{link|{{{1|{{{Name}}}}}}}}}|{{{alt|{{{link|{{{1|{{{Name}}}}}}}}}}}}]]|tooltip=[[File:{{{1|{{{Name}}}}}} description.png]]}}</includeonly><noinclude>
Shorthand to create an item icon, name, link and tooltip, generally used for tables in [[:Category:Private Server]] pages
Shorthand to create an item icon, name, link and tooltip. Frequently used for tables in [[:Category:Private Server]] pages
<pre>{{Item Tooltip|Name=}}</pre>
<pre>{{Item Tooltip|Name=}}</pre>
[[Category:Templates/Private Server|{{PAGENAME}}]]</noinclude><includeonly>[[File:{{{Name}}} icon.png|22px|link=]] {{tooltip|text=[[{{{Name}}}]]|tooltip=[[File:{{{Name}}} description.png]]}}</includeonly>
 
==Parameters==
; Name (or unnamed field 1)
The item's name. Needs to match the icon and description's file names. For example, {{Item Tooltip|Echad Ring}} works because the icon file named "File:Echad Ring icon.png", and the description file is named "File:Echad Ring description.png".
 
; link (optional)
Specify the page to link to, if it differs from the "Name" field. For example, {{Item Tooltip|Cipher- Moogle|link=Cipher: Moogle}}
 
; alt (optional)
Alternate text to display, if it differs from the "Name" or "link" fields. For example: {{Item Tooltip|Copper Voucher|alt=Copper A.M.A.N. Voucher}}.
 
==Examples==
===Name field===
<pre>{{Item Tooltip|Name=Meat Jerky}}</pre>
{{Item Tooltip|Name=Meat Jerky}}
 
===Unnamed first field===
<pre>{{Item Tooltip|Echad Ring}}</pre>
{{Item Tooltip|Echad Ring}}
 
===link field===
<pre>{{Item Tooltip|Cipher- Moogle|link=Cipher: Moogle}}</pre>
{{Item Tooltip|Cipher- Moogle|link=Cipher: Moogle}}
 
===alt field===
<pre>{{Item Tooltip|Copper Voucher|alt=Copper A.M.A.N. Voucher}}</pre>
{{Item Tooltip|Copper Voucher|alt=Copper A.M.A.N. Voucher}}
 
[[Category:Templates/Private Server|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:08, 19 May 2026

Shorthand to create an item icon, name, link and tooltip. Frequently used for tables in Category:Private Server pages

{{Item Tooltip|Name=}}

Parameters

Name (or unnamed field 1)

The item's name. Needs to match the icon and description's file names. For example, File:Echad Ring icon.png Echad Ring works because the icon file named "File:Echad Ring icon.png", and the description file is named "File:Echad Ring description.png".

link (optional)

Specify the page to link to, if it differs from the "Name" field. For example, File:Cipher- Moogle icon.png Cipher: Moogle

alt (optional)

Alternate text to display, if it differs from the "Name" or "link" fields. For example: Copper A.M.A.N. Voucher.

Examples

Name field

{{Item Tooltip|Name=Meat Jerky}}

Meat Jerky

Unnamed first field

{{Item Tooltip|Echad Ring}}

File:Echad Ring icon.png Echad Ring

link field

{{Item Tooltip|Cipher- Moogle|link=Cipher: Moogle}}

File:Cipher- Moogle icon.png Cipher: Moogle

alt field

{{Item Tooltip|Copper Voucher|alt=Copper A.M.A.N. Voucher}}

Copper A.M.A.N. Voucher