Jump to content

Template:If preview/doc

From Our World of Text Wiki
Revision as of 14:31, 6 December 2024 by Dat Hack3r (talk | contribs) (Created template documentation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is a template that helps other templates determine if they are being previewed or not, and do or display different things accordingly.

The first parameter is returned if the page is being previewed, otherwise the second parameter will be returned. Either parameter may be empty. Preview this page to see the effect of previewing on the examples below.