From Dark and Darker Wiki
m (Snowpaw moved page Template:StatsCardWeaponTabs to Template:InfoboxWeaponTabs without leaving a redirect) |
No edit summary |
||
Line 5: | Line 5: | ||
<div data-cardtabs-panel="1" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|1||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="1" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|1||cardtabs__panel--js-hidden}}"> | ||
{{Infobox Weapon | {{Infobox Weapon | ||
| name = {{{ | | name = {{{name|}}} | ||
| classes = {{{ | | classes = {{{classes|}}} | ||
| damage = {{{damage1|}}} | | damage = {{{damage1|}}} | ||
| rarity = 0 | | rarity = 0 | ||
| movementspeed = {{{ | | movementspeed = {{{movementspeed|}}} | ||
| combo = {{{ | | combo = {{{combo|}}} | ||
| combodamage = {{{ | | combodamage = {{{combodamage|}}} | ||
| attackspeed = {{{ | | attackspeed = {{{attackspeed|}}} | ||
| sweetsour = {{{ | | sweetsour = {{{sweetsour|}}} | ||
| actionmovementspeed = {{{ | | actionmovementspeed = {{{actionmovementspeed|}}} | ||
}} | }} | ||
</div> | </div> | ||
Line 20: | Line 20: | ||
<div data-cardtabs-panel="2" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|2||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="2" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|2||cardtabs__panel--js-hidden}}"> | ||
{{Infobox Weapon | {{Infobox Weapon | ||
| name = {{{ | | name = {{{name|}}} | ||
| classes = {{{ | | classes = {{{classes|}}} | ||
| damage = {{{damage2|{{{damage1|}}}}}} | | damage = {{{damage2|{{{damage1|}}}}}} | ||
| rarity = 1 | | rarity = 1 | ||
| movementspeed = {{{ | | movementspeed = {{{movementspeed|}}} | ||
| combo = {{{ | | combo = {{{combo|}}} | ||
| combodamage = {{{ | | combodamage = {{{combodamage|}}} | ||
| attackspeed = {{{ | | attackspeed = {{{attackspeed|}}} | ||
| sweetsour = {{{ | | sweetsour = {{{sweetsour|}}} | ||
| actionmovementspeed = {{{ | | actionmovementspeed = {{{actionmovementspeed|}}} | ||
}} | }} | ||
</div> | </div> | ||
Line 35: | Line 35: | ||
<div data-cardtabs-panel="3" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|3||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="3" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|3||cardtabs__panel--js-hidden}}"> | ||
{{Infobox Weapon | {{Infobox Weapon | ||
| name = {{{ | | name = {{{name|}}} | ||
| classes = {{{ | | classes = {{{classes|}}} | ||
| damage = {{{damage3|{{{damage2|{{{damage1|}}}}}}}}} | | damage = {{{damage3|{{{damage2|{{{damage1|}}}}}}}}} | ||
| rarity = 2 | | rarity = 2 | ||
| movementspeed = {{{ | | movementspeed = {{{movementspeed|}}} | ||
| combo = {{{ | | combo = {{{combo|}}} | ||
| combodamage = {{{ | | combodamage = {{{combodamage|}}} | ||
| attackspeed = {{{ | | attackspeed = {{{attackspeed|}}} | ||
| sweetsour = {{{ | | sweetsour = {{{sweetsour|}}} | ||
| actionmovementspeed = {{{ | | actionmovementspeed = {{{actionmovementspeed|}}} | ||
}} | }} | ||
</div> | </div> | ||
Line 50: | Line 50: | ||
<div data-cardtabs-panel="4" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|4||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="4" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|4||cardtabs__panel--js-hidden}}"> | ||
{{Infobox Weapon | {{Infobox Weapon | ||
| name = {{{ | | name = {{{name|}}} | ||
| classes = {{{ | | classes = {{{classes|}}} | ||
| damage = {{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}} | | damage = {{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}} | ||
| rarity = 3 | | rarity = 3 | ||
| movementspeed = {{{ | | movementspeed = {{{movementspeed|}}} | ||
| combo = {{{ | | combo = {{{combo|}}} | ||
| combodamage = {{{ | | combodamage = {{{combodamage|}}} | ||
| attackspeed = {{{ | | attackspeed = {{{attackspeed|}}} | ||
| sweetsour = {{{ | | sweetsour = {{{sweetsour|}}} | ||
| actionmovementspeed = {{{ | | actionmovementspeed = {{{actionmovementspeed|}}} | ||
}} | }} | ||
</div> | </div> | ||
Line 65: | Line 65: | ||
<div data-cardtabs-panel="5" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|5||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="5" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|5||cardtabs__panel--js-hidden}}"> | ||
{{Infobox Weapon | {{Infobox Weapon | ||
| name = {{{ | | name = {{{name|}}} | ||
| classes = {{{ | | classes = {{{classes|}}} | ||
| damage = {{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}} | | damage = {{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}} | ||
| rarity = 4 | | rarity = 4 | ||
| movementspeed = {{{ | | movementspeed = {{{movementspeed|}}} | ||
| combo = {{{ | | combo = {{{combo|}}} | ||
| combodamage = {{{ | | combodamage = {{{combodamage|}}} | ||
| attackspeed = {{{ | | attackspeed = {{{attackspeed|}}} | ||
| sweetsour = {{{ | | sweetsour = {{{sweetsour|}}} | ||
| actionmovementspeed = {{{ | | actionmovementspeed = {{{actionmovementspeed|}}} | ||
}} | }} | ||
</div> | </div> | ||
Line 80: | Line 80: | ||
<div data-cardtabs-panel="6" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|6||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="6" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|6||cardtabs__panel--js-hidden}}"> | ||
{{Infobox Weapon | {{Infobox Weapon | ||
| name = {{{ | | name = {{{name|}}} | ||
| classes = {{{ | | classes = {{{classes|}}} | ||
| damage = {{{damage6|{{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}} | | damage = {{{damage6|{{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}} | ||
| rarity = 5 | | rarity = 5 | ||
| movementspeed = {{{ | | movementspeed = {{{movementspeed|}}} | ||
| combo = {{{ | | combo = {{{combo|}}} | ||
| combodamage = {{{ | | combodamage = {{{combodamage|}}} | ||
| attackspeed = {{{ | | attackspeed = {{{attackspeed|}}} | ||
| sweetsour = {{{ | | sweetsour = {{{sweetsour|}}} | ||
| actionmovementspeed = {{{ | | actionmovementspeed = {{{actionmovementspeed|}}} | ||
}} | }} | ||
</div> | </div> | ||
Line 95: | Line 95: | ||
<div data-cardtabs-panel="7" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|7||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="7" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|7||cardtabs__panel--js-hidden}}"> | ||
{{Infobox Weapon | {{Infobox Weapon | ||
| name = {{{ | | name = {{{name|}}} | ||
| classes = {{{ | | classes = {{{classes|}}} | ||
| damage = {{{classes7|{{{damage6|{{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}}}} | | damage = {{{classes7|{{{damage6|{{{damage5|{{{damage4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}}}} | ||
| rarity = 6 | | rarity = 6 | ||
| movementspeed = {{{ | | movementspeed = {{{movementspeed|}}} | ||
| combo = {{{ | | combo = {{{combo|}}} | ||
| combodamage = {{{ | | combodamage = {{{combodamage|}}} | ||
| attackspeed = {{{ | | attackspeed = {{{attackspeed|}}} | ||
| sweetsour = {{{ | | sweetsour = {{{sweetsour|}}} | ||
| actionmovementspeed = {{{ | | actionmovementspeed = {{{actionmovementspeed|}}} | ||
}} | }} | ||
</div> | </div> | ||
Line 110: | Line 110: | ||
<div data-cardtabs-panel="8" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|8||cardtabs__panel--js-hidden}}"> | <div data-cardtabs-panel="8" class="cardtabs__panel {{#ifeq:{{{firstShownTier|}}}|8||cardtabs__panel--js-hidden}}"> | ||
{{Infobox Weapon | {{Infobox Weapon | ||
| name = {{{ | | name = {{{name|}}} | ||
| classes = {{{ | | classes = {{{classes|}}} | ||
| damage = {{{damage8|{{{damage7|{{{damage6|{{{damage5|{{{damages4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}}}}}}} | | damage = {{{damage8|{{{damage7|{{{damage6|{{{damage5|{{{damages4|{{{damage3|{{{damage2|{{{damage1|}}}}}}}}}}}}}}}}}}}}}}}} | ||
| rarity = 7 | | rarity = 7 | ||
| movementspeed = {{{ | | movementspeed = {{{movementspeed|}}} | ||
| combo = {{{ | | combo = {{{combo|}}} | ||
| combodamage = {{{ | | combodamage = {{{combodamage|}}} | ||
| attackspeed = {{{ | | attackspeed = {{{attackspeed|}}} | ||
| sweetsour = {{{ | | sweetsour = {{{sweetsour|}}} | ||
| actionmovementspeed = {{{ | | actionmovementspeed = {{{actionmovementspeed|}}} | ||
}} | }} | ||
</div> | </div> | ||
Line 151: | Line 151: | ||
--></includeonly></onlyinclude><noinclude> | --></includeonly></onlyinclude><noinclude> | ||
Creates a set of tabs for a weapon. | |||
== Notes == | |||
If you don't include a damage value for a tier, the previous tier's value will be used instead. This means you only need to enter data for, for example, name only once (with <code>damage1</code>). | |||
The <code>firstShownTier</code> option is mandatory. Leaving it out will prevent anything from being shown. | |||
== Example == | == Example == | ||
<table class="wikitable"> | <table class="wikitable"> | ||
Line 163: | Line 170: | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
<pre> | <pre> | ||
{{InfoboxWeaponTabs | |||
|name = Arming Sword | |||
|classes = [[Fighter]], [[Ranger]] | |||
| name | |||
| classes | |||
|damage1 = 30 | |damage1 = 30 | ||
|damage2 = 123 | |damage2 = 123 | ||
Line 205: | Line 182: | ||
|damage7 = 1231231231 | |damage7 = 1231231231 | ||
|damage8 = 123123123123 | |damage8 = 123123123123 | ||
| | |movementspeed = -20 | ||
| | |combo = Slash/Slash/Thrust | ||
| | |combodamage = 100%/100%/100% | ||
| | |attackspeed = 0.6s/0.56s/0.75s | ||
| | |sweetsour = 100%/90%/70% | ||
| | |actionmovementspeed = Attack: -25% | ||
| firstShownTier = 1 | | firstShownTier = 1 | ||
| tier1disabled = 0 | | tier1disabled = 0 | ||
Line 222: | Line 199: | ||
}}</pre></td> | }}</pre></td> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
{{ | {{InfoboxWeaponTabs | ||
| | |name = Arming Sword | ||
| | |classes = [[Fighter]], [[Ranger]] | ||
|damage1 = 30 | |damage1 = 30 | ||
|damage2 = 123 | |damage2 = 123 | ||
Line 233: | Line 210: | ||
|damage7 = 1231231231 | |damage7 = 1231231231 | ||
|damage8 = 123123123123 | |damage8 = 123123123123 | ||
| | |movementspeed = -20 | ||
| | |combo = Slash/Slash/Thrust | ||
| | |combodamage = 100%/100%/100% | ||
| | |attackspeed = 0.6s/0.56s/0.75s | ||
| | |sweetsour = 100%/90%/70% | ||
| | |actionmovementspeed = Attack: -25% | ||
| firstShownTier = 1 | | firstShownTier = 1 | ||
| tier1disabled = 0 | | tier1disabled = 0 | ||
Line 252: | Line 229: | ||
</tr> | </tr> | ||
</table> | </table> | ||
</noinclude> | |||
== All Options == | |||
The full list of options are listed below. Please don't leave anything blank though, else the previous tier's values won't get used (ie., only include options if you use them). | |||
<pre style="display: inline-block;"> | |||
{{StatsCardWeaponTabs | |||
|name = | |||
|classes = | |||
|damage1 = | |||
|damage2 = | |||
|damage3 = | |||
|damage4 = | |||
|damage5 = | |||
|damage6 = | |||
|damage7 = | |||
|damage8 = | |||
|movementspeed = | |||
|combo = | |||
|combodamage = | |||
|attackspeed = | |||
|sweetsour = | |||
|actionmovementspeed = | |||
| firstShownTier = | |||
| tier1disabled = | |||
| tier2disabled = | |||
| tier3disabled = | |||
| tier4disabled = | |||
| tier5disabled = | |||
| tier6disabled = | |||
| tier7disabled = | |||
| tier8disabled = | |||
}} | |||
</pre> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"firstShownTier": { | |||
"label": "First Shown Tier", | |||
"description": "Either 1, 2, 3, or 4. Should always be 1, unless a lower tier is disabled", | |||
"example": "1", | |||
"type": "number", | |||
"autovalue": "1", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"tier1disabled": { | |||
"label": "Disable Tier 1?", | |||
"type": "boolean", | |||
"suggested": true, | |||
"description": "If enabled, Tier 1 won't be clickable. Make sure you also change the First Shown Tier to 2 (or 3/4)" | |||
}, | |||
"tier2disabled": { | |||
"label": "Disable Tier 2?", | |||
"type": "boolean", | |||
"suggested": true, | |||
"description": "If enabled, Tier 2 won't be clickable. Make sure you also change the First Shown Tier to 3 (or 4)" | |||
}, | |||
"tier3disabled": { | |||
"label": "Disable Tier 3?", | |||
"type": "boolean", | |||
"suggested": true, | |||
"description": "If enabled, Tier 3 won't be clickable. Make sure you also change the First Shown Tier to 4" | |||
}, | |||
"tier4disabled": { | |||
"label": "Disable Tier 4?", | |||
"type": "boolean", | |||
"suggested": true | |||
}, | |||
"tier5disabled": { | |||
"label": "Disable Tier 5?", | |||
"type": "boolean", | |||
"suggested": true | |||
}, | |||
"tier6disabled": { | |||
"label": "Disable Tier 6?", | |||
"type": "boolean", | |||
"suggested": true | |||
}, | |||
"tier7disabled": { | |||
"label": "Disable Tier 7?", | |||
"type": "boolean", | |||
"suggested": true | |||
}, | |||
"tier8disabled": { | |||
"label": "Disable Tier 8?", | |||
"type": "boolean", | |||
"suggested": true | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"example": "Arming Sword", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"classes": { | |||
"label": "Classes", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"damage1": { | |||
"label": "Damage - Tier 1", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"damage2": { | |||
"label": "Damage - Tier 2", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"damage3": { | |||
"label": "Damage - Tier 3", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"damage4": { | |||
"label": "Damage - Tier 4", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"damage5": { | |||
"label": "Damage - Tier 5", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"damage6": { | |||
"label": "Damage - Tier 6", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"damage7": { | |||
"label": "Damage - Tier 7", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"damage8": { | |||
"label": "Damage - Tier 8", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"movementspeed": { | |||
"label": "Movement speed", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"combo": { | |||
"label": "Combo", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"combodamage": { | |||
"label": "Combo damage", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"attackspeed": { | |||
"label": "Attackspeed", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"sweetsour": { | |||
"label": "Sweet and Sour spots", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"actionmovementspeed": { | |||
"label": "Action movement speed", | |||
"type": "string", | |||
"suggested": true | |||
} | |||
}, | |||
"paramOrder": [ | |||
"name", | |||
"classes", | |||
"damage1", | |||
"damage2", | |||
"damage3", | |||
"damage4", | |||
"damage5", | |||
"damage6", | |||
"damage7", | |||
"damage8", | |||
"movementspeed", | |||
"combo", | |||
"combodamage", | |||
"attackspeed", | |||
"sweetsour", | |||
"actionmovementspeed", | |||
"firstShownTier", | |||
"tier1disabled", | |||
"tier2disabled", | |||
"tier3disabled", | |||
"tier4disabled", | |||
"tier5disabled", | |||
"tier6disabled", | |||
"tier7disabled", | |||
"tier8disabled" | |||
] | |||
} | |||
</templatedata></noinclude> |
Revision as of 05:05, 4 February 2023
Creates a set of tabs for a weapon.
Notes
If you don't include a damage value for a tier, the previous tier's value will be used instead. This means you only need to enter data for, for example, name only once (with damage1
).
The firstShownTier
option is mandatory. Leaving it out will prevent anything from being shown.
Example
Code | Preview |
---|---|
{{InfoboxWeaponTabs |name = Arming Sword |classes = [[Fighter]], [[Ranger]] |damage1 = 30 |damage2 = 123 |damage3 = 12333 |damage4 = 123233 |damage5 = 1232333 |damage6 = 123123123 |damage7 = 1231231231 |damage8 = 123123123123 |movementspeed = -20 |combo = Slash/Slash/Thrust |combodamage = 100%/100%/100% |attackspeed = 0.6s/0.56s/0.75s |sweetsour = 100%/90%/70% |actionmovementspeed = Attack: -25% | firstShownTier = 1 | tier1disabled = 0 | tier2disabled = 0 | tier3disabled = 0 | tier4disabled = 0 | tier5disabled = 0 | tier6disabled = 0 | tier7disabled = 0 | tier8disabled = 0 }} |
Arming Sword
Arming Sword
Arming Sword
Arming Sword
Arming Sword
Arming Sword
Arming Sword
|
All Options
The full list of options are listed below. Please don't leave anything blank though, else the previous tier's values won't get used (ie., only include options if you use them).
{{StatsCardWeaponTabs |name = |classes = |damage1 = |damage2 = |damage3 = |damage4 = |damage5 = |damage6 = |damage7 = |damage8 = |movementspeed = |combo = |combodamage = |attackspeed = |sweetsour = |actionmovementspeed = | firstShownTier = | tier1disabled = | tier2disabled = | tier3disabled = | tier4disabled = | tier5disabled = | tier6disabled = | tier7disabled = | tier8disabled = }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | no description
| String | required |
Classes | classes | no description | String | suggested |
Damage - Tier 1 | damage1 | no description | String | required |
Damage - Tier 2 | damage2 | no description | String | suggested |
Damage - Tier 3 | damage3 | no description | String | suggested |
Damage - Tier 4 | damage4 | no description | String | suggested |
Damage - Tier 5 | damage5 | no description | String | suggested |
Damage - Tier 6 | damage6 | no description | String | suggested |
Damage - Tier 7 | damage7 | no description | String | suggested |
Damage - Tier 8 | damage8 | no description | String | suggested |
Movement speed | movementspeed | no description | String | suggested |
Combo | combo | no description | String | suggested |
Combo damage | combodamage | no description | String | suggested |
Attackspeed | attackspeed | no description | String | suggested |
Sweet and Sour spots | sweetsour | no description | String | suggested |
Action movement speed | actionmovementspeed | no description | String | suggested |
First Shown Tier | firstShownTier | Either 1, 2, 3, or 4. Should always be 1, unless a lower tier is disabled
| Number | required |
Disable Tier 1? | tier1disabled | If enabled, Tier 1 won't be clickable. Make sure you also change the First Shown Tier to 2 (or 3/4) | Boolean | suggested |
Disable Tier 2? | tier2disabled | If enabled, Tier 2 won't be clickable. Make sure you also change the First Shown Tier to 3 (or 4) | Boolean | suggested |
Disable Tier 3? | tier3disabled | If enabled, Tier 3 won't be clickable. Make sure you also change the First Shown Tier to 4 | Boolean | suggested |
Disable Tier 4? | tier4disabled | no description | Boolean | suggested |
Disable Tier 5? | tier5disabled | no description | Boolean | suggested |
Disable Tier 6? | tier6disabled | no description | Boolean | suggested |
Disable Tier 7? | tier7disabled | no description | Boolean | suggested |
Disable Tier 8? | tier8disabled | no description | Boolean | suggested |