模板:For/doc

維基教科書,自由的教學讀本

(上述通過{{For|用於創建for循環的模板|Template:For loop}}實現。)

此模板生產一個包含條目或者消歧義頁面鏈接頂注。可以接受0-5個參數。在沒有參數的情況下,假設頁面名稱是Foo則顯示結果為:

第一個參數修改頂注本身因此應該是純文本,比如{{For|相似術語}}生成:

第二個參數用於改變結果中的鏈接,比如{{For|相似術語|Foobar}}產生:

第三、四、五個參數可以用於給出不同數量的補充鏈接:

最後一個通過{{For|similar terms|Foobar|Bar|Baz|Quux}}生成。

模板數據[編輯]

這是用於新版視覺化編輯器及其他工具的模板資料文件。

For模板資料

This template lists up to four articles on alternative meanings of a term. For further details and examples see the template documentation.

模板參數

此模板以參數行內格式為優先。

參數描述類型狀態
Description1

a phrase describing the major alternative, or a general term for all alternative meanings

預設
other uses
範例
other people with the surname Smith
字串選填
First link2

A page to link to; usually a disambiguation page or the most likely other meaning.

預設
{{PAGENAME}} (disambiguation)
頁面名稱選填
Second link3

A page to link to for another meaning, if any.

頁面名稱選填
Third link4

A page to link to for another meaning, if any.

頁面名稱選填
Fourth link5

A page to link to for another meaning, if any.

頁面名稱選填

Template:Hatnote templates