Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Core
(view source)
Revision as of 09:17, 15 August 2016
6 bytes added
,
8 years ago
m
no edit summary
Line 55:
Line 55:
local getArgs = require("Module:GetArgs")
local getArgs = require("Module:GetArgs")
−
function Utils.
context
(frame)
+
function Utils.
getContext
(frame)
local parentFrame = frame:getParent()
local parentFrame = frame:getParent()
local args = getArgs{frame = parentFrame}
local args = getArgs{frame = parentFrame}
Line 63:
Line 63:
function Utils.test_context(frame)
function Utils.test_context(frame)
−
local context = Utils.
context
(frame)
+
local context = Utils.
getContext
(frame)
return "arg = " .. (context.arg or "?") .. " @ " .. (context.pagename or "?")
return "arg = " .. (context.arg or "?") .. " @ " .. (context.pagename or "?")
end
end
return Utils
return Utils
がか
cssedit, gkautomate
7,064
edits