模板: Ifexists

出自 Sdorica 萬象物語 Wiki
前往: 導覽搜尋

Documentation icon 模板文件 [檢視] [編輯] [歷史] [清除快取]

概要

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.

使用方法

{{ 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.

redirects =

Optional. exclude or only (defaults to include)

ns =

Optional. Defaults to main namespace.