Module:Module wikitext/doc: Difference between revisions
Appearance
Content deleted Content added
Typo Tags: Reverted Mobile edit Mobile web edit |
m Reverted edit by 38.10.41.111 (talk) to last version by Amorymeltzer |
||
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>_addText</code> 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>{{#ifeq:{{ |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
||
<!-- Categories below this line, please; |
<!-- Categories below this line, please; interwikis at Wikidata --> |
||
}}</includeonly> |
}}</includeonly> |
Revision as of 13:59, 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 _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.