Jump to content

Module:If preview/doc: Difference between revisions

From p1gwars
Created page with "{{Module rating|protected}} {{High-use}} {{Lua|Module:Arguments|Module:If preview/configuration|Module:Yesno}} {{Uses TemplateStyles|Module:If preview/styles.css}} This module implements {{Tl|If preview}} and {{Tl|Preview warning}}. It helps templates/modules determine if they are being previewed. Prefer implementing the template versions in other templates. In a module to use the <code>main()</code>, you need to pass a frame table with an args table. For the preview..."
 
Replaced content with "-"
Tag: Replaced
 
Line 1: Line 1:
{{Module rating|protected}}
-
{{High-use}}
{{Lua|Module:Arguments|Module:If preview/configuration|Module:Yesno}}
{{Uses TemplateStyles|Module:If preview/styles.css}}
 
This module implements {{Tl|If preview}} and {{Tl|Preview warning}}. It helps templates/modules determine if they are being previewed.
 
Prefer implementing the template versions in other templates.
 
In a module to use the <code>main()</code>, you need to pass a frame table with an args table.
 
For the preview warning, use <code>_warning()</code>.
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Please, categories below this line and interwikis at Wikidata -->
[[Category:Error-handling modules]]
}}</includeonly><noinclude>
[[Category:Module documentation pages]]
</noinclude>

Latest revision as of 20:58, 11 January 2026

-