Template:Item location table row: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (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...") |
HiddenDragon (talk | contribs) mNo edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<tr> | <tr> | ||
<td style="text-align: center; vertical-align: middle;"> | <td style="text-align: center; vertical-align: middle;">{{#if: {{{name|}}} | | ||
{{ItemIcon Internal | {{ItemIcon Internal | ||
|{{{icon}}} | |{{{icon|}}} | ||
|50 | |50 | ||
|{{#replace:{{{rarity}}}|<nowiki> </nowiki>|-}} | |{{#replace:{{{rarity|}}}|<nowiki> </nowiki>|-}} | ||
|true | |true | ||
|{{{page}}} | |{{{page}}} | ||
Line 17: | Line 17: | ||
| legendary = #B7861D | | legendary = #B7861D | ||
| story = #FF5901 | | story = #FF5901 | ||
}};">{{{name}}}</span> ]] | }};">{{{name|}}}</span> ]]}}{{#if: {{{weapons name|}}} | | ||
{{ItemIcon Internal | |||
|{{{weapons icon|}}} | |||
|50 | |||
|{{#replace:{{{weapons rarity|}}}|<nowiki> </nowiki>|-}} | |||
|true | |||
|{{{page}}} | |||
|missing=true}}<br> | |||
[[{{{page}}} | <span style="color: {{#switch: {{{weapons rarity|}}} | |||
| common = #FFFFFF | |||
| uncommon = #01BD39 | |||
| rare = #01BFFF | |||
| very rare = #D1017B | |||
| legendary = #B7861D | |||
| story = #FF5901 | |||
}};">{{{weapons name|}}}</span> ]]}} | |||
</td> | </td> | ||
<td> | <td> | ||
{{#if: {{{passives|}}} | | {{#if: {{{passives|}}} | | ||
{{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = htmlList }} | {{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive minimal | type = htmlList }} | ||
}}{{#if: {{{weapons passives|}}} | | |||
{{#invoke: ParseList | main | {{{weapons passives}}} | useTemplate = Passive minimal | type = htmlList }} | |||
}}{{#if: {{{passives main hand|}}} | {{blank}} | }}{{#if: {{{passives main hand|}}} | {{blank}} | ||
Main Hand Only | Main Hand Only | ||
{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = htmlList }} | {{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive minimal | type = htmlList }} | ||
}}{{#if: {{{passives off hand|}}} | {{blank}} | }}{{#if: {{{passives off hand|}}} | {{blank}} | ||
Off-Hand Only | Off-Hand Only | ||
{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = htmlList }} | {{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive minimal | type = htmlList }} | ||
}}{{#if: {{{special|}}} | {{blank}} | }}{{#if: {{{special|}}} | {{blank}} | ||
{{{special}}} | {{{special}}} | ||
}}{{#if: {{{weapons special|}}} | {{blank}} | |||
{{{weapons special}}} | |||
}}{{#if: {{{special weapon actions|}}} | {{blank}} | |||
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | type = none }} | |||
}} | }} | ||
</td> | </td> | ||
Line 88: | Line 109: | ||
}} | }} | ||
{{Item location table row | {{Item location table row | ||
| rarity=very rare | | weapons rarity=very rare | ||
| icon= | | weapons icon=Dagger PlusTwo Unfaded Icon.png | ||
| | | weapons name=Gleamdance Dagger | ||
| | | page=Gleamdance Dagger | ||
| passives = | | passives = Gleamdance Dagger: Glowing | ||
| special = * {{Armour Class}} +1 | | special = * {{Armour Class}} +1 | ||
| description=Rewarded by [[Alfira]] for successfully completing [[Rescue the Tieflings]] in [[Act Two]] | | description=Rewarded by [[Alfira]] for successfully completing [[Rescue the Tieflings]] in [[Act Two]] | ||
Line 105: | Line 126: | ||
{ | { | ||
"params": { | "params": { | ||
" | "page": { | ||
"description": " | "description": "Page of the item to link to.", | ||
"required": true, | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "name": { | ||
"description": "Name of the | "description": "Name of the item", | ||
"required": true, | "required": true, | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "rarity": { | ||
"description": " | "description": "Rarity of the item", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "common", | ||
"uncommon", | |||
"rare", | |||
"very rare", | |||
"legendary", | |||
"story" | |||
] | ] | ||
}, | }, | ||
" | "icon": { | ||
"description": " | "description": "File name of the icon of this item", | ||
"type": "string" | |||
}, | }, | ||
" | "passives": { | ||
"description": " | "description": "List of passives granted by this item", | ||
"type": "string" | |||
}, | }, | ||
"special": { | |||
"description": " | "description": "Any special features of this item", | ||
"type": "string" | |||
}, | }, | ||
" | "description": { | ||
"description": " | "description": "A description of where to find this item for this location", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "location": { | ||
"description": " | "description": "Name of the location where this item can be found.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "x": { | ||
"description": " | "description": "X-coordinate of this item in the location", | ||
"type": "number" | |||
" | |||
}, | }, | ||
" | "y": { | ||
"description": " | "description": "Y-coordinate of this item in the location", | ||
"type": " | "type": "number" | ||
} | } | ||
}, | }, | ||
"description": "Template to fill the rows of the | "description": "Template to fill the rows of the item location table. It is intended to use inside wikitable with appropriate columns.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"page", | |||
" | "name", | ||
" | "rarity", | ||
" | "icon", | ||
" | "passives", | ||
"special", | |||
"description", | |||
"location", | |||
"x", | |||
"y" | |||
" | |||
" | |||
" | |||
" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 08:38, 22 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 |
---|---|---|---|
|
Can be found on a table on the ground floor. |
Steel Watch Foundry |
|
|
Rewarded by Alfira for successfully completing Rescue the Tieflings in Act Two |
Last Light Inn |
template data
Template to fill the rows of the item location table. It is intended to use inside wikitable with appropriate columns.
Parameter | Description | Type | Status | |
---|---|---|---|---|
page | page | Page of the item to link to. | String | required |
name | name | Name of the item | String | required |
rarity | rarity | Rarity of the item
| String | optional |
icon | icon | File name of the icon of this item | String | optional |
passives | passives | List of passives granted by this item | String | optional |
special | special | Any special features of this item | String | optional |
description | description | A description of where to find this item for this location | String | optional |
location | location | Name of the location where this item can be found. | String | optional |
x | x | X-coordinate of this item in the location | Number | optional |
y | y | Y-coordinate of this item in the location | Number | optional |