Template:IL

From Fallen London Wiki

link={{{1}}} [[{{{1}}}]]

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

IL 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.png Shard of Glim
  • {{IL|Shard of Glim|30 x}} ==> Shard.png 30 x Shard of Glim
  • {{IL|Shard of Glim|Appearance=Blue Thing}} ==> Shard.png Blue Thing
  • {{IL|Shard of Glim|Appearance=}} ==> hide the text and only display the image, i.e. Shard.png . Clicking on it will still lead to the correct article.
  • {{IL|Shard of Glim|Size=30px}} ==> Shard.png 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.png Shard of Glim (clicking the icon takes you to image page, not the linked article)
  • {{IL|Shard of Glim|Link=Starveling Cat}} ==> Shard.png 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}} ==> 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 ==> Sidebarshadowy.png Sneaky 15
  • {{IL|Size=25px|Shard of Glim|30 x|Appearance=Blue Thing}} ==> Shard.png 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 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
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

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