Template:Misc item page: Difference between revisions

Jump to navigation Jump to search
m
rework special/effect section and add usage cost parameter
mNo edit summary
m (rework special/effect section and add usage cost parameter)
Line 30: Line 30:
* {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
* {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
* {{Price | {{{price}}} }}
* {{Price | {{{price}}} }}
{{#if: {{{special|}}} |
{{#if: {{{effect|}}} |
=== Special ===
=== Effect === {{#switch: {{{usage cost|}}}
Special properties:
| action = {{action}}
{{{special}}}
| bonus action = {{action|bonus}}
| #default =
}}Effect:
{{{effect}}}
}}
}}


Line 63: Line 66:
| weight lb = 1.1
| weight lb = 1.1
| price = 100
| price = 100
| special = <!-- Any special effects of the item not already included in other template properties. -->
| usage cost = bonus action <!-- The cost to use the item. Choose from: action, bonus action - or leave EMPTY for non-consumable items. -->
| effect = <!-- The effect(s) of the item when used or consumed. Leave EMPTY for non-consumable items. -->
* Stuff +1 until next [[Long Rest]]
* Stuff +1 until next [[Long Rest]]
| where to find = <!-- Describe where and how to obtain the item. -->
| where to find = <!-- Describe where and how to obtain the item. -->
Line 88: Line 92:
"description": "This is the first text that will appear on the page. Briefly describe what the item is and what makes it noteworthy.",
"description": "This is the first text that will appear on the page. Briefly describe what the item is and what makes it noteworthy.",
"example": "{{uncommon|Potion of Stuff}} is an uncommon [[Potions|Potion]] that grants +1 to Stuff.",
"example": "{{uncommon|Potion of Stuff}} is an uncommon [[Potions|Potion]] that grants +1 to Stuff.",
"type": "string",
"type": "content",
"required": true,
"required": true,
"suggested": true
"suggested": true
Line 94: Line 98:
"quote": {
"quote": {
"description": "The in-game flavour text in the item's tooltip.",
"description": "The in-game flavour text in the item's tooltip.",
"type": "string",
"type": "content",
"suggested": true
"suggested": true
},
},
Line 159: Line 163:
"required": true
"required": true
},
},
"special": {
"effect": {
"description": "Any special effects of the item not already included in other template properties.",
"description": "The effect(s) of the item when used or consumed. Leave EMPTY for non-consumable items.",
"example": "* Grants +1 to [[Stuff]] until next [[Long Rest]]",
"example": "* Grants +1 to [[Stuff]] until next [[Long Rest]]",
"type": "content",
"type": "content",
"suggested": true
},
"usage cost": {
"description": "The cost to use the item. Choose from: action, bonus action - or leave EMPTY for non-consumable items.",
"type": "string",
"suggestedvalues": [
"action",
"bonus action"
],
"suggested": true
"suggested": true
}
}

Navigation menu