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

Changes

Jump to navigation Jump to search
no edit summary
Line 53: Line 53:  
end
 
end
   −
Utils.t = Utils.method( {args = {"Formatting", "tooltip", "text"}} )
+
local getArgs = require("Module:GetArgs")
 +
 
 +
function Utils.context(frame)
 +
    local parentFrame = frame:getParent()
 +
    local args = getArgs{frame = parentFrame}
 +
    args.pagename = parentFrame:getTitle()
 +
    return args
 +
end
 +
 
 +
function Utils.test_context(frame)
 +
    local context = Utils.context(frame)
 +
    return "arg = " + (context.arg or "?") + " @ " + (context.pagename or "?")
 +
end
    
return Utils
 
return Utils
cssedit, gkautomate
7,064

edits

Navigation menu