「模板: Ifexists」修訂間的差異

出自 Sdorica 萬象物語 Wiki
前往: 導覽搜尋
(已建立頁面,內容為 "<includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</inclu…")
 
(+Param: skipthispage)
 
行 1: 行 1:
<includeonly>{{ #if: {{ #dpl: skipthispage = false | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>{{doc}}</noinclude>
+
<includeonly>{{ #if: {{ #dpl: skipthispage = {{{skipthispage|false}}} | redirects = {{{redirects|include}}} | title = {{{1|}}} | namespace = {{{ns|}}}}} | {{{3|}}} | {{{2|}}} }}</includeonly><noinclude>{{doc}}</noinclude>

於 2019年7月11日 (四) 21:16 的最新修訂

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.