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:32, 15 August 2016
285 bytes added
,
8 years ago
no edit summary
Line 56:
Line 56:
function Utils.getContext(frame)
function Utils.getContext(frame)
−
local
parentFrame
= frame:getParent()
+
local
frame1
= frame:getParent()
−
return { pagename =
parentFrame
:getTitle(), args = getArgs{ frame =
parentFrame
} }
+
if frame1 then
+
local frame2 = frame1:getParent()
+
if frame2 then
+
return { pagename = frame2:getTitle(), args = getArgs{ frame = frame2 } }
+
else
+
return { pagename = frame1:getTitle(), args = getArgs{ frame = frame1 } }
+
end
+
else
+
return { pagename =
frame
:getTitle(), args = getArgs{ frame =
frame
} }
+
end
end
end
がか
cssedit, gkautomate
7,064
edits