Module:If preview/doc: Difference between revisions

Content deleted Content added
Work successfully
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(16 intermediate revisions by 8 users not shown)
Line 1:
{{Module rating|releaseprotected}}
{{High-use}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Module:Arguments|Module:If preview/configuration|Module:Yesno}}
{{Uses TemplateStyles|Module:If preview/styles.css}}
 
AThis module toimplements help{{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 | |
<!-- CategoriesPlease, categories below this line, please;and interwikis at Wikidata -->
 
}}</includeonly><noinclude>
[[Category:Module documentation pages]]
</noinclude>