diff --git a/Documentation/Documentation.lua b/Documentation/Documentation.lua index caeef2e..ac19986 100644 --- a/Documentation/Documentation.lua +++ b/Documentation/Documentation.lua @@ -92,7 +92,7 @@ function p.doc( frame ) translate( 'message_shared_across', title.fullText, - mw.uri.encode( title.rootText, 'PATH' ) + mw.uri.encode( title.text, 'PATH' ) ), translate( 'message_shared_across_subtext', diff --git a/InfoboxNeue/InfoboxNeue.lua b/InfoboxNeue/InfoboxNeue.lua index 93f0645..7bd5d19 100644 --- a/InfoboxNeue/InfoboxNeue.lua +++ b/InfoboxNeue/InfoboxNeue.lua @@ -518,7 +518,7 @@ function methodtable.renderInfobox( self, innerHtml, snippetText ) end local function renderSnippet() - if snippetText == nil then snippetText = mw.title.getCurrentTitle().rootText end + if snippetText == nil then snippetText = mw.title.getCurrentTitle().text end local html = mw.html.create( 'div' ) diff --git a/Item/Item.lua b/Item/Item.lua index 7fc90d9..9fab336 100644 --- a/Item/Item.lua +++ b/Item/Item.lua @@ -99,7 +99,7 @@ function methodtable.getApiDataForCurrentPage( self ) local api = require( 'Module:Common/Api' ) local query = self.frameArgs[ translate( 'ARG_UUID' ) ] or self.frameArgs[ translate( 'ARG_Name' ) ] or common.removeTypeSuffix( - mw.title.getCurrentTitle().rootText, + mw.title.getCurrentTitle().text, config.name_suffixes ) @@ -135,7 +135,7 @@ function methodtable.setSemanticProperties( self ) ) setData[ translate( 'SMW_Name' ) ] = self.frameArgs[ translate( 'ARG_Name' ) ] or common.removeTypeSuffix( - mw.title.getCurrentTitle().rootText, + mw.title.getCurrentTitle().text, config.name_suffixes ) @@ -745,7 +745,7 @@ function Item.main( frame ) if instance.smwData ~= nil then instance:setCategories() instance:setShortDescription() - interwikiLinks = common.generateInterWikiLinks( mw.title.getCurrentTitle().rootText ) + interwikiLinks = common.generateInterWikiLinks( mw.title.getCurrentTitle().text ) end return infobox .. debugOutput .. instance:getCategories() .. interwikiLinks diff --git a/ItemVariants/ItemVariants.lua b/ItemVariants/ItemVariants.lua index b613b62..258b857 100644 --- a/ItemVariants/ItemVariants.lua +++ b/ItemVariants/ItemVariants.lua @@ -220,7 +220,7 @@ end --- Parser call for generating the table function ItemVariants.outputTable( frame ) local args = require( 'Module:Arguments' ).getArgs( frame ) - local page = args[ 1 ] or mw.title.getCurrentTitle().rootText + local page = args[ 1 ] or mw.title.getCurrentTitle().text local instance = ItemVariants:new( page ) local out = instance:out() diff --git a/Vehicle/Vehicle.lua b/Vehicle/Vehicle.lua index 42342d1..7c9d42b 100644 --- a/Vehicle/Vehicle.lua +++ b/Vehicle/Vehicle.lua @@ -166,7 +166,7 @@ function methodtable.getApiDataForCurrentPage( self ) local api = require( 'Module:Common/Api' ) local query = self.frameArgs[ translate( 'ARG_UUID' ) ] or self.frameArgs[ translate( 'ARG_Name' ) ] or common.removeTypeSuffix( - mw.title.getCurrentTitle().rootText, + mw.title.getCurrentTitle().text, config.name_suffixes ) @@ -201,7 +201,7 @@ function methodtable.setSemanticProperties( self ) ) setData[ translate( 'SMW_Name' ) ] = self.frameArgs[ translate( 'ARG_Name' ) ] or common.removeTypeSuffix( - mw.title.getCurrentTitle().rootText, + mw.title.getCurrentTitle().text, config.name_suffixes ) @@ -996,7 +996,7 @@ function Vehicle.main( frame ) instance:setCategories() instance:setShortDescription() -- FIXME: Is there a cleaner way? - infobox = infobox .. common.generateInterWikiLinks( mw.title.getCurrentTitle().rootText ) + infobox = infobox .. common.generateInterWikiLinks( mw.title.getCurrentTitle().text ) end return infobox .. debugOutput .. table.concat( instance.categories ) diff --git a/VehicleHardpoint/VehicleHardpoint.lua b/VehicleHardpoint/VehicleHardpoint.lua index 4bb70f0..99d03c2 100644 --- a/VehicleHardpoint/VehicleHardpoint.lua +++ b/VehicleHardpoint/VehicleHardpoint.lua @@ -1352,7 +1352,7 @@ end --- Parser call for generating the table function VehicleHardpoint.outputTable( frame ) local args = require( 'Module:Arguments' ).getArgs( frame ) - local page = args[ 1 ] or args[ 'Name' ] or mw.title.getCurrentTitle().rootText + local page = args[ 1 ] or args[ 'Name' ] or mw.title.getCurrentTitle().text local instance = VehicleHardpoint:new( page ) local out = instance:out() @@ -1473,4 +1473,4 @@ function VehicleHardpoint.evalRule( rules, hardpoint, returnInvalid ) end -return VehicleHardpoint \ No newline at end of file +return VehicleHardpoint