Template:IL/doc
IL is short for ImageLink (and probably some other things, but this works for a mnemonic).
Meant to simplify combining small images and article backlinks.
- {{IL|Shard of Glim}} ==>
- {{IL|Shard of Glim|30 x}} ==>
- {{IL|Shard of Glim|Appearance=Blue Thing}} ==> Blue Thing
- {{IL|Shard of Glim|Appearance=}} ==> hide the text and only display the image, i.e. . Clicking on it will still lead to the correct article.
- {{IL|Shard of Glim|Size=30px}} ==> (the default image size is 20px, which will be used if you do not specify a Size)
- {{IL|Shard of Glim|Link=}} ==> (clicking the icon takes you to image page, not the linked article)
- {{IL|Shard of Glim|Link=Starveling Cat}} ==> (note that the image now links to Starveling Cat but the text continues to link to Shard of Glim)
- {{IL|Shard of Glim|30 x|Image=Door.png}} ==> (use this override only for cases where you want a different icon to clarify, not if the actual image has changed!)
You can combine the optional prefix and the several named parameters freely, as long as the item/quality/… name comes before the prefix, should you specify one:
- {{IL|Appearance=''Sneaky''|Size=15px|Shadowy}} 15 ==> Sneaky 15
- {{IL|Size=25px|Shard of Glim|30 x|Appearance=Blue Thing}} ==> 30 x Blue Thing
It is entirely possible and very very likely that many items and qualities are missing a corresponding image link entry. In this case, the image will render with a broken link intentionally:
Please help add to the image list if you spot these.
IL is short for ImageLink (and probably some other things, but this works for a mnemonic). Meant to simplify combining small images and article backlinks.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item name | 1 | The name of the item being linked to.
| Page | required |
Quantity | 2 | If present, the quantity will be unlinked, in-between the image icon and the item link.
| Line | optional |
Small | Small | If "yes", the image will try to use its "small.png" version.
| Boolean | optional |
Image file name | Image | The filename of the image used to decorate the link.
| File | optional |
Image size | Size | The size of the displayed image.
| String | optional |
Image link | Link | If present, the image will link to the image file rather than the item. | Boolean | optional |
Link appearance | Appearance | If present, will change the anchor text of the link.
| Line | optional |
Short | Short | If present, will shorten the default anchor text by removing everything before the first colon. Overridden by the Appearance parameter.
| Line | optional |
Property | Property | The link will also set a Semantic MediaWiki Property. Most Properties should be set using purpose-specific Templates, with direct use of this parameter for ad-hoc spot-fixes.
| Content | optional |