New Eco wiki This wiki is no longer used.

The Eco wiki has moved to: https://wiki.play.eco/

As part of the Unified Community Platform project, your wiki will be migrated to the new platform in the next few weeks. Read more here.

Template:IconLink

From Eco Wiki
Jump to: navigation, search

A simple page link with icon, to use in text, tables, or infoboxes. Clicking the icon or the text will bring you to the linked page.

The link tries to cleverly find the matching icon automatically, but you can specify a different image to use instead.

Usage[edit source]

{{IconLink|Page Name}}
{{IconLink|Page Name|Override Image.png}}

Parameters[edit source]

First Parameter (Required) - Page Name
Name of the page you wish to create a link to.
Use spaces instead of underscores, otherwise the underscores will show up in the link text.
Second Parameter (Optional) - Override Image
File page title for an alternate image. The image will be scaled to 30 pixels wide.
If you leave this parameter blank, then the icon will automatically use the image "PageName_Icon.png" (with spaces removed) if it exists.
You can use spaces or underscores. Do not include the "File:" part of the page title.

Examples[edit source]

{{IconLink|Log}}

Log Icon.png Log

{{IconLink|Elk Carcass}}

ElkCarcass Icon.png Elk Carcass

{{IconLink|Corn|Corn Plant.jpg}}

Corn Plant.jpg Corn

{{IconLink|A Page That Does Not Exist}}

NoImage.png A Page That Does Not Exist