From Dark and Darker Wiki

m (class page template calls documentation mockup)
m (use merge spells module)
 
(46 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Examples==
<tabber>
|-|Tab1=
content1
|-|Tab2=
content2
|-|{{TabNameTest}}=
content3
</tabber>


How to call an ability's tag value:
<pre>{{:Barbarian|AchillesStrike|PhysicalBaseDamage}}</pre>


{{:Barbarian|AchillesStrike|PhysicalBaseDamage}}
{{TabToggle|1|Tab1}}
{{TabToggle|2|Tab2}}
{{TabToggle|3|{{TabNameTest}}}}


If the ability doesn't exist:
<div class="1-data All-data" style="display:none;">
<pre>{{:Barbarian|Achilles Strike|PhysicalBaseDamage}}</pre>
content1</div>
<div class="2-data All-data" style="display:none;">
content2</div>
<div class="3-data All-data" style="display:none;">
content3</div>


{{:Barbarian|Achilles Strike|PhysicalBaseDamage}}


If the tag doesn't exist for that ability
<pre>{{:Barbarian|AchillesStrike|PhysicalDamage}}</pre>
{{:Barbarian|AchillesStrike|PhysicalDamage}}


==Why is it broken?==
Sort by the 2nd or 3rd column to see row contents duplicated.
The error mentioning that its broken can be displayed for a few reasons
{| class="wikitable sortable jquery-tablesorter ClassesTable" style="min-width:360px;>
* The ability name was spelled incorrectly/typo'd
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" colspan="2" | Name
* The ability' tag was spelled incorrectly/typo'd
! style="width:65%" class="headerSort" role="columnheader button" title="Sort ascending" | Description
* IronMace changed the ability's name
! style="width: 5%" class="headerSort" role="columnheader button" title="Sort ascending" | Casting Time
* IronMace changed the ability such that the ability no longer has that tag
|-
|style="border-bottom:none; border-right:none"| [[File:Icon_Spell ElectricDash.png|link=|96px]] <br> Component 1
|style="border-bottom:none; border-left:none"| [[File:Icon_Spell ElectricDash.png|link=|96px]] <br> Component 2
|rowspan="2"| {{:Sorcerer|desc=ElectricDash}}
|rowspan="2"| {{Ability_Data|ElectricDash|CastingTime}}
|-
|colspan="2" style="border-top:none"| [[File:Icon_Spell ElectricDash.png|link=|96px]] <br> Merge Spell
|-
|style="border-bottom:none; border-right:none"| [[File:Icon_Spell ElectricDash.png|link=|96px]] <br> Component 1
|style="border-bottom:none; border-left:none"| [[File:Icon_Spell ElectricDash.png|link=|96px]] <br> Component 2
|rowspan="2"| {{:Sorcerer|desc=ElectricDash}}
|rowspan="2"| {{Ability_Data|ElectricDash|CastingTime}}
|-
|colspan="2" style="border-top:none"| [[File:Icon_Spell ElectricDash.png|link=|96px]] <br> Merge Spell
|}


==How to fix==
Recommended to edit from a PC rather than mobile.


After signing in/creating a Wiki account, click the Pencil icon in the top right and click "Edit Source".<br>


Press Ctrl+F and search for "|abilityname" like "|achillesstrike" (no spaces), at the very bottom of the page you will see data that looks like...
{| class="wikitable sortable jquery-tablesorter ClassesTable" style="min-width:360px;>
Include Image
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Merge Spell
<br>
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Parent Spell 1
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Parent Spell 2
! style="width:65%" class="headerSort" role="columnheader button" title="Sort ascending" | Description
! style="width: 5%" class="headerSort" role="columnheader button" title="Sort ascending" | Casting Time
|-


As seen above, Achilles Strike's tags that can be called are PhysicalBaseDamage, Scaling, and Duration. Now, in the table (towards the middle of the Class page) where the description for "Achilles Strike" is written, correct the <pre>{{template call}}</pre> such that the tag is spelled correctly.
{{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt}}
As of writing this, Achilles Strike's description and scaling is written as
| {{:Sorcerer|desc=ElectricDash}}  
<pre><td> The next physical attack applies a debuff that lasts {{:Barbarian|AchillesStrike|HitslowDuration}}. During this debuff, the victim loses {{:Barbarian|AchillesStrike|HitslowMoveSpeed}}, and any step they take will inflict {{:Barbarian|AchillesStrike|PhysicalBaseDamage}}.</td>
| {{Ability_Data|ElectricDash|CastingTime}}
        <td> Damage per step: {{:Barbarian|AchillesStrike|Scaling}} </td>
|-
        <td> {{:Barbarian|AchillesStrike|SkillCooldown}} </td></pre>
{{#invoke:MergeSpells|draw_merge_recipe|ElectricDash}}
       
| {{:Sorcerer|desc=ElectricDash}}  
Which then appears as<br>
| {{Ability_Data|ElectricDash|CastingTime}}
Include Image
|}
 
 
==Case Sensitivity==
Template calls are not case sensitive, it can be full uppercase (BARBARIAN) or full lowercase (barbarian), but preferred to be propercase (Barbarian).
 
==Spaces==
Spaces are never present in the ability name nor the tag name. "AchillesStrike" is a valid ability, "Achilles Strike" is not.

Latest revision as of 00:54, 21 December 2024

content1

content2
content3


Tab1
Tab2
MyCoolTabName


Sort by the 2nd or 3rd column to see row contents duplicated.

Name Description Casting Time
Icon Spell ElectricDash.png
Component 1
Icon Spell ElectricDash.png
Component 2
Transform into a lightning orb and quickly move to the selected location within 7m, Electrifying all targets along the path and dealing 10 Lightning Lightning Magical Base Damage (100% Scaling). Upon reaching the destination, unleash a lightning strike, dealing 15 Lightning Lightning Magical Base Damage (100% Scaling) to nearby targets.

The caster is immune to physical attacks while moving but remains affected by area magic.

Electrified: The target loses -20% Move Speed Bonus for 1s.
2s
Icon Spell ElectricDash.png
Merge Spell
Icon Spell ElectricDash.png
Component 1
Icon Spell ElectricDash.png
Component 2
Transform into a lightning orb and quickly move to the selected location within 7m, Electrifying all targets along the path and dealing 10 Lightning Lightning Magical Base Damage (100% Scaling). Upon reaching the destination, unleash a lightning strike, dealing 15 Lightning Lightning Magical Base Damage (100% Scaling) to nearby targets.

The caster is immune to physical attacks while moving but remains affected by area magic.

Electrified: The target loses -20% Move Speed Bonus for 1s.
2s
Icon Spell ElectricDash.png
Merge Spell


Merge Spell Parent Spell 1 Parent Spell 2 Description Casting Time
Icon Spell ElementalBolt.png
Elemental Bolt
Icon Spell FireArrow.png
Fire Arrow
Icon Spell WaterBolt.png
Water Bolt
Transform into a lightning orb and quickly move to the selected location within 7m, Electrifying all targets along the path and dealing 10 Lightning Lightning Magical Base Damage (100% Scaling). Upon reaching the destination, unleash a lightning strike, dealing 15 Lightning Lightning Magical Base Damage (100% Scaling) to nearby targets.

The caster is immune to physical attacks while moving but remains affected by area magic.

Electrified: The target loses -20% Move Speed Bonus for 1s.
2s
Icon Spell ElectricDash.png
Electric Dash
Icon Spell Vortex.png
Vortex
Icon Spell LightningBolt.png
Lightning Bolt
Transform into a lightning orb and quickly move to the selected location within 7m, Electrifying all targets along the path and dealing 10 Lightning Lightning Magical Base Damage (100% Scaling). Upon reaching the destination, unleash a lightning strike, dealing 15 Lightning Lightning Magical Base Damage (100% Scaling) to nearby targets.

The caster is immune to physical attacks while moving but remains affected by area magic.

Electrified: The target loses -20% Move Speed Bonus for 1s.
2s