• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Module:PageTitle"

From Kancolle Wiki
Jump to navigation Jump to search
com>Ckwng
(Created page with "local BaseData = require("Module:BaseData") local PageTitle = BaseData{} function PageTitle.ID(frame) return tostring(mw.getCurrentTitle().id) end function PageTitle.Ti...")
 
com>Ckwng
Line 4: Line 4:
  
 
function PageTitle.ID(frame)
 
function PageTitle.ID(frame)
     return tostring(mw.getCurrentTitle().id)
+
     return tostring(mw.title.getCurrentTitle().id)
 
end
 
end
  
 
function PageTitle.Title(frame)
 
function PageTitle.Title(frame)
     return tostring(mw.getCurrentTitle().prefixedText)
+
     return tostring(mw.title.getCurrentTitle().prefixedText)
 
end
 
end
  
 
return PageTitle
 
return PageTitle

Revision as of 23:29, 17 July 2016

Documentation for this module may be created at Module:PageTitle/doc

local BaseData = require("Module:BaseData")

local PageTitle = BaseData{}

function PageTitle.ID(frame)
    return tostring(mw.title.getCurrentTitle().id)
end

function PageTitle.Title(frame)
    return tostring(mw.title.getCurrentTitle().prefixedText)
end

return PageTitle