Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Sandbox/Combat
(view source)
Revision as of 07:26, 21 October 2015
175 bytes added
,
9 years ago
m
no edit summary
Line 1:
Line 1:
−
−
local format = require('Module:StringInterpolation').format
−
local Ship = require('Module:Ship')
−
local Formatting = require('Module:Formatting')
local Combat = {}
local Combat = {}
Line 157:
Line 153:
-- * Tables.
-- * Tables.
+
+
local format = require('Module:StringInterpolation').format
+
local Ship = require('Module:Ship')
+
local Formatting = require('Module:Formatting')
+
local StatIcons = require('Module:StatIcons')
local table_templates = {
local table_templates = {
Line 163:
Line 164:
!Rank
!Rank
!Name
!Name
−
!
FP
+
!
${fp}
−
!
Torp
+
!
${torp}
−
!
FP + Torp
+
!
${fp_plus_torp}
!DB Attack
!DB Attack
!DB Torp
!DB Torp
Line 172:
Line 173:
!Luck - Cap
!Luck - Cap
!NB CI%
!NB CI%
−
!Notes
${rows}|}]],
${rows}|}]],
Line 187:
Line 187:
|${luck_minus_cap}
|${luck_minus_cap}
|${nb_ci_rate}
|${nb_ci_rate}
−
|${notes}
]===]
]===]
Line 193:
Line 192:
function Combat.table_dd(frame)
function Combat.table_dd(frame)
−
return format{table_templates.table_dd, rows = frame.args[1] or ""}
+
return format{
+
table_templates.table_dd,
+
rows = frame.args[1] or ""
,
+
fp = StatIcons.firepower,
+
torp = StatIcons.torpedo,
+
fp_plus_torp = StatIcons.firepower .. "+" .. StatIcons.torpedo,
+
}
end
end
Line 216:
Line 221:
luck_minus_cap = "",
luck_minus_cap = "",
nb_ci_rate = "",
nb_ci_rate = "",
−
notes = ""
}
}
else
else
がか
cssedit, gkautomate
7,064
edits