Template:Misc item page: Difference between revisions
m (WIP) |
m (add TemplateData documentation) |
||
Line 72: | Line 72: | ||
See here for the result of the above: [[Template:MiscItemPage/Example]] | See here for the result of the above: [[Template:MiscItemPage/Example]] | ||
[[Category:Item Page Templates]]</noinclude> | [[Category:Item Page Templates]]<templatedata> | ||
{ | |||
"params": { | |||
"image": { | |||
"description": "The filename of the image/icon associated with this item.", | |||
"example": "Potion of Fire Resistance Icon.png", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"description": { | |||
"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.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"quote": { | |||
"description": "The in-game flavour text in the item's tooltip.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"book text": { | |||
"description": "The text within the book. Leave EMPTY for non-books - use \"quote\" parameter for tooltip flavour text.", | |||
"type": "content" | |||
}, | |||
"where to find": { | |||
"description": "Describe where and how to obtain the item.", | |||
"example": "Looted from [[NPC]] in [[Location]].", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"type": { | |||
"aliases": [ | |||
"item type" | |||
], | |||
"description": "Item type. Choose one of: Ammunition, Books, Food, Drinks, Potions, Scrolls, Consumables, Misc", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Ammunition", | |||
"Books", | |||
"Food", | |||
"Drinks", | |||
"Potions", | |||
"Scrolls", | |||
"Consumables", | |||
"Misc" | |||
], | |||
"required": true | |||
}, | |||
"camp supplies": { | |||
"description": "Number of Camp Supplies. Leave EMPTY for all except Food and Drinks.", | |||
"type": "number" | |||
}, | |||
"rarity": { | |||
"description": "Rarity of the item. Choose from: common, uncommon, rare, very rare, legendary, story", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"common", | |||
"uncommon", | |||
"rare", | |||
"very rare", | |||
"legendary", | |||
"story" | |||
], | |||
"default": "common", | |||
"autovalue": "common", | |||
"required": true | |||
}, | |||
"weight kg": { | |||
"description": "Weight of the item in kilograms", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"weight lb": { | |||
"description": "Weight of the item in pounds", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"price": { | |||
"description": "Price/value of the item. When two values are listed on the tooltip, use the crossed out \"true\" value, not the adjusted buy/sell price.", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"special": { | |||
"description": "Any special effects of the item not already included in other template properties.", | |||
"example": "* Grants +1 to [[Stuff]] until next [[Long Rest]]", | |||
"type": "content", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "This template generates entire pages for individual items of the following types: Ammunition, Books, Food, Drinks, Potions, Scrolls, Consumables, and other Miscellaneous Items. For Weapons, see Template:WeaponPage. For Equipment, see Template:EquipmentPage.", | |||
"format": "block" | |||
} | |||
</templatedata></noinclude> |
Revision as of 11:47, 17 February 2023
This template generates entire pages for individual items of the following types: Ammunition, Books, Food, Drinks, Potions, Scrolls, Consumables, and other Miscellaneous Items. For Weapons, see Template:WeaponPage. For Equipment, see Template:EquipmentPage.
Following is an example of usage with all possible template parameters shown. This describes a completely made-up potion.
Copy example values exactly as listed, including capitalization and plurals, if any. If you're ever unsure what to type, simply leave the parameter empty.
{{MiscItemPage | <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:MiscItemPage --> | image = Potion of Poison Resistance Icon.png | description = {{uncommon|Potion of Stuff}} is an uncommon [[Potions|Potion]] that grants +1 to Stuff until the next [[Long Rest]]. <!-- This is the first text that will appear on the page. Briefly describe what the item is and what makes it noteworthy. --> | quote = The in-game flavour text in the item's tooltip. | book text = <!-- The text of the book. Leave EMPTY for non-books - use "quote" parameter for all other item types. --> | type = Potions <!-- Item type. Choose one of: Ammunition, Books, Food, Drinks, Potions, Scrolls, Consumables, Misc --> | camp supplies = <!-- Number of Camp Supplies. Leave EMPTY for all except Food and Drinks. --> | rarity = uncommon <!-- Choose from: common, uncommon, rare, very rare, legendary, story --> | weight kg = 0.5 | weight lb = 1.1 | price = 100 | special = * Stuff +1 until next [[Long Rest]] | where to find = <!-- Describe where and how to obtain the item. --> This is a made-up item. You cannot obtain it anywhere in the game. }}See here for the result of the above: Template:MiscItemPage/Example
This template generates entire pages for individual items of the following types: Ammunition, Books, Food, Drinks, Potions, Scrolls, Consumables, and other Miscellaneous Items. For Weapons, see Template:WeaponPage. For Equipment, see Template:EquipmentPage.
Parameter | Description | Type | Status | |
---|---|---|---|---|
image | image | The filename of the image/icon associated with this item.
| File | suggested |
description | description | This is the first text that will appear on the page. Briefly describe what the item is and what makes it noteworthy.
| String | required |
quote | quote | The in-game flavour text in the item's tooltip. | String | suggested |
book text | book text | The text within the book. Leave EMPTY for non-books - use "quote" parameter for tooltip flavour text. | Content | optional |
where to find | where to find | Describe where and how to obtain the item.
| Content | suggested |
type | type item type | Item type. Choose one of: Ammunition, Books, Food, Drinks, Potions, Scrolls, Consumables, Misc
| String | required |
camp supplies | camp supplies | Number of Camp Supplies. Leave EMPTY for all except Food and Drinks. | Number | optional |
rarity | rarity | Rarity of the item. Choose from: common, uncommon, rare, very rare, legendary, story
| String | required |
weight kg | weight kg | Weight of the item in kilograms | Number | required |
weight lb | weight lb | Weight of the item in pounds | Number | required |
price | price | Price/value of the item. When two values are listed on the tooltip, use the crossed out "true" value, not the adjusted buy/sell price. | Number | required |
special | special | Any special effects of the item not already included in other template properties.
| Content | suggested |