Module:TA4TK:myTest: Difference between revisions

From MaRDI portal
No edit summary
No edit summary
Tag: Reverted
Line 8: Line 8:
end
end


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

Revision as of 14:19, 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.helloMath = function( frame )
	local formula = "\\frac{a}{b}"
	-- Ensure the string isn't misinterpreted
	return formula
	--return mw.text.nowiki(formula) 
end

return p