Template:Infobox Item: Difference between revisions

(Added episode categories.)
m (Add <includeonly> tags)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Infobox Item|main}}{{Mainonly|[[Category:Items]]}}</includeonly><noinclude>{{/doc}}</noinclude>
{| class="wikitable infobox-item" style="float:right"
!colspan="2"| {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
|colspan="2" style="text-align:center"| {{#if:{{{image|}}}|{{clean image|file={{{image}}}}}|[[Special:Upload|Please upload an image!]]{{Mainonly|[[Category:Needs image]]}}}}
|-
|<b>Release date</b>||{{#if:{{{release|}}}|{{{release}}}|Q3 [[2024]]}}
|-
|<b>Episode</b>||{{#switch:{{{episode|}}}|Hopeport=[[File:Hopeport episode icon.png|18px]] [[Hopeport]][[Category:Hopeport]]|Hopeforest=[[File:Hopeforest episode icon.png|18px]] [[Hopeforest]][[Category:Hopeforest]]|Mine of Mantuban=[[File:Mine of Mantuban episode icon.png|18px]] [[Mine of Mantuban]][[Category:Mine of Mantuban]]|#default=[[File:Unknown episode icon.png|18px]] Unknown}}
|-
|<b>Profession</b>||{{#if:{{{profession|}}}|{{{profession}}}|{{Edit button|text=<b>?</b> (edit)}}{{Mainonly|[[Category:Items needing profession]]}}}}
|-
|<b>Value</b>||{{#if:{{{value|}}}|{{{value}}}|{{Edit button|text=<b>?</b> (edit)}}{{Mainonly|[[Category:Items needing value]]}}}}
|}{{Mainonly|[[Category:Items]]}}<noinclude>{{clear}}{{/doc}}</noinclude>

Latest revision as of 02:42, 15 November 2024

Template documentation
This documentation is transcluded from Template:Infobox Item/doc. [edit] [history] [purge]
Template:Infobox Item invokes function main in Module:Infobox Item using Lua.

Parameters

name

The name of the item.

image

The image of the item.

release

The release date of the item.

episode

The episode of the item.

One of:

  • Hopeport
  • Hopeforest
  • Mine of Mantuban
  • Crenopolis
  • Stonemaw Hill

additional_episode

The second episode of the item. (Optional)

value

The value of the item. Set to 0 for quest items.

quest

"No" or "Quest Name"

actions

Comma-separated list of the actions shown in the scenery entity's action menu, in the order they appear in game when opened in backpack, quest interface, or toolbelt. Do not include actions that all items have, such as "Take" when they're on the ground, or "Info" to view the card, or "Equip" for weapons and armor. (Optional)

description

The description of the item in its card.

variant

What base category the item is a variant of.

profession_a

The first profession that this item is related to. (Optional)

profession_a_level

The level of the first profession that this item requires. (Optional, required if profession_a is filled)

profession_b

The second profession that this item is related to. (Optional)

profession_b_level

The level of the second profession that this item requires. (Optional, required if profession_b is filled)

Quick copy

{{Infobox Item
|name = 
|image = 
|release = 
|episode = 
|additional_episode = 
|value = 
|quest = 
|actions = 
|description = 
|variant = 
|profession_a = 
|profession_a_level = 
|profession_b = 
|profession_b_level = 
}}