Jump to content
MediaWiki

Module:Module wikitext

From mediawiki.org
Module documentation

Usage

[edit ]

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 {{Delete }}, put require('Module:Module wikitext')._addText('{{delete|reason}}') at the top of it.

The above documentation is transcluded from Module:Module wikitext/doc. (edit | history)
Editors can experiment in this module’s sandbox (create | mirror) and testcases (create) pages.
Subpages of this module.

 localp={}

 p.text=''

 functionp.main()
 returnp.text
 end

 functionp._addText(text,preprocessFrame)
 ifpreprocessFrame~=falsethen
 text=(preprocessFrameormw.getCurrentFrame()):preprocess(text)
 end
 p.text=p.text..text
 end

 returnp

AltStyle によって変換されたページ (->オリジナル) /