Jump to content

Module:Stock tickers/NYSE

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Svgalbertian (talk | contribs) at 19:19, 2 August 2014. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local getArgs = require('Module:Arguments').getArgs
local p = {}
 
function p.main(frame)
	local args = getArgs(frame)
	return p._main(args)
end
 
function p._main(args)
	local ticker_input = args[1]
	ticker_output = string.gsub(ticker_input, "(PR)(.)$", "p%2")
	return ticker_output
end
 
return p