mNo edit summary |
mNo edit summary |
||
Line 24: | Line 24: | ||
end | end | ||
output = "[[Image:Tattoo.png]]" | local output = output .. "[[Image:Tattoo.png]]" | ||
for i=1, 30 do | |||
local x = math.cos(i) * 150 | |||
local y = math.sin(i) * 150 | |||
output = output .. [[<span style="position:relative; left:]] .. x .. [[; top:]] .. y .. [[;">]].. "[[Image:Operation_Big_K_Pin]]" .. [[</span>]] | |||
end | |||
return output | return output | ||
end | end | ||
return p | return p |
Revision as of 23:42, 17 November 2022
Documentation for this module may be created at Module:Tattoo/doc
local p = {} local cargo = mw.ext.cargo local commendations = { } function p.Main( frame ) local t = {} local tables = 'Commendations' local fields = 'Commendation, COUNT(*)' local args = { groupBy = 'Commendation', where = 'Recipient = "' .. frame.args[1] .. '" AND Approved = true' } local results = cargo.query( tables, fields, args ) local groups = {} for r = 1, #results do local r = results[r] groups[r.Commendation] = r["COUNT(*)"] end local output = output .. "[[Image:Tattoo.png]]" for i=1, 30 do local x = math.cos(i) * 150 local y = math.sin(i) * 150 output = output .. [[<span style="position:relative; left:]] .. x .. [[; top:]] .. y .. [[;">]].. "[[Image:Operation_Big_K_Pin]]" .. [[</span>]] end return output end return p
Categories:
No categories