模板:Link
模板介绍与使用方法[编辑]
<templatedata> { "params": { "1": { "aliases": [ "url" ], "label": "连结目标", "type": "wiki-page-name", "required": true }, "2": { "label": "连结目标部分 (2)", "description": "连结目标的一部分,会直接串接在连结目标后面", "type": "string" }, "3": { "label": "连结目标部分 (3)", "description": "连结目标的一部分,会直接串接在连结目标后面", "type": "string" }, "4": { "label": "连结目标部分 (4)", "description": "连结目标的一部分,会直接串接在连结目标后面。最多可使用到20" }, "type": { "label": "连结模式", "description": "生成连结的模式,可以是edit、link或不指定" }, "display": { "label": "显示名称", "type": "content" }, "tip": { "label": "提示文字", "type": "string" }, "link": { "label": "连结页面 (link模式)", "description": "link模式下连结的页面", "type": "wiki-page-name" }, "name": { "label": "显示名称 (link模式)", "description": "link模式下的显示名称", "type": "content" }, "type1": { "label": "连结模式 (link模式)", "description": "link模式下的连结模式" }, "oldid": { "type": "number" } }, "description": "生成不同连结" } </templatedata>
范例[编辑]
- {{Link|AA|BB}}=AABB
- {{Link|url=http://zh.wikipedia.org/w/index.php?title=Template:Link/doc|BB}}=BB
- {{Link|File:wiki.png|BB}}=File:wiki.pngBB
- {{Link|url=File:wiki.png|BB}}=File:Wiki.png
- {{Link|256|二百五十六|tip=編輯時要注意相關指引唷!|type=edit}}=256