Template:Preview warning emits a warning in preview. Modules should instead use the module interface _warning() in Module:If preview.

{{preview warning|Warning text in preview}}

The warning will appear at the top of the page in preview, no matter where it is placed. It will be prefaced by "Preview warning:" in bold. The template will emit an always-visible warning if no warning text is supplied.

|1=
The warning text you want to provide.
"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Preview_warning/doc&oldid=507474" වෙතින් සම්ප්‍රවේශනය කෙරිණි