模板:Ifexists
跳至導覽
跳至搜尋
Documentation The documentation below is transcluded from Template:Ifexists/doc. (edit | history)
![Template-info.svg](https://commons.wiki.gg/images/thumb/4/4c/Template-info.svg/50px-Template-info.svg.png)
[purge]
This template is similar to {{ #ifexist: }} as it checks the existence of the given page. The difference is that the checked page is not added to Wanted pages.
Usage
{{ ifexists|(pagename)|(then)|(else) }}
- unnamed parameter 1
Pagename without braces, including namespace.
- unnamed parameter 2
Optional. Wikitext if page exists.
- unnamed parameter 3
Optional. Wikitext if page does not exists.
分類:
- Templates