359
edits
m (uses Module:Inspect) |
m (mediawiki table conversion) |
||
Line 1: | Line 1: | ||
local inspect = require( | --local inspect = require( 'Module:Inspect' ) | ||
local p = {} | local p = {} | ||
Line 55: | Line 55: | ||
function p:RankDataReturn( frame ) | function p:RankDataReturn( frame ) | ||
return inspect( | 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 ) | ||
edits