Toggle menu
15
236
81
27.8K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 05:07, 22 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} {{template redirect|ExistNotRedirect}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{Lua|Module:Exist not redirect}} 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 nothing. == Usage == '''{{tlx|Exist not redirect | pagename}}''' '''Parameters:''' * One pa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 nothing.

Usage

{{Exist not redirect|pagename}}

Parameters:

  • One page name

Examples

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