Template:Item

From Plan B Terraform Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Item/doc.

This template displays resources using Template:Item icon, but also displays text next to the image.

Usage

{{Item|<name>|[size=]|[link=]|[text=]}}

name
unnamed first parameter, the name of the icon you want. See Template:Item icon for a list of valid items
size=
optional, the size you want the resulting resource square to be. Any valid CSS measurement is accepted. Default: 1em
link=
optional, the page that the icon and text should link to. By default it links to <name>
text=
optional, the display text to use for the link. By default it will use [link] if defined, otherwise <name>

Example

{{item|Steel Bar}},
{{item|Plastic Waste|size=3em|link=Plan B: Terraform}},
{{item|Food|size=48px|link=Plan B: Terraform|text=Hello world}}

Steel Bar Steel Bar, Plastic Waste Plastic Waste, Food Hello world