- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
Line 10:
Line 10:
− +
Line 29:
Line 29:
− +
Line 44:
Line 44:
− _person_template = "${name} (${japanese_name})", +
Line 90:
Line 90:
− self._vars.japanese_name = tostring(Formatting:japanese_text(Formatting:format_stat(self._ship:japanese_name()))) +
+
+
+
Line 117:
Line 120:
− +
no edit summary
_template = [[{|class="${table_class}"
_template = [[{|class="${table_class}"
|-
|-
!class="infobox-kai-header-major" colspan=2|${name} ${japanese_name}
!class="infobox-kai-header-major" colspan=2|${name}
|-
|-
!Class
!Class
_flat_template = [[{|class="${table_class}"
_flat_template = [[{|class="${table_class}"
|-
|-
!class="infobox-kai-header-major" colspan=4|${name} ${japanese_name}
!class="infobox-kai-header-major" colspan=4|${name}
|-
|-
!${voice_actor_header}
!${voice_actor_header}
_artist_header = "[[Glossary#List of Vessels by Artist|Artist]]",
_artist_header = "[[Glossary#List of Vessels by Artist|Artist]]",
_class_template = "[[:Category:${ship_class}|${ship_class}]]",
_class_template = "[[:Category:${ship_class}|${ship_class}]]",
_name_template = "${name} (${japanese_name})",
_normal_construction_label = "Normal",
_normal_construction_label = "Normal",
_large_ship_construction_label = "LSC",
_large_ship_construction_label = "LSC",
function ShipMetaKai:name()
function ShipMetaKai:name()
self._vars.name = Formatting:format_stat(self._ship:name())
self._vars.name = Formatting:format_stat(self._ship:name())
local japanese_name = Formatting:format_stat(self._ship:japanese_name())
if japanese_name ~= self._vars.name then
self._vars.name = format{self._name_template, name = self._vars.name, japanese_name = tostring(Formatting:japanese_text(japanese_name))}
end
end
end
japanese_name = tostring(Formatting:japanese_text(Formatting:format_stat(person:japanese_name()), Formatting:format_stat(person:reading())))
japanese_name = tostring(Formatting:japanese_text(Formatting:format_stat(person:japanese_name()), Formatting:format_stat(person:reading())))
end
end
return format{self._person_template, name = Formatting:format_external_link(person:link()), japanese_name = japanese_name}
return format{self._name_template, name = Formatting:format_external_link(person:link()), japanese_name = japanese_name}
end
end