Template:Inventory Icon
Template Documentation: |
---|
Note: the template above may sometimes be partially or fully invisible. |
Documentation controls: [purge] [edit] [view] (Help with documentation) |
Description
This template is used to display an in-line icon and link for an object. It can be used for either blocks or items.
Syntax
You can use {{Inventory Icon|<Item Name>|<Optional Text>|<type=<Component or Tool. Optional>>}}
in line to use the template.
Parameters
- type: This is a named parameter, included as "type=Component" or "type=Tool", depending on which group the item belongs to. If left out, this defaults to Component.
- 1st parameter: Name of the item, exactly as listed in the inventory screen.
- 2nd parameter: Text to display, instead of the name. (Note: This is optional)
Shortcuts
The template Template:Bi and Template:Ii can be used for blocks and items respectively. They use the same syntax, but are shorter and do not require the "type" parameter.
Samples
{{Inventory Icon|Gatling Gun}}
results in Gatling Gun.
{{Inventory Icon|Rocket Launcher|Kaboom!}}
results in Kaboom!.
{{Inventory Icon|Automatic Rifle|Assault Rifle|type=Tool}}
results in Assault Rifle.
Alternatively, you could use {{bi|Medical Room|sick bay}}
and {{ii|Grinder}}
for Sick Bay and
Grinder respectively.
Example: Rocket Launcher Should show Rocket Launcher with icon
Example: File:Icon Component Rock Launcher.png Rocket Launcher Should show Rocket Launcher Text with missing icon
- Display templates