Module:Preview warning/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Preview warning
Description
This module allows you to have warning messages that display only when the page is previewed. The message will not be shown when the page is rendered normally.
Usage
{{#invoke:Preview warning|main|Message text}}
Examples
{{#invoke:Preview warning|main|There was an error}}
→
Warning: There was an error (this message is shown only in preview)
{{#invoke:Preview warning|main|}}
→
Warning: Something is wrong with this template (this message is shown only in preview)
Credits
This module's code was copied from the English Wikipedia.