Difference between revisions of "Template:ExistNotRedirect/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
(done)
imported>Uzume
(+cat)
Line 22: Line 22:
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:Disambiguation and redirection templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 03:07, 11 December 2019

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 rediect:
    {{ExistNotRedirect|Portal:Idaho}}