- 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"
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: | ||
− | |||
− | |||
return { | return { | ||
− | + | format = function(frame) | |
− | local | + | 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 '*') | |
− | local | + | end |
− | return args. | ||
− | 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
}