Difference between revisions of "Template:ExistNotRedirect/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Trialpears
(substitutable)
imported>Psiĥedelisto
(Sandbox should use sandbox...obviously :-))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{{{{|safesubst:}}}#invoke: ExistNotRedirect | main}}<noinclude>
+
{{{{{|safesubst:}}}#invoke: ExistNotRedirect/sandbox | main}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
[[Category:Disambiguation and redirection templates]]
 
[[Category:Disambiguation and redirection templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 07:35, 11 July 2020

Template documentation[view] [edit] [history] [purge]

Checks whether a page exists and is not a redirect.

If the pagename both exists AND is not a redirect, it returns the pagename.

Otherwise, it returns a blank

Usage

{{ExistNotRedirect | pagename}}

Parameters:

  • One page name
Examples
  1. A page which exists:
    {{ExistNotRedirect|Japan}}
  2. A page which does not exist:
    {{ExistNotRedirect|The exciting story of paint drying in a small town in Japan one day in April 1927}}
  3. Another page which exists:
    {{ExistNotRedirect|Portal:History}}
  4. A page which does not exist:
    {{ExistNotRedirect|Portal:Computing in 1066}}
  5. A page which exists, but is a redirect:
    {{ExistNotRedirect|Portal:Idaho}}