Module:Module wikitext
Usage
This is an auxiliary module used to allow module pages to display wikitext. Use it by setting this module'stext
value to whatever content you want to display. The _addText
helper method may be useful. For example, to tag a module with {{QD|T2}}
, put <syntaxhighlight lang="lua" inline>require('Module:Module wikitext')._addText('An editor has asked for quick deletion of this module. The editor's reason for asking for deletion is: T2 (Deprecated or replaced template, with no links to it.)
If you think this module should not be deleted, please add {{Wait}} below this message, and then say why on this module's talk page. Please do not remove this notice from pages that you have created yourself. Administrators, remember to check what links here, the page history (last edit), and the page log, before deletion. |
')</syntaxhighlight> 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