Line 1: |
Line 1: |
| local BaseTable = require('Module:BaseTable') | | local BaseTable = require('Module:BaseTable') |
| local Formatting = require('Module:Formatting') | | local Formatting = require('Module:Formatting') |
− | local ResourceIcons = require('Module:ResourceIcons') | + | local ResourceIcons = require('Module:Data/Asset') |
| local Ship = require('Module:Ship') | | local Ship = require('Module:Ship') |
| | | |
− | local format = require('Module:StringInterpolation').format | + | local format = require('Module:Core').format |
| | | |
| local ShipRemodelListKai = BaseTable{ | | local ShipRemodelListKai = BaseTable{ |
Line 76: |
Line 76: |
| | | |
| function ShipRemodelListKai:name(ship) | | function ShipRemodelListKai:name(ship) |
− | return {values = {value = Formatting:id_span(tostring(ship:api_id() or mw.ustring.lower(mw.ustring.gsub(ship:name(), "%s+"))), self._fragment_prefix, Formatting:format_link(ship:link()))}, bg_color = self._transparent, text_align = self._center_align} | + | return {values = {value = Formatting:id_span(tostring(ship:api_id() or mw.ustring.lower(mw.ustring.gsub(ship:name(), "%s+", self._dash))), self._fragment_prefix, Formatting:format_link(ship:link()))}, bg_color = self._transparent, text_align = self._center_align} |
| end | | end |
| | | |
Line 149: |
Line 149: |
| 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:fragment_link(tostring(self._remodel_to:api_id() or mw.ustring.lower(mw.ustring.gsub(self._remodel_to:name(), "%s+"))), self._fragment_prefix, self._remodel_to:name()) | + | name_after = Formatting:fragment_link(tostring(self._remodel_to:api_id() or mw.ustring.lower(mw.ustring.gsub(self._remodel_to:name(), "%s+", self._dash))), self._fragment_prefix, self._remodel_to:name()) |
| 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} |