Jump to content

Module:Module wikitext/doc: Difference between revisions

From Wikipedia, the free encyclopedia
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>_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.
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:{{Subpage name}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; enter wiki data at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->


}}</includeonly>
}}</includeonly>

Revision as of 13:59, 29 November 2024

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.