Template:Icon: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
(Linking to separate documentation page to hopefully prevent unwanted changes in pages that use the template.)
m (Moved noinclude to start of template (Another attempt to prevent successive anything after the template to be wrapped in pre tags))
 
Line 1: Line 1:
<includeonly>{{#invoke:Icon|main}}</includeonly>
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>
<includeonly>{{#invoke:Icon|main}}</includeonly>

Latest revision as of 12:47, 15 June 2025

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

Show an icon and a label, linking to an article

Template parameters

ParameterDescriptionTypeStatus
Itemname 1

The target item. Together with prefix and suffix (if provided), is used to generate the item's image's file name [[File:filename]]. It is also used as the text of the label's link.

Stringrequired
Disable link?nolink

no description

Booleanoptional
Disable label?notext

no description

Booleanoptional
Linklink

Sets the name of the target wiki page. If not provided, defaults to the value of the item name.

Page nameoptional
Image sizesize s

no description

Suggested values
16 24 32 40 48
Default
30
Numberoptional
File extensionext

Extension of the file, without the starting dot.

Default
png
Example
png
Stringoptional
Amountamount x 2

Represents the amount of the item. It is appended to the label, after any additional text.

Numberoptional
Additional label texttext 3

Additional text to be included in the label. It is not included in the label's link.

Stringoptional
Notenote

Trailing end note. Will be parenthesized

Unknownoptional
File name prefixprefix

Additional prefix for the file name.

Unknownoptional
File name suffixsuffix

Additional suffix for the file name, for example to disambiguate between similar file names. Do not use this to add the extension, use ext instead.

Stringoptional
Item qualityq

Adds a quality icon overlay

Suggested values
1 2 3 4 bronze silver gold osmium
Unknownoptional
Quality (unused)quality

Documented since it is a recognized parameter, but it is not used internally.

Unknowndeprecated