5,078
edits
No edit summary |
No edit summary |
||
Line 47: | Line 47: | ||
local warnings = '' | local warnings = '' | ||
local | local args = {} | ||
if group ~= nil and group ~= '' then | if group ~= nil and group ~= '' then | ||
args.group = tostring( group ) | |||
end | end | ||
local wikitext = frame:extensionTag( 'references', '', args ) | |||
local | local html = mw.html.create( 'div' ) | ||
if colNum ~= nil and colNum ~= '' then | if colNum ~= nil and colNum ~= '' then | ||
if tonumber( colNum ) == nil then | if tonumber( colNum ) == nil then | ||
Line 61: | Line 62: | ||
else | else | ||
colNum = tostring( tonumber( colNum ) ) | colNum = tostring( tonumber( colNum ) ) | ||
html = html | |||
:attr( '-moz-column-count', colNum ) | |||
:attr( '-webkit-column-count', colNum ) | |||
:attr( 'column-count', colNum ) | |||
end | end | ||
end | end | ||
Line 74: | Line 76: | ||
'Pages containing invalid template parameter warnings' ) | 'Pages containing invalid template parameter warnings' ) | ||
else | else | ||
html = html | |||
:attr( '-moz-column-width', colWidth ) | |||
:attr( '-webkit-column-width', colWidth ) | |||
:attr( 'column-width', colWidth ) | |||
end | end | ||
end | end | ||
Line 87: | Line 90: | ||
'Pages containing invalid template parameter warnings' ) | 'Pages containing invalid template parameter warnings' ) | ||
else | else | ||
html = html | |||
:attr( '-moz-column-gap', colGap ) | |||
:attr( '-webkit-column-gap', colGap ) | |||
:attr( 'column-gap', colGap ) | |||
end | end | ||
end | end | ||
local html = html | |||
local html = | |||
:wikitext( wikitext ) | :wikitext( wikitext ) | ||
:allDone() | :allDone() | ||
return | return tostring( html ) .. warnings | ||
end | end | ||