模板:For

模板页面
文档图示 模板文档[查看] [编辑] [查看历史] [清除缓存]

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

例如通过模板链接:{{For|用于创建for循环的模板|Template:For loop}}会呈现:

范例

假设页面名称是 Foo

  • 第一个参数修改顶注本身因此应该是纯文本,比如模板链接:{{For|相似术语}}显示结果为:
  • 第二个参数用于改变结果中的链接,比如模板链接:{{For|相似术语|Foobar}}显示结果为:
  • 第三、四、五个参数可以用于给出不同数量的补充链接:

最后一个通过模板链接:{{For|相似术语|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:For/doc编辑 | 历史
编者可以在本模板的沙盒创建 | 镜像和测试样例创建页面进行实验。
请将模板自身所属的分类添加在文档中。本模板的子页面