Module:Module wikitext: Difference between revisions
Appearance
Content deleted Content added
Jackmcbarn (talk | contribs) no frame - probably won't be called with one most of the time |
Jackmcbarn (talk | contribs) preprocess it |
||
Line 4: | Line 4: | ||
end |
end |
||
function p._setText(text) |
function p._setText(text, preprocessFrame) |
||
if preprocessFrame ~= false then |
|||
text = (preprocessFrame or mw.getCurrentFrame()):preprocess(text) |
|||
end |
|||
p.main = function() return text end |
p.main = function() return text end |
||
end |
end |
Revision as of 17:23, 7 September 2020
![]() | Any breaking changes to this template, including moving it or nominating it for deletion, must be communicated in advance to Twinkle's users and maintainers at Wikipedia talk:Twinkle. The standard installation of Twinkle relies on this template. Thank you. |
Usage
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.