Jump to content

Module:Sandbox/Gnosygnu

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Gnosygnu (talk | contribs) at 17:45, 7 May 2013 (Created page with '--This Module is for various Lua experiment --It is not meant to be used by other pages and can be safely deleted local p = {} function p.preprocess_ifeq_as_yn(...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
--This Module is for various Lua experiment
--It is not meant to be used by other pages and can be safely deleted
local p = {}

function p.preprocess_ifeq_as_yn(frame)
    local arg_1 = frame.args[1]
    local arg_2 = frame.args[2]
    local foo = frame:preprocess("{{#ifeq:"..arg_1.."|"..arg_2.."|{{{3}}}|{{{4}}}}}")
    return foo
end