Module:Infobox character/sandbox: Difference between revisions

From Sekaipedia
Content added Content deleted
No edit summary
No edit summary
Line 4: Line 4:


function p.main(frame)
function p.main(frame)
return ib.main(frame) .. frame:preprocess('{{PAGELANGUAGE}}')
local lang = frame:preprocess('{{PAGELANGUAGE}}')
local test
if lang == 'en' then
test = 'Test!'
else
test = 'not test!'
end
return ib.main(frame) .. test
end
end



Revision as of 00:20, 23 October 2022

Documentation for this module may be created at Module:Infobox character/sandbox/doc

local ib = require('Module:Infobox character')

local p = {}

function p.main(frame)
	local lang = frame:preprocess('{{PAGELANGUAGE}}')
	local test
	
	if lang == 'en' then
		test = 'Test!'
	else
		test = 'not test!'
	end
	
	return ib.main(frame) .. test
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.