Template:Exist not redirect/sandbox
(Redirected from Template:ExistNotRedirect/sandbox)
This is the template sandbox page for Template:Exist not redirect (diff). See also the companion subpage for test cases. |
This template is used on approximately 52,000 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: |
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
edit{{Exist not redirect|pagename}}
Parameters:
- One page name
Examples
edit- A page which exists:
{{Exist not redirect|Japan}}
→ Japan - 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}}
→ - Another page which exists:
{{Exist not redirect|Portal:History}}
→ Portal:History - A page which does not exist:
{{Exist not redirect|Portal:Computing in 1066}}
→ - A page which exists, but is a redirect:
{{Exist not redirect|Portal:Contents}}
→