• 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:Pagename"

From Kancolle Wiki
Jump to navigation Jump to search
(Created page with "local Core = require('Module:Core') return { implicit = function(frame) local args = Core.getTemplateArgs(frame) return args.implicit.pagename end, ...")
 
Line 1: Line 1:
local Core = require('Module:Core')
 
 
 
return {
 
return {
     implicit = function(frame)
+
     format = function(frame)
         local args = Core.getTemplateArgs(frame)
+
         local f1 = frame
         return args.implicit.pagename
+
         local f2 = f1 and f1:getParent()
    end,
+
         local f3 = f2 and f2:getParent()
    explicit = function(frame)
+
         return (f1 and f1.args.pagename or '*') .. (f2 and f2.args.pagename or '*') .. (f3 and f3.args.pagename or '*')
         local args = Core.getTemplateArgs(frame)
+
     end
         return args.explicit.pagename
 
     end,
 
 
}
 
}

Revision as of 21:15, 5 February 2019

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

return {
    format = function(frame)
        local f1 = frame
        local f2 = f1 and f1:getParent()
        local f3 = f2 and f2:getParent()
        return (f1 and f1.args.pagename or '*') .. (f2 and f2.args.pagename or '*') .. (f3 and f3.args.pagename or '*')
    end
}