Template:Item location table row: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly> <tr> <td style="text-align: center; vertical-align: middle;"> {{ItemIcon Internal |{{{icon}}} |50 |{{#replace:{{{rarity}}}|<nowiki> </nowiki>|-}} |true |{{{page}}} |missing=true}}<br> [[{{{page}}} | <span style="color: {{#switch: {{{rarity}}} | common = #FFFFFF | uncommon = #01BD39 | rare = #01BFFF | very rare = #D1017B | legendary = #B7861D | story = #FF5901 }};">{{{name}}}</span> ]] </td> <td> {{#if: {{{passives|}}} | {{#invoke: ParseList | main | {{{pa...")
 
mNo edit summary
Line 105: Line 105:
{
{
"params": {
"params": {
"controller icon": {
"page": {
"description": "File name of the spell's icon.",
"description": "Page of the item to link to.",
            "required": true,
"type": "string"
"type": "string"
},
},
"spell": {
"name": {
"description": "Name of the spell",
"description": "Name of the item",
"required": true,
"required": true,
"type": "string"
"type": "string"
},
},
"conc": {
"rarity": {
"description": "If specified, marks spell as requiring concentration.",
"description": "Rarity of the item",
"type": "boolean",
"suggestedvalues": [
"required"
]
},
"casttime": {
"description": "Casting time of the Spell",
"default": "{{Action}}",
"suggestedvalues": [
"{{Action|bonus}}",
"{{Action|reaction}}",
"{{Action}} +{{Action|bonus}}"
]
},
"duration": {
"description": " Duration of the spell.",
"suggestedvalues": [
"1",
"2",
"3",
"10",
"100",
"longrest"
]
},
"range": {
"description": "Range of the spell separated by \"/\".",
"example": "9/30 to get 9m/30ft.",
"default": "18/60",
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
"self",
"common",
"melee",
                "uncommon",
"touch",
                "rare",
"weapon",
                "very rare",
"9/30"
                "legendary",
                "story"
]
]
},
},
"area": {
"icon": {
"description": "AoE range of the spell separated by \"/\".",
"description": "File name of the icon of this item",
"type": "string"
            "type": "string"
},
},
"aoe": {
"passives": {
"description": "AoE type of the spell.",
"description": "List of passives granted by this item",
"type": "string",
            "type": "string"
"suggestedvalues": [
"radius",
"cone",
"cube"
],
"default": "radius"
},
},
"attack": {
        "special": {
"description": "Does spell require an attack roll.",
"description": "Any special features of this item",
"type": "string",
            "type": "string"
"suggestedvalues": [
"yes",
"no"
]
},
},
"save": {
"description": {
"description": "Does spell require a saving throw against its DC.",
"description": "A description of where to find this item for this location",
"suggestedvalues": [
"STR",
"DEX",
"CON",
"INT",
"WIS",
"CHA"
],
"type": "string"
"type": "string"
},
},
"damage": {
"location": {
"description": "Type of the damage dealt by the Spell.",
"description": "Name of the location where this item can be found.",
"suggestedvalues": [
"Slashing",
"Piercing",
"Bludgeoning",
"Cold",
"Fire",
"Acid",
"Lightning",
"Force",
"Poison",
"Thunder",
"Radiant",
"Necrotic",
"Psychic"
],
"type": "string"
"type": "string"
},
},
"ritual": {
"x": {
"description": "If specified, marks spell as ritual.",
"description": "X-coordinate of this item in the location",
"type": "boolean"
"type": "number"
},
"level": {
"description": "The level of the spell.",
"suggestedvalues": [
"1",
"2",
"3",
"4",
"5",
"6",
"Cantrip"
]
},
},
"upcastable": {
"y": {
"description": "If specified, adds the upcastable marker next to the level.",
"description": "Y-coordinate of this item in the location",
"type": "boolean"
"type": "number"
}
}
},
},
"description": "Template to fill the rows of the Spell list table. It is intended to use inside wikitable with appropriate columns.",
"description": "Template to fill the rows of the item location table. It is intended to use inside wikitable with appropriate columns.",
"paramOrder": [
"paramOrder": [
"spell",
        "page",
"level",
"name",
"upcastable",
"rarity",
"controller icon",
"icon",
"conc",
"passives",
"ritual",
        "special",
"casttime",
"description",
"duration",
"location",
"range",
"x",
"area",
"y"
"aoe",
"attack",
"save",
"damage"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 09:37, 16 August 2024

Example:

{{Item location table row
| rarity=rare
| icon=Steelwatcher Helmet Unfaded Icon.png
| page=Steelwatcher Helmet
| name=Steel Watcher Helmet
| passives = Artificial Sight
| special = * {{Advantage}} on [[Constitution]] [[saving throws]]
| description=Can be found on a table on the ground floor.
| location=Steel Watch Foundry
| x=-275
| y=-134
}}
{{Item location table row
| rarity=very rare
| icon=Potent Robe Unfaded Icon.png
| page=Potent Robe
| name=Potent Robe
| passives = Gregarious Caster, Well-Liked and Well-Fortified
| special = * {{Armour Class}} +1
| description=Rewarded by [[Alfira]] for successfully completing [[Rescue the Tieflings]] in [[Act Two]]
| location=Last Light Inn
| x=-64
| y=-141
}}

Result:

Item Name Item Effect Where to Find Location


Steel Watcher Helmet

Can be found on a table on the ground floor.

Steel Watch Foundry
X: -275 Y: -134


Potent Robe

Rewarded by Alfira for successfully completing Rescue the Tieflings in Act Two

Last Light Inn
X: -64 Y: -141

template data

Template to fill the rows of the item location table. It is intended to use inside wikitable with appropriate columns.

Template parameters

ParameterDescriptionTypeStatus
pagepage

Page of the item to link to.

Stringrequired
namename

Name of the item

Stringrequired
rarityrarity

Rarity of the item

Suggested values
common uncommon rare very rare legendary story
Stringoptional
iconicon

File name of the icon of this item

Stringoptional
passivespassives

List of passives granted by this item

Stringoptional
specialspecial

Any special features of this item

Stringoptional
descriptiondescription

A description of where to find this item for this location

Stringoptional
locationlocation

Name of the location where this item can be found.

Stringoptional
xx

X-coordinate of this item in the location

Numberoptional
yy

Y-coordinate of this item in the location

Numberoptional