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.
--<syntaxhighlight lang="lua">
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.sub(string.match(item, '.+,') or item..' ', 1, -2)
local tooltip = string.match(item, '%[.+%]')
if tooltip ~= nil then
iName = string.sub(iName, string.len(tooltip)+1)
tooltip = string.sub(tooltip,2,-2)
end
local hasPercentage = string.match(item, "[%%]")
local aliases = mw.loadData('Module:Grid/Aliases')
if tooltip == nil then
if aliases[iName] then
000
1:0
Templates used on this page:
Return to Module:Grid.