Template:For/doc

来自Local Chinese Wikipedia
跳转到导航 跳转到搜索

脚本错误:没有“Message box”这个模块。 脚本错误:没有“High-use”这个模块。 Template:Lua

此模板生产一个包含条目或者消歧义页面链接顶注;可以接受0-5个参数。

例如通过脚本错误:没有“Tlg”这个模块。会呈现:

脚本错误:没有“For”这个模块。

范例[编辑]

假设页面名称是 Foo

  • 第一个参数修改顶注本身因此应该是纯文本,比如脚本错误:没有“Tlg”这个模块。显示结果为:

脚本错误:没有“For”这个模块。

  • 第二个参数用于改变结果中的链接,比如脚本错误:没有“Tlg”这个模块。显示结果为:

脚本错误:没有“For”这个模块。

  • 第三、四、五个参数可以用于给出不同数量的补充链接:

脚本错误:没有“For”这个模块。 脚本错误:没有“For”这个模块。 脚本错误:没有“For”这个模块。 最后一个通过脚本错误:没有“Tlg”这个模块。生成。

模板数据[编辑]

Template:TemplateDataHeader <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/doc (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> Template:Hatnote templates