Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.
Template:ItemLink/doc: Difference between revisions
From Super Fantasy Kingdom Official Wiki
m 5 revisions imported |
removed redundancy |
||
| Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
<nowiki>{{ItemLink|Stone}}</nowiki> | <nowiki>{{ItemLink|Stone}}</nowiki> | ||
* first position= name of link and image (image can be changed with the additional parameter) | |||
* second position= the text shown | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ Parameters | |+ Additional Parameters | ||
|- | |- | ||
! Name !! Type !! Required !! Default | ! Name !! Type !! Required !! Default | ||
|- | |- | ||
|| <code>image</code> | || <code>image</code> | ||
| Line 47: | Line 33: | ||
<code><nowiki>{{ItemLink|Stone}}</nowiki></code> = {{ItemLink|Stone}} | <code><nowiki>{{ItemLink|Stone}}</nowiki></code> = {{ItemLink|Stone}} | ||
<code><nowiki>{{ItemLink|Stone| | <code><nowiki>{{ItemLink|Stone|Stone|image=Stone.png|size=20px|quantity=}}</nowiki></code> = {{ItemLink|Stone|Stone|link=Stone|image=Stone.png|size=20px|quantity=}} | ||
Lowercase link: | Lowercase link: | ||
<code><nowiki>{{ItemLink|Stone|stone}}</nowiki></code> = {{ItemLink|Stone|stone}} | <code><nowiki>{{ItemLink|Stone|stone}}</nowiki></code> = {{ItemLink|Stone|stone}} | ||
Plural link: | Plural link: | ||
<code><nowiki>{{ItemLink|Stone| | <code><nowiki>{{ItemLink|Stone|Stones}}</nowiki></code> = {{ItemLink|Stone|Stones}}<br/> | ||
Alternative: <code><nowiki>{{ItemLink|Stone}}s</nowiki></code> = {{ItemLink|Stone}}s | Alternative: <code><nowiki>{{ItemLink|Stone}}s</nowiki></code> = {{ItemLink|Stone}}s | ||
Revision as of 12:18, 27 June 2026
Link to an item page with an item image in front:
Stone
Also supports an optional quantity in front: 5 ×
Stone
Usage
{{ItemLink|Stone}}
- first position= name of link and image (image can be changed with the additional parameter)
- second position= the text shown
| Name | Type | Required | Default |
|---|---|---|---|
image
|
string
|
false
|
The value of the first positional parameter suffixed with .png
|
size
|
string
|
false
|
16x16px |
quantity
|
string
|
false
|
Examples
Both lines produce the same output:
{{ItemLink|Stone}} =
Stone
{{ItemLink|Stone|Stone|image=Stone.png|size=20px|quantity=}} =
Stone
Lowercase link:
{{ItemLink|Stone|stone}} =
stone
Plural link:
{{ItemLink|Stone|Stones}} =
Stones
Alternative: {{ItemLink|Stone}}s =
Stones
Quantity:
{{ItemLink|Stone|quantity=5}} = 5 ×
Stone
{{ItemLink|Stone|quantity=5-10}} = 5-10 ×
Stone


