View source for Module:Grid
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
-- Individual cell
function p.grid(item)
if (item == nil) then return { } end
local iLink = nil
local iNum= math.floor( string.match(item, ',%s*(%d+)' ) or 0 )
local iName = string.match(item, '(.+),')
local tooltip = string.match(item, '%[.+%].+')
if(iName == nil) then iName = item end
local hasPercentage = string.match(item, "[%%]")
if(iName:find("~")) then
iLink = string.match(iName, '~([%a%s-]+)')
iName = string.match(iName, '([%a%s-]+)~')
end
000
1:0
Templates used on this page:
Return to Module:Grid.