Difference between revisions of "Module:SandboxShortCode"

From PKC
Jump to navigation Jump to search
Line 1: Line 1:
local p = {}
local p = {}
   
   
function p.ustringchar()
function p.greek_letter()
    return ';byte\n:mw.ustring.char(24352) is ' .. mw.ustring.char(24352) .. '\n'
cf = mw.getCurrentFrame()
-- aString = "<math>\\" .. mw.allToString(cf.args[1]) .. "</math>"
str = mw.getCurrentFrame().args[1]
aString = cf:preprocess("<math>\\"..str.."</math>")
return aString
end
end

Revision as of 07:05, 10 January 2022

Documentation for this module may be created at Module:SandboxShortCode/doc

local p = {}
 
function p.greek_letter()
	cf = mw.getCurrentFrame()
	-- aString = "<math>\\" .. mw.allToString(cf.args[1]) .. "</math>"
	str = mw.getCurrentFrame().args[1]
	aString = cf:preprocess("<math>\\"..str.."</math>")
	return aString
end