Difference between revisions of "Template:Tt/Compu/Tabs"

From Corruption of Champions II
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>
+
<includeonly><center><table border=3; style="width:100%; text-align:center; valign:top">
<center><table border=3; style="width:100%; text-align:center; valign:top">
 
 
{{#switch:{{{1|}}}|MentDMG|PhysDMG|SpelDMG|TeasDMG|WeapDMG=<caption>Apply Defensive Reductions</caption>}}
 
{{#switch:{{{1|}}}|MentDMG|PhysDMG|SpelDMG|TeasDMG|WeapDMG=<caption>Apply Defensive Reductions</caption>}}
 
<tr><td>'''Attacker'''</td><td></td><td>'''Defender'''</td></tr>
 
<tr><td>'''Attacker'''</td><td></td><td>'''Defender'''</td></tr>
Line 14: Line 13:
 
{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK={{#switch:{{{2|}}}|Charm|Spell=<tr><td>+Catalyst Accuracy</td><td>'''Catalyst Bonus'''</td><td>/</td></tr>}}}}
 
{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK={{#switch:{{{2|}}}|Charm|Spell=<tr><td>+Catalyst Accuracy</td><td>'''Catalyst Bonus'''</td><td>/</td></tr>}}}}
 
{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK={{#if:{{{3|}}}{{{4|}}}|<tr><td>{{{3|}}}</td><td>'''Other Bonus'''</td><td>{{{4|}}}</td></tr>}}}}
 
{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK={{#if:{{{3|}}}{{{4|}}}|<tr><td>{{{3|}}}</td><td>'''Other Bonus'''</td><td>{{{4|}}}</td></tr>}}}}
</table></center>
+
</table></center></includeonly><noinclude>
</includeonly><noinclude>
 
 
==Documentation==
 
==Documentation==
 
*'''1st Parameter''' - Table Type (i.e. is it to calculate if an attack hits or to how damage is calculated)
 
*'''1st Parameter''' - Table Type (i.e. is it to calculate if an attack hits or to how damage is calculated)

Revision as of 10:53, 3 April 2025

Documentation

  • 1st Parameter - Table Type (i.e. is it to calculate if an attack hits or to how damage is calculated)
    • Attack Table: AoeATK EvaATK MagATK MenATK PhyATK TeaATK WeaATK
    • Damage Table: MentDMG PhysDMG SpelDMG TeasDMG WeapDMG
  • The next set of parameters depends on if its an attack or damage table:
    • Attack Table
      • 2nd Parameter - Includes catalyst bonus? (either Charm or Spell, or leave blank)
      • 3rd & 4th Parameter - If there are any other bonuses or negatives to the attacker's accuracy (3) or the target's defense (4)
    • Damage Table
      • 2nd Parameter - Name of the Element/Resistance type

Usage

This template is to be primarily used within Template:tt/Compu, hence it being an extension name.