Ta̱mpi̱let:Ifexist not redirect/doc
Li
This is a documentation subpage for Ta̱mpi̱let:Ifexist not redirect. It contains usage information, categories and other content that is not part of the original ta̱mpi̱let page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Usage
[jhyuk a̱tyin ka]The {{Ifexist not redirect}} template can be used to identify a page which exists, is not blank, and is not a redirect; whereas {{ifexist}}
will only check whether the page exists.
Use the format
{{Ifexist not redirect|page|return if true|return if false}}
. The 2nd and 3rd parameters are used to define the output of the template if the condition is true or false, respectively. If not defined the default output is "yes" if true and empty if false.
Examples
[jhyuk a̱tyin ka]Existing article
[jhyuk a̱tyin ka]{{Ifexist not redirect|List of Doctor Who episodes (1963–1989)|true|false}}
false
{{#ifexist:List of Doctor Who episodes (1963–1989)|true|false}}
false
Redirect
[jhyuk a̱tyin ka]{{Ifexist not redirect|List of Daredevil episodes|yes|no}}
no
{{#ifexist:List of Daredevil episodes|yes|no}}
no
Empty article
[jhyuk a̱tyin ka]{{Ifexist not redirect|Template:Ifexist not redirect/testpage|yes|no}}
no
{{#ifexist:Template:Ifexist not redirect/testpage|yes|no}}
no
Non-existent article
[jhyuk a̱tyin ka]{{Ifexist not redirect|Green Arrow episodes|1|0}}
0
{{#ifexist:Green Arrow episodes|1|0}}
0
Default output
[jhyuk a̱tyin ka]{{Ifexist not redirect|List of Doctor Who episodes (1963–1989)}}
{{Ifexist not redirect|List of Daredevil episodes}}