Module:LCCN: Difference between revisions

Content deleted Content added
+"padleft" and "padright" functions that adheres to parser function semantics with the same names
minor optimization
Line 23:
local tgtlen = ...
if 1 > select('#', ...) then
tgtlenreturn = 0str
end
return pad(tgtlen - mw.ustring.len(str), select(2, ...)) .. str
Line 31:
local tgtlen = ...
if 1 > select('#', ...) then
tgtlenreturn = 0str
end
return str .. pad(tgtlen - mw.ustring.len(str), select(2, ...))