Tech, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators
12,451
edits
Bongolium500 (talk | contribs) No edit summary |
Bongolium500 (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
local args = frame.args | local args = frame.args | ||
local outputText = "<div class=\"mainpage-box-recent\">\n" | local outputText = "<pre><div class=\"mainpage-box-recent\">\n" | ||
local done = false | local done = false | ||
local i = 1 | local i = 1 | ||
local side = "left" | local side = "left" | ||
while not done do | while not done do | ||
outputText = outputText .. "<div align=\"" .. side .. "\">" .. | outputText = outputText .. "<div align=\"" .. side .. "\">" .. args[i]:gsub("<!%-%-" .. side .. "%-.-%-align%-%->", ""):gsub("<!%-%-left%-", ""):gsub("<!%-%-right%-", ""):gsub("%-align%-%->", "") .. "</div>\n" --frame:preprocess() | ||
if side == "left" then side = "right" else side = "left" end | if side == "left" then side = "right" else side = "left" end | ||
i = i + 1 | i = i + 1 | ||
Line 23: | Line 23: | ||
end | end | ||
end | end | ||
outputText = outputText .. "</div>" | outputText = outputText .. "</div></pre>" | ||
return outputText | return outputText | ||
end | end |
edits