پودمان:آزمایشی
ظاهر
![]() | اینجا صفحهٔ آزمایشها برای پودمان پودمان:آزمایشی است. نتایج آزمایشها. |
local p = {}
local function makeInvokeFunc(funcName)
return function (frame)
local args = require('Module:Arguments').getArgs(frame, {
wrappers = 'الگو:آزمایش پودمان'
})
return p[funcName](args, frame)
end
end
p.main = makeInvokeFunc('_main')
function p._main(args)
local Display = args.display
output = ""
local function isInline(s)
-- Finds whether coordinates are displayed inline.
return s:find('inline') ~= nil or s == 'i' or s == 'it' or s == 'ti'
end
local function isInTitle(s)
-- Finds whether coordinates are displayed in the title.
return s:find('title') ~= nil or s == 't' or s == 'it' or s == 'ti'
end
if isInline(Display) then
output = output .. "found inline "
end
if isInTitle(Display) then
output = output .. "found title "
end
return output
end
return p