欢迎来到骷髅女孩WIKI,一个服务于小众、致力于中文本地化的WIKI。
目前团队人手不足,如果你对搬运、翻译或编写中文资料感兴趣的话,请到QQ群127859346咨询,
或者私信站长:Junchnzy,管理员:圈圈菌Q、极致の小蝶。
欢迎来到骷髅女孩WIKI,一个服务于小众、致力于中文本地化的WIKI。目前团队人手不足,如果你对搬运、翻译或编写中文资料感兴趣的话,请到QQ群127859346咨询。查看角色出招表请使用电脑浏览器。
模板:W/文档
本文內容包括由中文維基百科的 模板:W/文档條目而來的 CC-BY-SA 內容。 (作者) |
Linkless exists checks whether a page exists. It differs from alternatives such as #ifexist: in that the page containing this template is not recorded as linking to or transcluding the page being checked. This has the advantage of avoiding spurious wikilinks, especially to disambiguation pages which should not have incoming links, but has the disadvantage that the containing page may not be updated automatically if the checked page is created or deleted later.
Usage
The template requires one parameter: the name of the page to be checked. Include a namespace where necessary. There are two other optional parameters: the text to appear if the page is present, and the text to appear if it is absent. By default, these are set to "true" and "", which evaluate as true and false respectively within expressions. {{Linkless exists|Main Page|working|broken}}
is an efficient shortcut for {{#if:{{Linkless exists|Main Page}}|working|broken}}
.
TemplateData
Linkless exists checks whether a page exists without recording a wikilink or transclusion
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
1 | 1 | The name of the page to be checked | 字符串 | 必填 |
2 | 2 | The text to appear if the page is present
| 字符串 | 可选 |
3 | 3 | The text to appear if the page is absent
| 字符串 | 可选 |