Predloga:ExistNotRedirect
Videz
![]() | Predloga se uporablja na številnih straneh, zato bo vsaka njena sprememba takoj zelo opazna. Prosimo, da vse spremembe, ki jih želite uvesti, pred uvedbo preizkusite na podstraneh predloge (/peskovnik in /testniprimeri) ali na svojih lastnih podstraneh. Pred spreminjanjem te predloge se o želenih spremembah rajši pogovorite na pogovorni strani. |
![]() | Uporablja 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 a blank
Usage
[uredi kodo]{{ExistNotRedirect|pagename}}
Parameters:
- One page name
- Examples
- A page which exists:
{{ExistNotRedirect|Japan}}
→ - A page which does not exist:
{{ExistNotRedirect|The exciting story of paint drying in a small town in Japan one day in April 1927}}
→ - Another page which exists:
{{ExistNotRedirect|Portal:History}}
→ - A page which does not exist:
{{ExistNotRedirect|Portal:Computing in 1066}}
→ - A page which exists, but is a redirect:
{{ExistNotRedirect|Portal:Contents}}
→