Difference between revisions of "Module:RankTable"

Jump to navigation Jump to search
137 bytes added ,  05:20, 13 June 2017
m
centerized rank; row increases size on higher ranks
m (fixed rank 60 having wrong values, added 61 to 65)
m (centerized rank; row increases size on higher ranks)
Line 78: Line 78:
end
end


return "<b>".. tosend .."</b>"
return tosend
end
end


Line 84: Line 84:
local wiki_table =
local wiki_table =
[[
[[
{| class="wikitable" style="width: 80%;"
{| class="wikitable" style="width: 80%; text-align: center;"
! style="text-align: center;" | Rank
! Rank
! style="text-align: center;" | Stamina
! Stamina
! style="text-align: center;" | Team Cost
! Team Cost
! style="text-align: center;" | Friend Limit
! Friend Limit
! style="text-align: center;" | EXP Required<br>for Rank Up
! EXP Required<br>for Rank Up
! style="text-align: center;" | EXP in Total<br>from Rank Up
! EXP in Total<br>from Rank Up
]]
]]
local exptotal = 0
local exptotal = 0
Line 96: Line 96:


for rank, tbl in ipairs( p.RankData ) do
for rank, tbl in ipairs( p.RankData ) do
local pxdevn = #p.RankData - 30
local pxmath = math.floor(math.max( 14, (rank - pxdevn) / (#p.RankData - pxdevn) * 26 ))
wiki_table = wiki_table ..
wiki_table = wiki_table ..
[[
[[
|-
|- style="font-size: ]].. pxmath ..[[px;" |
| ]] .. rank .. [[  
| <b>]] .. rank .. [[</b>
| ]] .. CheckEqualValues( preval[s], tbl[s] ) .. [[  
| style="text-align: left;" | ]] .. CheckEqualValues( preval[s], tbl[s] ) .. [[  
| ]] .. CheckEqualValues( preval[t], tbl[t] ) .. [[  
| style="text-align: left;" | ]] .. CheckEqualValues( preval[t], tbl[t] ) .. [[  
| ]] .. CheckEqualValues( preval[f], tbl[f] ) .. [[  
| style="text-align: left;" | ]] .. CheckEqualValues( preval[f], tbl[f] ) .. [[  
| ]] .. CheckEqualValues( preval[e], tbl[e] ) .. [[  
| style="text-align: left;" | ]] .. CheckEqualValues( preval[e], tbl[e] ) .. [[  
| ]] .. exptotal .. [[  
| style="text-align: left;" | ]] .. exptotal .. [[  
]]
]]


359

edits

Navigation menu