Przejdź do zawartości

Moduł:Sandbox/Draco flavus/Test11

Z Wikiźródeł, wolnej biblioteki

Dokumentacja dla tego modułu może zostać utworzona pod nazwą Moduł:Sandbox/Draco flavus/Test11/opis

local p={}

function p.czy_onlysection(frame)
	-- return frame:getParent():preprocess('<onlyinclude>{{#ifeq:{{{transcludesection|}}}|bklknf|content}}</onlyinclude>')
	-- return frame:getParent():preprocess("<section begin=a1/>test<section end=a1/>")
	-- return frame:getParent():preprocess('{{#ifeq:{{{transcludesection|}}}|bklknf|content|nic}}')
	-- return frame:getParent():preprocess('<onlyinclude><includeonly>{{#ifeq:{{{transcludesection|}}}|bklknf|content|nic}}</includeonly></onlyinclude>')
	a = ''
	for k,v in ipairs(frame:getParent()) do
    	a = a .. ' ' .. k .. ' ' .. v
	end
	b = mw.getCurrentFrame()
	-- return frame:preprocess()('{{#invoke:frame:getTitle()|test}}')
	return b
end



return p