This page is "edit" protected. The "sysop" right is required to "edit" this page.<ul class='mw-logevent-loglines'> <li data-mw-logid="356" data-mw-logaction="protect/protect" class="mw-logline-protect"> <a href="/wiki/Special:Log?logid=356" title="Special:Log">10:19, 9 January 2021</a> <a href="/wiki/User:Celeste" class="mw-userlink" title="User:Celeste"><bdi>Celeste</bdi></a> <span class="mw-usertoollinks mw-changeslist-links"><span><a href="/wiki/User_talk:Celeste" class="mw-usertoollinks-talk" title="User talk:Celeste">talk</a></span> <span><a href="/wiki/Special:Contributions/Celeste" class="mw-usertoollinks-contribs" title="Special:Contributions/Celeste">contribs</a></span></span> protected <a href="/wiki/Template:If" title="Template:If">Template:If</a> [Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite) [Protect=Allow only administrators] (indefinite) <span class="comment">(Critical template)</span> <span class="mw-logevent-actionlink">(<a href="/wiki/Template:If?action=history&amp;offset=20210109101902" title="Template:If">hist</a>)</span> </li> </ul></ul>
This page is "move" protected. The "sysop" right is required to "move" this page.<ul class='mw-logevent-loglines'> <li data-mw-logid="356" data-mw-logaction="protect/protect" class="mw-logline-protect"> <a href="/wiki/Special:Log?logid=356" title="Special:Log">10:19, 9 January 2021</a> <a href="/wiki/User:Celeste" class="mw-userlink" title="User:Celeste"><bdi>Celeste</bdi></a> <span class="mw-usertoollinks mw-changeslist-links"><span><a href="/wiki/User_talk:Celeste" class="mw-usertoollinks-talk" title="User talk:Celeste">talk</a></span> <span><a href="/wiki/Special:Contributions/Celeste" class="mw-usertoollinks-contribs" title="Special:Contributions/Celeste">contribs</a></span></span> protected <a href="/wiki/Template:If" title="Template:If">Template:If</a> [Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite) [Protect=Allow only administrators] (indefinite) <span class="comment">(Critical template)</span> <span class="mw-logevent-actionlink">(<a href="/wiki/Template:If?action=history&amp;offset=20210109101902" title="Template:If">hist</a>)</span> </li> </ul></ul>

Template:If

From Celeste Wiki
Jump to navigation Jump to search

Usage

Tests whether a value is defined.

{{if|{{{Value|}}}
 |(Text to display if value is defined)
 |(Text to display otherwise)
}}

OR

{{if|{{{Value|}}}
 |then=(Text to display if value is defined)
 |else=(Text to display otherwise)
}}

The third argument is optional.