Jump to content

Module:Module wikitext

Wikipedia ལས།
110.235.217.8 (བློ།) གིས་ ༠༨:༢༧, ༢༩ སྤྱི་ཟླ་དྲུག་པ། ༢༠༢༤ ཚུན་གྱི་བསྐྱར་ཞིབ།
(ཁྱད་པར།) ← བསྐྱར་ཞིབ་རྙིངམ། | ད་ལྟོའི་བསྐྱར་ཞིབ། (ཁྱད་པར།) | བསྐྱར་ཞིབ་གསརཔ་→ (ཁྱད་པར།)

This is an auxiliary module used to allow module pages to display wikitext. Use it by setting this module's text value to whatever content you want to display. The _addText helper method may be useful. For example, to tag a module with {{db-g7}}, put require('Module:Module wikitext')._addText('{{db-g7}}') at the top of it.



local p = {}

p.text = ''

function p.main()
	return p.text
end

function p._addText(text, preprocessFrame)
	if preprocessFrame ~= false then
		text = (preprocessFrame or mw.getCurrentFrame()):preprocess(text)
	end
	p.text = p.text .. text
end

return p
"https://dz.wikipedia.org/w/index.php?title=Module:Module_wikitext&oldid=32437" ལས་ སླར་འདྲེན་འབད་ཡོདཔ།