模板:For/sandbox
頁面Module:Message box/mbox.css沒有內容。
| File:Sandbox.svg | 這是Template:For(差異)的沙盒。 參見本模板的測試樣例。 |
| 警告 | 此模板沙盒被引用於約4,000個頁面。 為了避免造成大規模的影響,所有對此模板沙盒的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此模板沙盒中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
| File:Lua-Logo.svg | 此模板使用Lua語言: |
此模板生產一個包含條目或者消歧義頁面連結頂注;可以接受0-5個參數。
例如通過{{For|用于创建for循环的模板|Template:For loop}}會呈現:
package.lua第80行Lua錯誤:module 'Module:Format link' not found
範例[編輯]
假設頁面名稱是 Foo :
- 第一個參數修改頂注本身因此應該是純文本,比如
{{For|相似术语}}顯示結果為:
package.lua第80行Lua錯誤:module 'Module:Format link' not found
- 第二個參數用於改變結果中的連結,比如
{{For|相似术语|Foobar}}顯示結果為:
package.lua第80行Lua錯誤:module 'Module:Format link' not found
- 第三、四、五個參數可以用於給出不同數量的補充連結:
package.lua第80行Lua錯誤:module 'Module:Format link' not found
package.lua第80行Lua錯誤:module 'Module:Format link' not found
package.lua第80行Lua錯誤:module 'Module:Format link' not found
最後一個通過{{For|相似术语|Foobar|Bar|Baz|Quux}}生成。
模板數據[編輯]
<templatedata> { "description": "This template lists up to four articles on alternative meanings of a term. For further details and examples see the template documentation.", "params": { "1": { "label": "Description", "description": "a phrase describing the major alternative, or a general term for all alternative meanings", "default": "other uses", "type": "string", "required": false, "example": "other people with the surname Smith" }, "2": { "label": "First link", "description": "A page to link to; usually a disambiguation page or the most likely other meaning.", "default": "For/sandbox (disambiguation)", "type": "wiki-page-name", "required": false }, "3": { "label": "Second link", "description": "A page to link to for another meaning, if any.", "type": "wiki-page-name", "required": false }, "4": { "label": "Third link", "description": "A page to link to for another meaning, if any.", "type": "wiki-page-name", "required": false }, "5": { "label": "Fourth link", "description": "A page to link to for another meaning, if any.", "type": "wiki-page-name", "required": false } }, "format": "inline" } </templatedata> package.lua第80行Lua錯誤:module 'Module:Navbar/configuration' not found