Jump to content
Wikipedia The Free Encyclopedia

Module:Module wikitext/sandbox

From Wikipedia, the free encyclopedia
This is the module sandbox page for Module:Module wikitext (diff).
Module documentation[view] [edit] [history] [purge]
[画像:Logo of Twinkle; Police Man] 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

[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 {{db-g7 }}, put require('Module:Module wikitext')._addText('{{db-g7}}') 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 (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this module.
 --[[
  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

 --]]

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