แม่แบบ:ItemLink
Link to an item page with an item image in front: ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
Also supports an optional quantity in front: ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
Usage
{{ItemLink|Stone}}
Name | Type | Required | Default |
---|---|---|---|
0
|
string
|
true
|
|
text
|
string
|
false
|
The value of the first positional parameter, or the second if given |
link
|
string
|
false
|
The value of the first positional parameter |
image
|
string
|
false
|
The value of the first positional parameter suffixed with .png
|
size
|
string
|
false
|
20px |
quantity
|
string
|
false
|
|
noDlcIcon
|
bool
|
false
|
|
mod
|
string
|
false
|
Examples
Both lines produce the same output:
{{ItemLink|Stone}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
{{ItemLink|Stone|text=Stone|link=Stone|image=Stone.png|size=20px|quantity=}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
Lowercase link:
{{ItemLink|Stone|text=stone}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
{{ItemLink|Stone|stone}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
Plural link:
{{ItemLink|Stone|text=Stones}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
Alternative: {{ItemLink|Stone}}s
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not founds
Quantity:
{{ItemLink|Stone|quantity=5}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
{{ItemLink|Stone|quantity=5-10}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
DLC-suffices are converted automatically to the according icon, if no explicit link-text is given
{{ItemLink|Sand}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
{{ItemLink|Sand}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
Mods that are supported will have the mod-part replaced with their icon
{{ItemLink|Mod:Ark Eternal/Alpha Meat}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
The parameter noDlcIcon hides the extra DLC-/mod-icon
{{ItemLink|Sand|noDlcIcon=1}}
= ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:Arguments' not found
Mod and DLC suffices are defined and managed within Module:DissectDlcItemName.