Template:Ilinkt/doc
< Template:Ilinkt
Jump to navigation
Jump to search
Revision as of 12:21, 17 February 2022 by Mortem (talk | contribs) (Created page with "{{Documentation}} The '''icon link table''' template is used to created image-and-text links within tables where the image file is suffixed with "icon". ==Usage== {{T|ilink|item|pic=file name|txt=text|size=size without px}} ==Examples== {|class="wikitable" !Code ! colspan="2" | Produces !Standard syntax |- |<code><nowiki>{{ilinkt|Balance beam}}</nowiki></code> |{{ilinkt|Balance beam}} |<code><nowiki>link=Balance beam||Balance beam</n...")
Script error: The module returned a nil value. It is supposed to return an export table.
The icon link table template is used to created image-and-text links within tables where the image file is suffixed with "icon".
Usage
Script error: No such module "T".
Examples
Code | Produces | Standard syntax | |
---|---|---|---|
{{ilinkt|Balance beam}}
|
px | Balance beam | [[File:Balance beam icon.png|link=Balance beam]]||[[Balance beam]]
|
{{ilinkt|Granite maul|pic=Abyssal whip}}
|
Granite maul | [[File:Abyssal whip.png|link=Granite maul]]||[[Granite maul]]
| |
{{ilinkt|Balance beam|txt=Beam}}
|
px | Beam | [[File:Balance beam icon.png|link=Balance beam]]||[[Balance beam|Beam]]
|
{{ilinkt|Balance beam|pic=Abyssal whip|txt=Whip}}
|
Whip | [[File:Abyssal whip.png|link=Balance beam]]||[[Balance beam|Whip]]
| |
{{ilinkt|Balance beam|pic=Gnome child chathead|txt=Whip|size=35}}
|
File:Gnome child chathead.png | Whip | [[File:Gnome child chathead.png|link=Balance beam|35px]]||[[Balance beam|Whip]]
|
{{ilinkt|Steam achievements|pic=A New Hero colour|type=jpg|size=35}}
|
File:A New Hero (unlocked).jpg | Steam achievements | [[File:A New Hero (unlocked).jpg|link=Steam achievements|35px]]||[[Steam achievements]]
|
See also
Parameters
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item | 1 | This parameter takes the name of the page that the link is for. | Page name | required |
Picture | pic | This changes the filename used; do not include 'File:' or '.png'
| File | optional |
Text | txt | Alternate text in the link.
| String | optional |
Picture size | size | The size of an image if the image is too big, only number are allowed, 'px' is already included in the code.
| String | optional |
File type | type | The file type (extension) for the image
| String | optional |