Difference between revisions of "Module:RankTable"

Jump to navigation Jump to search
503 bytes added ,  02:30, 15 March 2017
m
mediawiki table conversion
m (uses Module:Inspect)
m (mediawiki table conversion)
Line 1: Line 1:
local inspect = require( "Module:Inspect" )
--local inspect = require( 'Module:Inspect' )


local p = {}
local p = {}
Line 55: Line 55:


function p:RankDataReturn( frame )
function p:RankDataReturn( frame )
return inspect( p.RankData )
local wiki_table =
[[
{| class="wikitable" style="width: 50%;"
! style="text-align: center;" | Rank
! style="text-align: center;" | Stamina
! style="text-align: center;" | Team Cost
! style="text-align: center;" | EXP Required
! style="text-align: center;" | EXP Total
]]
 
for k, tbl in ipairs( self.RankData ) do
wiki_table = wiki_table .. "|-\n"
 
for key, value in pairs(tbl) do
wiki_table = wiki_table .. '| ' .. value .. "\n"
end
end
 
wiki_table = wiki_table .. '|}'
 
return wiki_table --inspect( self.RankData )
end
end


-- Data --
-- Data --
p:AddRankData( 2, 37, 11, 5, 0 )
p:AddRankData( 2, 37, 11, 5, 0 )


359

edits

Navigation menu