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
iCaption = nil
local iNum= math.floor( string.match(item, ',%s*(%d+)' ) or 0 )
local iName = string.match(item, '([%a%s-&]+),')
if(iName == nil) then iName = item end
local hasPercentage = string.match(item, "[%%]")
if(iName:find("~")) then
iCaption = string.match(iName, '([%a%s-]+)~')
iName = string.match(iName, '~([%a%s-]+)')
end
paras = { }
000
1:0
Templates used on this page:
Return to Module:Grid.