模板:See also if exists/doc

来自决策链云智库
< 模板:See also if exists
Zeroclanzhang讨论 | 贡献2024年1月21日 (日) 21:06的版本 (创建页面,内容为“{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Lua|Module:Labelled list hatnote}} 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 exist, the template does nothing. It allows the creation of links to pages which do not exist yet, but which will be displayed if and when the page is created. This is useful w…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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 exist, the template does nothing.

It allows the creation of links to pages which do not exist yet, but which will be displayed if and when the page is created. This is useful when articles/topics are being developed, because editors do 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
  1. A page which does exist:
    {{See also if exists|Poland}}
  2. A non-existent page:
    {{See also if exists|1997 Presidential election in Planet Zxcvbmm}}
  3. A set of pages, some of which exist:
    {{See also if exists | Argentina| | James Balfour (died 1845) | asdfghij2345 | Dinosaurs | poiytrewq6789 | zzzzzzzzy | Novels }}

See also