View source for Module:Table graph

Jump to navigation Jump to search

You do not have permission to edit this page, for the following reason:

You do not have permission to edit pages in the Module namespace.


You can view and copy the source of this page.

local p = {}
function p.main(frame)
local frame = mw.getCurrentFrame()
local chart = frame:getParent().args[1]:lower():gsub('%s*(.+)%s*','%1')
local pagename = frame.args[2] or ''
local table_id = frame.args[3] or ''
local source = ''
local data = ''
local first = frame.args['first']
local count = 0
if pagename == '' then
source = frame:getParent():getTitle():getContent()
else
source = mw.title.new(pagename):getContent()
end
if table_id ~= '' then source = source:match('{|.-id -="?'..table_id..'"? -.-(\n|%-.+\n)|}') end
for x, y in source:gmatch('\n|%-.-\n[!|]%s*(.-)%s*[|\n]|%s*([^|\n]+)') do
count = count + 1
data = data.."("..y..":"..x..")\n"
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Return to Module:Table graph.