Modul:Pagelist: Unterschied zwischen den Versionen
trimming whitespace looks like a more desirable behaviour
(create a replacement for Template:Pagelist) |
(trimming whitespace looks like a more desirable behaviour) |
||
Zeile 99: | Zeile 99: | ||
for i, v in ipairs( args ) do | for i, v in ipairs( args ) do | ||
args[ i ] = origArgs[ v ] | args[ i ] = origArgs[ v ] | ||
-- Trim whitespace. | |||
if type( args[ i ] ) == 'string' then | |||
args[ i ] = mw.text.trim( args[ i ] ) | |||
end | |||
end | end | ||