Template:See also if exists/doc
From HandWiki
< Template:See also if exists
Revision as of 17:11, 19 January 2021 by imported>Jworkorg (1 revision imported)
![]() | This is a documentation subpage for Template:See also if exists It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
Displays a "see also" link to one or more pages, followed by a line break, if the page exists. If none of the supplied pages exists, the template does nothing.
It allows the creation of links to pages which do not yet exist, but which will be displayed if and when the category is created. This is useful as a topic is being developed, because the editor does not have to guess whether a target page is likely to exist any time soon: the link can be created now, rather than having to edit the page again later.
Usage
- Usual syntax
{{See also if exists|page}}
{{See also if exists|page1|page2|page3|...}}
Parameters:
- At least one page name
- Examples
- A page which does exist:
{{See also if exists|Poland}}
→ Script error: No such module "See also if exists". - A non-existent page:
{{See also if exists|1997 Presidential election in Planet Zxcvbmm}}
→ Script error: No such module "See also if exists". - A set of pages, some of which exist:
{{See also if exists | Argentina| | James Balfour (died 1845) | asdfghij2345 | Dinosaurs | poiytrewq6789 | zzzzzzzzy | Novels }}
→ Script error: No such module "See also if exists".
See also
- {{See also}}
- {{Category see also if exists 2}} – includes a fallback category which is tried if the first does not exist
- {{Category see also}}
- {{Link if exists}}