Module:rad-pronunciation: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 21: Line 21:
local args_frame = getArgs(frame)
local args_frame = getArgs(frame)
local args = {}
local args = {}
local word = tostring(mw.title.getCurrentTitle().text)
local title = mw.title.getCurrentTitle()
local word = title.text
local p = 1
local p = 1
if args_frame["override"] ~= nil then
if args_frame["entry"] ~= nil then
word = args_frame["override"]
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={["override"] = "rjaovs"}})
=p.show(mw.getCurrentFrame():newChild{title="whatever",args={["entry"] = "rjaovs"}})
]]
]]

Navigation menu