Difference between revisions of "Module:RankTable"

13 bytes added ,  03:07, 15 March 2017
m
now its truly fixed... maybe
m (why me? "self:")
m (now its truly fixed... maybe)
Line 10: Line 10:
[t] = 36,
[t] = 36,
[f] = 10,
[f] = 10,
[e] = 0,
[e] = 3,
}
}


Line 57: Line 57:
local wiki_table =
local wiki_table =
[[
[[
{| class="wikitable" style="width: 75%;"
{| class="wikitable" style="width: 75%;"
! style="text-align: center;" | Rank
! style="text-align: center;" | Rank
! style="text-align: center;" | Stamina
! style="text-align: center;" | Stamina
! style="text-align: center;" | Team Cost
! style="text-align: center;" | Team Cost
! style="text-align: center;" | Friend Limit
! style="text-align: center;" | Friend Limit
! style="text-align: center;" | EXP Required
! style="text-align: center;" | EXP Required for Rank Up
! style="text-align: center;" | EXP Total
! style="text-align: center;" | EXP in Total from Rank Up
]]
]]


local exptotal = 0
local exptotal = 0
for k, tbl in ipairs( p.RankData ) do
for k, tbl in ipairs( p.RankData ) do
exptotal = exptotal + tbl[e]
wiki_table = wiki_table ..
wiki_table = wiki_table ..
[[
[[
|-
|-
| ]] .. tbl[l] .. [[
| ]] .. tbl[l] .. [[
| ]] .. tbl[s] .. [[
 
| ]] .. tbl[t] .. [[
| ]] .. tbl[s] .. [[
| ]] .. tbl[f] .. [[
 
| ]] .. tbl[e] .. [[
| ]] .. tbl[t] .. [[
| ]] .. exptotal .. [[
 
| ]] .. tbl[f] .. [[
 
| ]] .. tbl[e] .. [[
 
| ]] .. exptotal .. [[
 
]]
]]
exptotal = exptotal + tbl[e]
end
end


359

edits