Module:TA4TK:myTest: Difference between revisions

From MaRDI portal
No edit summary
No edit summary
Line 9: Line 9:


p.hello_math = function( frame )
p.hello_math = function( frame )
local formula = "sin x"
local formula = "\\frac{a}{b}"
-- Ensure the string isn't misinterpreted
-- Ensure the string isn't misinterpreted
return mw.text.nowiki(formula)  
return mw.text.nowiki(formula)  

Revision as of 14:15, 3 January 2025

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

-- Main table to hold all functions

local p = {}

p.hello = function( frame )
	local str = "Hello World!"
	return str
end

p.hello_math = function( frame )
	local formula = "\\frac{a}{b}"
	-- Ensure the string isn't misinterpreted
	return mw.text.nowiki(formula) 
end

return p