Editing Module:Sandbox/User:Artoire
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
end |
end |
||
local output = mw.html.create() |
local output = mw.html.create('table') |
||
⚫ | |||
:wikitext('L = level; A = Album XP; K = Knowledge XP; D = floor(K / 10) - A') |
|||
:tag(' |
:tag('tr') |
||
⚫ | |||
⚫ | |||
:tag(' |
:tag('th'):wikitext('XP'):done() |
||
:tag('th'):wikitext('Album'):done() |
|||
:tag('th'):wikitext('Ratio'):done() |
|||
:done() |
|||
⚫ | |||
:done() |
|||
for i = 0, 499 do |
for i = 0, 499 do |
||
if data.album[i] ~= nil then |
if data.album[i] ~= nil then |
||
local needed = data.level[i+1]-data.level[i] |
local needed = data.level[i+1]-data.level[i] |
||
local k = data.knowledge[i] |
|||
output:tag('tr') |
output:tag('tr') |
||
:tag('td'):wikitext(i):done() |
:tag('td'):wikitext(i):done() |
||
:tag('td'):wikitext(needed):done() |
|||
:tag('td'):wikitext(data.album[i]):done() |
:tag('td'):wikitext(data.album[i]):done() |
||
:tag('td'):wikitext(data. |
:tag('td'):wikitext(needed / data.album[i]):done() |
||
:tag('td'):wikitext(data.knowledge[i] and math.floor(data.knowledge[i] / 10) - data.album[i]):done() |
|||
:done() |
:done() |
||
end |
end |
||
end |
end |
||
return { main = function() return output |
return { main = function() return output end } |