10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 21: | Line 21: | ||
local args_frame = getArgs(frame) | local args_frame = getArgs(frame) | ||
local args = {} | local args = {} | ||
local | local title = mw.title.getCurrentTitle() | ||
local word = title.text | |||
local p = 1 | local p = 1 | ||
if args_frame[" | if args_frame["entry"] ~= nil then | ||
word = args_frame[" | word = args_frame["entry"] | ||
else | |||
error("Empty input.") | |||
end | end | ||
Line 260: | Line 263: | ||
--[[ | --[[ | ||
Debug console test string: | Debug console test string: | ||
=p.show(mw.getCurrentFrame():newChild{title="whatever",args={[" | =p.show(mw.getCurrentFrame():newChild{title="whatever",args={["entry"] = "rjaovs"}}) | ||
]] | ]] |