求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

Template:If pagename/doc

增加 1,805 位元組, 6 年前
無編輯摘要
<includeonly><!-- 在這裡加入模板的保護標識 --></includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
{{high-risk|530000+}}
<!-- 在本行下編輯模板說明 -->
== 模板介紹 ==

== 使用方法 ==
<pre><nowiki>{{if pagename
<!-- Match on full pagename -->
| User:Example/test = Text for "User:Example/test".
| User:Example = Text for "User:Example".
| User talk:Example = Text for "User talk:Example".

<!-- Match on full basepage name, when on a basepage or its subpages -->
| User:Example/+ = Matches "User:Example" and "User:Example/test".

<!-- Match on pagename, when on a basepage -->
| Example = Matches "User:Example", "User talk:Example", "Template:Example"
and so on, but not "User:Example/something".

<!-- Match on full basepage name, when on a subpage -->
| User:Example/* = Matches "User:Example/something", but not "User:Example".
| User talk:Example/* = Matches "User talk:Example/something".

<!-- Match on basepage name, when on a subpage -->
| Example/* = Matches "User:Example/something" and "User talk:Example/something".

<!-- Match on subpage name -->
| /something = Any pagename that ends in "/something".
| /doc = Any pagename that ends in "/doc".

<!-- Match on partial subpage name (case-insensitive) -->
| /some* = Any subpage name beginning with "/some" or "/Some".
| /arch* = Matches "User talk:Example/Archive 1".

<!-- Default fallbacks -->
| basepage = Text for any basepage.
| subpage = Text for any subpage.
| other = Text for any page.
}}</nowiki></pre>
== 範例 ==

== 注意事项 ==

== 參見 ==

== 给模板编辑者的说明 ==
=== 模板结构 ===
=== 实现方法 ===
=== 编辑注意 ===

<includeonly>
<!-- 本行下加入模板的分類 -->

<!-- 本行下加入模板的跨語言鏈接 -->

</includeonly>
匿名用戶