Difference between revisions of "Module:SandboxShortCode"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
-- aString = "<math>\\" .. mw.allToString(cf.args[1]) .. "</math>" | -- aString = "<math>\\" .. mw.allToString(cf.args[1]) .. "</math>" | ||
-- aString = "<math>\\" .. mw.allToString(cf.args[1]) .. "</math>" | -- aString = "<math>\\" .. mw.allToString(cf.args[1]) .. "</math>" | ||
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 |
Revision as of 08:20, 10 January 2022
Documentation for this module may be created at Module:SandboxShortCode/doc
-- aString = "<math>\\" .. mw.allToString(cf.args[1]) .. "</math>"
-- aString = "<math>\\" .. mw.allToString(cf.args[1]) .. "</math>"
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