模板:For
此模板被引用於約6,400個頁面。 為了避免造成大規模的影響,所有對此模板的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此模板中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
此模板使用Lua語言: |
此模板生產一個包含條目或者消歧義頁面鏈接頂注;可以接受0-5個參數。
例如通過{{For|用於創建for循環的模板|Template:For loop}}
會呈現:
範例
假設頁面名稱是 Foo :
- 第一個參數修改頂注本身因此應該是純文本,比如
{{For|相似術語}}
顯示結果為:
- 第二個參數用於改變結果中的鏈接,比如
{{For|相似術語|Foobar}}
顯示結果為:
- 第三、四、五個參數可以用於給出不同數量的補充鏈接:
最後一個通過{{For|相似術語|Foobar|Bar|Baz|Quux}}
生成。
模板數據
This template lists up to four articles on alternative meanings of a term. For further details and examples see the template documentation.
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
Description | 1 | a phrase describing the major alternative, or a general term for all alternative meanings
| 字串 | 非必填 |
First link | 2 | A page to link to; usually a disambiguation page or the most likely other meaning.
| 頁面名稱 | 非必填 |
Second link | 3 | A page to link to for another meaning, if any. | 頁面名稱 | 非必填 |
Third link | 4 | A page to link to for another meaning, if any. | 頁面名稱 | 非必填 |
Fourth link | 5 | A page to link to for another meaning, if any. | 頁面名稱 | 非必填 |
|
上述文件嵌入自Template:For/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (編輯 | 差異)和測試樣例 (編輯)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |