Actions

Template

Difference between revisions of "ItemInfobox"

(Added infobox for items)
 
(Updated template data)
Line 55: Line 55:
 
         <tr>
 
         <tr>
 
             <td class="infoboxtd1strow" style="padding: 10px;"><b>Location Created</b>:</td>
 
             <td class="infoboxtd1strow" style="padding: 10px;"><b>Location Created</b>:</td>
             <td>{{{createAt}}}</td>
+
             <td>{{{createdAt}}}</td>
 
         </tr>
 
         </tr>
 
     }}
 
     }}
Line 73: Line 73:
 
         {{{extraContent}}}}}}}</includeonly><noinclude>
 
         {{{extraContent}}}}}}}</includeonly><noinclude>
 
<noinclude>
 
<noinclude>
</noinclude>
+
<templatedata>
 +
{
 +
"params": {
 +
"title": {
 +
"label": "Name",
 +
"description": "The name of the item",
 +
"example": "The Outer Blade",
 +
"type": "string",
 +
"required": true
 +
},
 +
"image": {
 +
"label": "Image",
 +
"description": "A picture of the item",
 +
"type": "wiki-file-name",
 +
"suggested": true
 +
},
 +
"flavourText": {
 +
"label": "Flavour Text",
 +
"description": "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",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"magicalItem": {
 +
"label": "Magical?",
 +
"description": "If the item is magical or not",
 +
"type": "boolean",
 +
"default": "No",
 +
"autovalue": "No",
 +
"required": true
 +
},
 +
"attunement": {
 +
"label": "Requires Attunement?",
 +
"description": "If the item requires attunement",
 +
"example": "Yes",
 +
"type": "boolean",
 +
"default": "No",
 +
"autovalue": "No",
 +
"required": true
 +
},
 +
"requirements": {
 +
"label": "Usage requirements",
 +
"description": "Any specific requirements to use the item",
 +
"example": "Requires attunment by a lawful evil character",
 +
"type": "string",
 +
"autovalue": ""
 +
},
 +
"type": {
 +
"label": "Item Type",
 +
"description": "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",
 +
"type": "string",
 +
"required": true
 +
},
 +
"owner": {
 +
"label": "Current Owner",
 +
"description": "Who currently has the item in their possession ",
 +
"example": "Rydol",
 +
"type": "wiki-page-name",
 +
"suggested": true
 +
},
 +
"createdBy": {
 +
"label": "Created by",
 +
"description": "The character/faction that created the item",
 +
"example": "Templars",
 +
"type": "wiki-page-name"
 +
},
 +
"createdAt": {
 +
"label": "Created At",
 +
"description": "When the item was created",
 +
"example": "4-2490",
 +
"type": "string"
 +
},
 +
"foundAt": {
 +
"label": "Location Found",
 +
"description": "The location where the item was found",
 +
"example": "Tala Rane",
 +
"type": "wiki-page-name",
 +
"suggested": true
 +
},
 +
"customFieldName": {},
 +
"customFieldContent": {},
 +
"extraContent": {}
 +
}
 +
}
 +
</templatedata></noinclude>

Revision as of 20:02, 23 July 2021


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
CustomFieldNamecustomFieldName

no description

Unknownoptional
CustomFieldContentcustomFieldContent

no description

Unknownoptional
ExtraContentextraContent

no description

Unknownoptional