Difference between revisions of "Module:Int"

106 bytes added ,  22:02, 25 August 2021
Add parameter `missing`
>ExE Boss
(Correctly handle missing messages when `lang="qqx"`)
>ExE Boss
(Add parameter `missing`)
Line 2: Line 2:
local templateTranslation = require('Module:Template translation')
local templateTranslation = require('Module:Template translation')
local this = {}
local this = {}
local function _ne(value)
return value and value ~= ''
end


function this.renderIntMessage(frame)
function this.renderIntMessage(frame)
Line 26: Line 30:
return frame:preprocess(msgstr)
return frame:preprocess(msgstr)
else
else
return '⧼' .. args[1] .. '⧽'
return args.missing ~= ''
and args.missing
or '⧼' .. args[1] .. '⧽'
end
end
end
end


return this
return this
Anonymous user