Template:IL

From Fallen London Wiki
(Redirected from Template:Il)

No image defined. Please supply an image in the {{{1}}} parameter. If you do not know what this message means please report it on the Forum. Thanks in advance.

Template documentation (for the above template, sometimes hidden or invisible)

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}} ==> Shard of Glim
  • {{IL|Shard of Glim|30 x}} ==> 30 x Shard of Glim
  • {{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}} ==> Shard of Glim (the default image size is 20px, which will be used if you do not specify a Size)
  • {{IL|Shard of Glim|Link=}} ==> Shard of Glim (clicking the icon takes you to image page, not the linked article)
  • {{IL|Shard of Glim|Link=Starveling Cat}} ==> Shard of Glim (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}} ==> 30 x Shard of Glim (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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Item name1

The name of the item being linked to.

Example
Shard of Glim
Pagerequired
Quantity2

If present, the quantity will be unlinked, in-between the image icon and the item link.

Example
30 x
Lineoptional
SmallSmall

If "yes", the image will try to use its "small.png" version.

Default
no
Booleanoptional
Image file nameImage

The filename of the image used to decorate the link.

Default
The image name is looked up in the mapping in Property:Has icon. If not present, displays question.png.
Example
Door.png
Fileoptional
Image sizeSize

The size of the displayed image.

Default
20px
Example
30px
Stringoptional
Image linkLink

If present, the image will link to the image file rather than the item.

Booleanoptional
Link appearanceAppearance

If present, will change the anchor text of the link.

Default
If this parameter is not present, then the anchor text will be the item name.
Example
''Sneaky''
Lineoptional
ShortShort

If present, will shorten the default anchor text by removing everything before the first colon. Overridden by the Appearance parameter.

Example
yes
Lineoptional
PropertyProperty

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.

Example
Gains
Contentoptional

Visit Template:IL/doc to edit this text! (How does this work?)