Module:Module wikitext/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} This module creates an html message with class "error". It implements {{tl|error}} template - please see the documentation page there for usage instructions. == See also == * Module:If preview <includeonly>{{sandbox other||{{testcases other|| <!-- Categories below this line, please --> Category:Modules }}}}</includeonly>") |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
This module | == Usage == | ||
This is an auxiliary module used to allow module pages to display wikitext. Use it by setting this module's {{code|text}} value to whatever content you want to display. The {{code|_addText}} helper method may be useful. For example, to tag a module with {{tl|db-g7}}, put <syntaxhighlight lang="lua" inline>require('Module:Module wikitext')._addText('{{db-g7}}')</syntaxhighlight> at the top of it. | |||
<includeonly>{{sandbox other||{{testcases other|| | |||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category:Modules]] | [[Category:Modules]] | ||
}}}}</includeonly> | }}}}</includeonly> |
Latest revision as of 02:09, 12 June 2023
It contains usage information, categories and other content that is not part of the original module page.
|
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.