Template:Preview warning
Appearance
File:Test Template Info-Icon - Version (2).svg Template documentationviewedithistorypurge
| Warning | This template is used on approximately 490,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
| File:Lua-Logo.svg | This template uses Lua: |
Template:Preview warning emits a warning in preview. Modules should instead use the module interface _warning() in Module:If preview.
Usage
{{Preview warning|Warning text in preview}}
{{Preview warning|1=Warning text in preview}}
It will be prefaced by "Preview warning:" in bold. The template will emit an always-visible warning if no warning text is supplied.
Parameters
- <syntaxhighlight lang="wikitext" inline style="display
- none;" />
|1= - The warning text you want to provide.
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Preview warning in articles based on its TemplateData.
TemplateData for Preview warning
<templatedata> { "params": { "1": { "label": "Warning text", "description": "The warning text you want to provide.", "type": "content", "required": true } }, "description": "Emits a warning in preview.", "format": "inline" } </templatedata>
See also
- {{If preview}}