Template:Icon

From Palworld Wiki
Jump to navigation Jump to search

Syntax

Regular usage

{{Icon|Lamball}}

Lamball icon.png  Lamball

With Link Text Alias

{{Icon|Lamball|A Good Lamboi}}

Lamball icon.png  A Good Lamboi

Without Link Text

{{Icon|Lamball|none}}

Lamball icon.png

Invalid Page

{{Icon|Lamboi}}

Unknown icon.png  Lamboi

Template Parameters

Precedes a wiki page link with an icon. The link text can optionally be disabled by using the string "none" as the argument to the linktext parameter.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Target Page1 TargetPage

The wiki page the link will direct to. The page title will be used to query the file to use as the icon with the format File:<1>_icon.png

Page namerequired
Link Text Alias2 TextAlias

The text to display on the link. Using "none" as the string argument to this parameter disables displaying the page link leaving just the icon.

Stringoptional

Source

Improved version not needing t/piece sub template developed on Templates wiki see the list of authors. Copied here via CC-By-SA 3.0 license.