Actions

Template

Difference between revisions of "ItemInfobox"

m (Updated example)
(Added rarity)
Line 27: Line 27:
 
             <td class="infoboxtd1strow" style="padding: 10px;"><b>Item Type</b>:</td>
 
             <td class="infoboxtd1strow" style="padding: 10px;"><b>Item Type</b>:</td>
 
             <td>{{{type}}}</td>
 
             <td>{{{type}}}</td>
 +
        </tr>
 +
    }}
 +
    {{#if: {{{rarity|}}}|
 +
        <tr>
 +
            <td class="infoboxtd1strow" style="padding: 10px;"><b>Item Rarity</b>:</td>
 +
            <td>{{{rarity}}}</td>
 
         </tr>
 
         </tr>
 
     }}
 
     }}
Line 156: Line 162:
 
"description": "Any additional content you need",
 
"description": "Any additional content you need",
 
"type": "unbalanced-wikitext"
 
"type": "unbalanced-wikitext"
 +
},
 +
"rarity": {
 +
"label": "Item Rarity",
 +
"description": "How rare the item is. Common, Uncommon, Rare, Legendary, Artifact, Crafted",
 +
"example": "Common",
 +
"type": "string",
 +
"default": "Common",
 +
"autovalue": "Common",
 +
"required": true
 
}
 
}
 
}
 
}

Revision as of 20:28, 23 July 2021


Test item
ByAllah.jpg
This item is the most powerful item in the land
Magical?: No
Requires Attunement?: No
Usage Requirements: Some bullshit requirement
Item Type: Weapon
Current Owner: Rydol Do'viir
Created by: Rydol Do'viir
Location Created: 4-2469
Location Found: Tala Rane
A custom field: Extra field content

No description.

Template parameters

ParameterDescriptionTypeStatus
Nametitle

The name of the item

Example
The Outer Blade
Stringrequired
Imageimage

A picture of the item

Filesuggested
Flavour TextflavourText

A short line about the item, could be a notable quote about the item or just a quick description

Example
Someday, someone will best me. But it won’t be today, and it won’t be you
Stringsuggested
Magical?magicalItem

If the item is magical or not

Default
No
Auto value
No
Booleanrequired
Requires Attunement?attunement

If the item requires attunement

Default
No
Example
Yes
Auto value
No
Booleanrequired
Usage requirementsrequirements

Any specific requirements to use the item

Example
Requires attunment by a lawful evil character
Auto value
Stringoptional
Item Typetype

The type of item

Example
Weapon, Artifact. We can’t limit this to the usual choices, because I give people things like hip-flasks and shit
Stringrequired
Current Ownerowner

Who currently has the item in their possession

Example
Rydol
Pagesuggested
Created bycreatedBy

The character/faction that created the item

Example
Templars
Pageoptional
Created AtcreatedAt

When the item was created

Example
4-2490
Stringoptional
Location FoundfoundAt

The location where the item was found

Example
Tala Rane
Pagesuggested
Custom Field NamecustomFieldName

A custom field for you to write your own things

Stringoptional
Custom Field ContentcustomFieldContent

The content to be placed in the custom field

Contentoptional
Extra ContentextraContent

Any additional content you need

Unbalanced wikitextoptional
Item Rarityrarity

How rare the item is. Common, Uncommon, Rare, Legendary, Artifact, Crafted

Default
Common
Example
Common
Auto value
Common
Stringrequired