Template:Misc item page: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 64: Line 64:
}}
}}


{{#switch: {{{nocategories|}}} <!-- Just for examples of use. -->
{{#switch: {{{this is an example|}}}
| yes =
| yes =
| #default = {{#ifeq: {{{type}}} | Misc | [[Category:Misc Items]] | [[Category:{{{type}}}]] }} [[Category:{{{rarity|common}}} Items]]
| #default = {{#ifeq: {{{type}}} | Misc | [[Category:Misc Items]] | [[Category:{{{type}}}]] }} [[Category:{{{rarity|common}}} Items]]
Line 72: Line 72:


-->
-->
This template generates entire pages for individual items of the following types: [[Ammunition]], [[Books]], [[Camp Supplies#Food]], [[Camp Supplies#Drinks]], [[Potions]], [[Scrolls]], [[Consumables]], and other [[Miscellaneous|Miscellaneous Items]]. For Weapons, see [[:Template:WeaponPage]]. For Equipment, see [[:Template:EquipmentPage]].
This template generates entire pages for individual items of the following types: [[Ammunition]], [[Books]], [[Camp Supplies#Food]], [[Camp Supplies#Drinks]], [[Potions]], [[Scrolls]], [[Consumables]], and other [[Miscellaneous|Miscellaneous Items]]. For Weapons, see [[Template:WeaponPage]]. For Equipment, see [[Template:EquipmentPage]].


'''See the bottom of this page for template parameter explanations. If you're ever unsure what to type, simply leave a parameter empty (don't remove it, as this may confuse other wiki editors).'''
'''See the bottom of this page for template parameter explanations. If you're ever unsure what to type, simply leave a parameter empty (don't remove it, as this may confuse other wiki editors).'''
Line 78: Line 78:
<pre>
<pre>
{{MiscItemPage
{{MiscItemPage
| <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:MiscItemPage -->
<!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:MiscItemPage -->
| image =  
| image =  
| description =  
| description =  
Line 96: Line 96:
</pre>
</pre>


Examples of template usage for various types of items: [[Template:MiscItemPage/Example]], [[Template:MiscItemPage/AmmunitionExample]], [[Template:MiscItemPage/BooksExample]], [[Template:MiscItemPage/FoodExample]], [[Template:MiscItemPage/ScrollsExample]]
[[Category:Page Generating Templates]] [[Category:Item Page Templates]]
 
Examples follow.
 
= Ammunition =
 
{{MiscItemPage
| image = Ammunition Arrow Icon.png
| description = {{legendary|Arrow of Shootythings}} is a legendary piece of [[Ammunition]] that does shooty-type things. <!-- 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 = Ammunition <!-- 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. -->
| single use = yes
| rarity = legendary <!-- Choose from: common, uncommon, rare, very rare, legendary, story -->
| weight kg = 0.3
| weight lb = 0.7
| price = 36
| usage cost = 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. -->
* Deal an additional {{DamageText|1d4|Piercing}} damage to all creatures within the area of effect
* {{AOE|m=2|ft=6|Radius}}
* Create an [[Awesome Surface]]
* Target creature also takes normal {{code|Weapon Damage}} if the attack hits
| 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.
| this is an example = yes
}}


[[Category:Page Generating Templates]] [[Category:Item Page Templates]]
= Book =
 
{{MiscItemPage
| image = Book_WizardyGenericG.png
| description = '''Book of Wisdom and Insight and Deep Knowledge''' is a common [[Books|Book]]. <!-- This is the first text that will appear on the page. Briefly describe what the item is and what makes it noteworthy. -->
| quote = A weighty tome for sure.
| book text = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Tempor commodo ullamcorper a lacus vestibulum sed arcu non. Lacus laoreet non curabitur gravida arcu ac. Massa sapien faucibus et molestie ac feugiat sed. In dictum non consectetur a. Ultrices neque ornare aenean euismod elementum nisi quis. Non arcu risus quis varius quam quisque. Quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Turpis egestas pretium aenean pharetra. Mollis aliquam ut porttitor leo a diam sollicitudin tempor id. Fames ac turpis egestas integer eget aliquet nibh praesent tristique. Proin nibh nisl condimentum id. Tortor id aliquet lectus proin. Nunc consequat interdum varius sit amet mattis vulputate enim nulla.
 
Et ligula ullamcorper malesuada proin libero nunc consequat interdum. Pharetra magna ac placerat vestibulum lectus mauris ultrices eros. Augue neque gravida in fermentum et sollicitudin ac. Ultrices gravida dictum fusce ut placerat orci. At tellus at urna condimentum mattis pellentesque. Arcu risus quis varius quam quisque. Tellus cras adipiscing enim eu. Lacinia at quis risus sed vulputate odio ut enim. Orci a scelerisque purus semper eget duis at tellus at. Elit duis tristique sollicitudin nibh sit amet. Volutpat consequat mauris nunc congue. Aliquam malesuada bibendum arcu vitae elementum curabitur vitae. Aliquet nec ullamcorper sit amet risus nullam.
 
Senectus et netus et malesuada fames ac turpis egestas. Tincidunt id aliquet risus feugiat in ante. Mus mauris vitae ultricies leo integer malesuada. Netus et malesuada fames ac turpis egestas integer eget. Adipiscing elit pellentesque habitant morbi. Feugiat in fermentum posuere urna nec. Sit amet commodo nulla facilisi nullam vehicula ipsum a. Fermentum posuere urna nec tincidunt praesent semper feugiat nibh sed. Sed libero enim sed faucibus turpis in eu mi. Gravida neque convallis a cras semper auctor neque. Vitae aliquet nec ullamcorper sit amet risus nullam eget felis. Sollicitudin nibh sit amet commodo nulla. Sit amet volutpat consequat mauris nunc. Enim ut tellus elementum sagittis. Quam id leo in vitae. Vitae proin sagittis nisl rhoncus mattis.<!-- The text of the book. Leave EMPTY for non-books - use "quote" parameter for all other item types. -->
| type = Books <!-- 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 = common <!-- Choose from: common, uncommon, rare, very rare, legendary, story -->
| weight kg = 0.5
| weight lb = 1.1
| price = 10
| usage cost = <!-- 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. -->
| 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. If you could, it would probably be on some wizard's bookshelf.
| this is an example = yes
}}
 
= Food =
 
{{MiscItemPage
| image = Food Icon.png
| description = '''Delicious Apple''' is a common [[Camp Supplies#Food|Food]] item that grants [[Camp Supplies]] for a [[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 = Super tasty!
| book text = <!-- The text of the book. Leave EMPTY for non-books - use "quote" parameter for all other item types. -->
| type = Food <!-- Item type. Choose one of: Ammunition, Books, Food, Drinks, Potions, Scrolls, Consumables, Misc -->
| camp supplies = 5 <!-- Number of Camp Supplies. Leave EMPTY for all except Food and Drinks. -->
| rarity = common <!-- Choose from: common, uncommon, rare, very rare, legendary, story -->
| weight kg = 0.5
| weight lb = 1.1
| price = 5
| usage cost = <!-- 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. -->
| 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, but food like this is quite common.
| this is an example = yes
}}
 
= Scroll =
 
{{MiscItemPage
| image = Scroll of Revivify.png
| description = {{uncommon|Scroll of Castyspell}} is an uncommon [[Scrolls|Scroll]] that can be consumed to cast [[A Neat Spell]]. <!-- 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 = Scrolls <!-- 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. -->
| single use = yes
| rarity = uncommon <!-- Choose from: common, uncommon, rare, very rare, legendary, story -->
| weight kg = 0.1
| weight lb = 0.2
| price = 100
| usage cost = 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. -->
* Consume the scroll to cast {{SmallIcon|Magic Missile Icon.png}} [[A Neat Spell]]
* (Refer to the spell's page to determine whether the scroll takes an {{action}} or {{action|bonus}} to use.)
| 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.
| this is an example = yes
}}
 
= Potion =
 
{{MiscItemPage
| image = Potion_A_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. -->
| single use = yes <!-- "yes" if item is consumed on use (Ammunition, Consumables, Potions, Scrolls, some Drinks, and some Misc Items); otherwise leave BLANK. -->
| rarity = uncommon <!-- Choose from: common, uncommon, rare, very rare, legendary, story -->
| weight kg = 0.5
| weight lb = 1.1
| price = 100
| 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]]
| 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.
| this is an example = yes
}}
 
----


TemplateData documentation follows from this point on.
TemplateData documentation follows from this point on.
Line 107: Line 223:
{
{
"params": {
"params": {
"name": {
"description": "The name of the item; can be left empty if it's the page's name.",
"example": "Potion of Fire Resistance",
"type": "string",
"suggested": true
},
"image": {
"image": {
"description": "The filename of the image/icon associated with this item.",
"description": "The filename of the image/icon associated with this item.",

Navigation menu