Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:KanmusuModule
(view source)
Revision as of 18:42, 10 January 2017
4 bytes removed
,
7 years ago
m
var name change
Line 18:
Line 18:
local kanji, form
local kanji, form
−
local
baseName
= mw.ustring.find(shipmodule.data[shipNum]["name"][1], "[改甲航]")
+
local
formNum
= mw.ustring.find(shipmodule.data[shipNum]["name"][1], "[改甲航]")
−
if
baseName
== nil then
+
if
formNum
== nil then
kanji = shipmodule.data[shipNum]["name"][1]
kanji = shipmodule.data[shipNum]["name"][1]
form = ""
form = ""
else
else
−
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1,
baseName
- 1)
+
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1,
formNum
- 1)
−
form = mw.ustring.sub(shipmodule.data[shipNum]["name"][1],
baseName
, -1)
+
form = mw.ustring.sub(shipmodule.data[shipNum]["name"][1],
formNum
, -1)
end
end
local JaName = frame:expandTemplate{ title = 'ruby-ja', args = { kanji , shipmodule.data[shipNum]["name"][2] } } .. form
local JaName = frame:expandTemplate{ title = 'ruby-ja', args = { kanji , shipmodule.data[shipNum]["name"][2] } } .. form
IbarakiIbuki
5,421
edits