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, | |
| } | | } |