Module:Ifeq

-- This function is for testing if two strings are equal inside a parser function local p = {}

function p.ifeq ( frame ) -- killMarkers removes the UNIQ code that is added to arguments -- See https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##ifeq local arg1 = mw.text.killMarkers ( tostring(frame.args[1]) ) local arg2 = mw.text.killMarkers ( tostring(frame.args[2]) ) return arg1 == arg2 or nil end return p