Module:Module wikitext/doc: Difference between revisions
Appearance
Content deleted Content added
Amorymeltzer (talk | contribs) Used by Twinkle |
Typo Tags: Reverted Mobile edit Mobile web edit |
||
Line 3: | Line 3: | ||
== Usage == |
== Usage == |
||
This is an auxiliary module used to allow module pages to display wikitext. Use it by setting this module's <code>text</code> value to whatever content you want to display. The <code> |
This is an auxiliary module used to allow module pages to display wikitext. Use it by setting this module's <code>text</code> value to whatever content you want to display. The <code>_Add text </code> helper method may be useful. For example, to tag a module with {{|debug}}, put <Syntex highlight lang="lua" inline>require('Module:Module wikitext')._Add text('{{debug}}')</syntaxhighlight> at the top of it. |
||
<includeonly>{{#ifeq:{{ |
<includeonly>{{#ifeq:{{Subpage name}}|sandbox | | |
||
<!-- Categories below this line, please; |
<!-- Categories below this line, please; enter wiki data at Wikidata --> |
||
}}</includeonly> |
}}</includeonly> |
Revision as of 07:41, 29 November 2024
![]() | 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 _Add text
helper method may be useful. For example, to tag a module with {{|debug}}, put <Syntex highlight lang="lua" inline>require('Module:Module wikitext')._Add text('{{Debug}}')</syntaxhighlight> at the top of it.