Module:LCCN: Difference between revisions

Content deleted Content added
use Scribunto API for "expr"
Line 1:
require[[Module:No globals]]
local p = {}
 
local function blank_to_nil(s)
if s and #s > 0 then return s end
end
 
local function padleft(...)
return mw.getCurrentFrame():callParserFunction('padleft', { ... })
end
 
local function padright(...)
return mw.getCurrentFrame():callParserFunction('padright', { ... })
end
 
local function expr(...)
return mw.ext.ParserFunctions.expr( ... )
end