- 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 69:
Line 69:
− +
Line 115:
Line 115:
− +
+
Link to sections in after remodel column
function ShipRemodelListKai:name(ship)
function ShipRemodelListKai:name(ship)
return {values = {value = Formatting:format_link(ship:link())}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = tostring(mw.html.create('span'):attr('id', "shipremodellistkai-" .. tostring(ship:api_id() or mw.ustring.lower(mw.ustring.gsub(text, "%s+")))):wikitext(Formatting:format_link(ship:link())))}, bg_color = self._transparent, text_align = self._center_align}
end
end
local name_after = self._remodel_to == nil and self._question_marks or self._dash
local name_after = self._remodel_to == nil and self._question_marks or self._dash
if self._remodel_to then
if self._remodel_to then
name_after = Formatting:format_link(self._remodel_to:link())
local text = select(2, self._remodel_to:link())
name_after = Formatting:format_link(link, text, "shipremodellistkai-" .. tostring(self._remodel_to:api_id() or mw.ustring.lower(mw.ustring.gsub(text, "%s+"))))
end
end
return {values = {value = name_after}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = name_after}, bg_color = self._transparent, text_align = self._center_align}