|
|
Line 1: |
Line 1: |
| <includeonly><div style="background: linear-gradient(to bottom,{{#switch:{{{rarity}}}
| |
| | uncommon = #004915
| |
| | rare = #003749
| |
| | very rare = #540032
| |
| | legendary = #563E0D
| |
| | story = #561D00
| |
| | #1B1A19
| |
| }}, #1B1A19, #1B1A19, #402951); box-shadow: rgba(0, 0, 0, 0.14) 3px 3px 6px 0px inset, rgba(0, 0, 0, 0.14) -3px -3px 6px 1px inset; border: 0.15rem solid #785000; border-radius:10px; padding: 15px;"><div style="color: #BA915B">{{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] }}
| |
| {{#seo:
| |
| | type = article
| |
| | image = {{{image|}}}
| |
| | description = {{MiscItemPage/Description
| |
| | type = {{{type}}}
| |
| | rarity = {{{rarity|}}}
| |
| }}
| |
| }}
| |
| {{{description}}}
| |
| {{#if:{{{quote|}}}|
| |
| {{quote|{{{quote|Missing quote ... imagine some nice flavour text here.}}}}}
| |
| }}
| |
| {{#if:{{{where to find|}}}|
| |
| == Where to Find ==
| |
| {{{where to find}}}
| |
| }}
| |
| {{#if:{{{book text|}}}|
| |
| == Text ==
| |
| {{quote|size=100%|noitalics=yes|{{{book text}}}}}
| |
| }}
| |
| == Properties ==
| |
| * {{#switch: {{{type|}}}
| |
| | Ammunition = {{SmallIcon|Ammunition Icon.png}} [[Ammunition]]
| |
| | Books = {{Books}}
| |
| | Food = {{Food}}
| |
| | Drinks = {{Drinks}}
| |
| | Potions = {{Potions}}
| |
| | Scrolls = {{Scrolls}}
| |
| | Consumables = {{Consumables}}
| |
| | Misc = Miscellaneous Items
| |
| | #default = [[{{{type}}}]] }} {{#if: {{{camp supplies|}}}|
| |
| * {{Camp Supplies}}: {{{camp supplies}}}
| |
| }} {{#if: {{{single use|}}}|
| |
| * {{SmallIcon|Consumables Icon.png}} Single Use
| |
| }}
| |
| * {{Rarity | {{{rarity|common}}} }}
| |
| * {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
| |
| * {{Price | {{{price}}} }}
| |
| {{#if: {{{effect|}}} |
| |
| === Effect ===
| |
| {{#switch: {{{usage cost|}}}
| |
| | action = {{InfoBlob|{{action}}}}
| |
| | bonus action = {{InfoBlob|{{action|bonus}}}}
| |
| | #default =
| |
| }}
| |
| {{{effect}}}
| |
| }}
| |
|
| |
|
| {{#switch: {{{nocategories|}}} <!-- Just for examples of use. -->
| |
| | yes =
| |
| | #default = {{#ifeq: {{{type}}} | Misc | [[Category:Misc Items]] | [[Category:{{{type}}}]] }} [[Category:{{{rarity|common}}} Items]]
| |
| }}</div>
| |
| {{clear}}
| |
| </div></includeonly><noinclude><!--
| |
|
| |
| ==== Documentation follows ====
| |
|
| |
| -->
| |
| 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).'''
| |
|
| |
| <pre>
| |
| {{MiscItemPage
| |
| | <!-- See here for tips on how to use this template: https://bg3.wiki/wiki/Template:MiscItemPage -->
| |
| | image =
| |
| | description =
| |
| | quote = The in-game flavour text in the item's tooltip.
| |
| | book text =
| |
| | type =
| |
| | camp supplies =
| |
| | single use =
| |
| | rarity =
| |
| | weight kg =
| |
| | weight lb =
| |
| | price =
| |
| | usage cost =
| |
| | effect =
| |
| | where to find =
| |
| }}
| |
| </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]]
| |
|
| |
| TemplateData documentation follows from this point on.
| |
|
| |
| ----
| |
|
| |
| <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": "content",
| |
| "required": true,
| |
| "suggested": true
| |
| },
| |
| "quote": {
| |
| "description": "The in-game flavour text in the item's tooltip.",
| |
| "type": "content",
| |
| "suggested": true
| |
| },
| |
| "book text": {
| |
| "description": "The text within the book. Leave EMPTY for non-books - use \"quote\" parameter for tooltip flavour text.",
| |
| "type": "content",
| |
| "suggested": true
| |
| },
| |
| "where to find": {
| |
| "description": "Describe where and how to obtain the item.",
| |
| "example": "Looted from [[NPC]] in [[Location]].",
| |
| "type": "content",
| |
| "suggested": true
| |
| },
| |
| "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,
| |
| "suggested": true
| |
| },
| |
| "camp supplies": {
| |
| "description": "Number of Camp Supplies. Leave EMPTY for all except Food and Drinks.",
| |
| "type": "number",
| |
| "suggested": true
| |
| },
| |
| "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
| |
| },
| |
| "effect": {
| |
| "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]]",
| |
| "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
| |
| },
| |
| "single use": {
| |
| "type": "string",
| |
| "description": "\"yes\" if item is consumed on use (Ammunition, Consumables, Potions, Scrolls, some Drinks, and some Misc Items); otherwise leave BLANK.",
| |
| "suggestedvalues": [
| |
| "yes"
| |
| ],
| |
| "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>
| |