• 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
m
Line 4: Line 4:
 
         local f2 = f1 and f1:getParent()
 
         local f2 = f1 and f1:getParent()
 
         local f3 = f2 and f2: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 '*')
+
         return (f1 and f1.args.pagename or 'x') .. (f2 and f2.args.pagename or 'x') .. (f3 and f3.args.pagename or 'x')
 
     end
 
     end
 
}
 
}

Revision as of 21:16, 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 'x') .. (f2 and f2.args.pagename or 'x') .. (f3 and f3.args.pagename or 'x')
    end
}