• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:Formula"

From Kancolle Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{|style="padding:10px; margin:20px; border:1px solid orange; border-radius:10px"
+
<includeonly>
|valign="center"|<math>{{{1}}}</math>
+
{|class="wikitable mw-collapsible mw-collapsed" width="100%"
 +
!{{{Title|}}}
 +
|-
 +
|
 +
{|style="padding:10px; margin:20px; border:1px solid orange; border-radius:10px"
 +
|valign="center"| {{#tag:math|{{{Math|}}}}}
 +
|}
 +
{{#if:{{{Var|}}}|
 +
;With}}
 +
*{{{Var|}}}
 +
{{#if:{{{Notes|}}}|
 +
{{!}}-
 +
{{!}}
 +
;Notes}}
 +
*{{{Notes|}}}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 +
 
Displays the Formulas as:
 
Displays the Formulas as:
*{{Formula|\text{Damage} = \biggl \lfloor \biggl ( \text{Atk}_\text{post-cap}  - \text{DEF} \biggr ) \times \text{Ammo} \biggr \rfloor}}
+
 
 +
{{Formula
 +
|Title=Damage Formula
 +
|Math=\text{Damage} = \biggl \lfloor \biggl ( \text{Atk}_\text{post-cap}  - \text{DEF} \biggr ) \times \text{Ammo} \biggr \rfloor
 +
|Var=<math>\text{Atk}_\text{post-cap}</math> the final attack power of the assailant after the cap and all the modifers have been applied,
 +
* <math>\text{DEF}</math> the '''[[#Defense Power|defensive power]]''' of the target,
 +
* <math>\text{Ammo}</math> the '''[[#Ammunition Modifier|remaining ammunition]]''' modifier.
 +
|Notes=test
 +
}}
 +
<!--
 +
{{Formula
 +
|Title=
 +
|Math=
 +
|Var=
 +
|Notes=
 +
}}
 +
-->
 
</noinclude>
 
</noinclude>

Latest revision as of 10:19, 7 August 2023


Displays the Formulas as:


Damage Formula
[math]\displaystyle{ \text{Damage} = \biggl \lfloor \biggl ( \text{Atk}_\text{post-cap} - \text{DEF} \biggr ) \times \text{Ammo} \biggr \rfloor }[/math]
With
  • [math]\displaystyle{ \text{Atk}_\text{post-cap} }[/math] the final attack power of the assailant after the cap and all the modifers have been applied,
  • [math]\displaystyle{ \text{DEF} }[/math] the defensive power of the target,
  • [math]\displaystyle{ \text{Ammo} }[/math] the remaining ammunition modifier.
Notes
  • test