模板:Don't edit this line
| File:Lua-Logo.svg | 此模板使用Lua语言: |
| 警告 | 此模板被引用于约58,000个页面。 为了避免造成大规模的影响,所有对此模板的编辑应先于沙盒、测试样例或您的沙盒上测试。 测试后无误的版本可以一次性地加入此模板中,但是修改前请务必于讨论页发起讨论。 模板引用数量会自动更新。 |
概要[编辑]
本模板主要用于Template:Taxonomy/XXX系列模板,目的是调用模块:Autotaxobox的“callTaxonomyKey”功能以在Template:Taxonomy/XXX生成可视的表格。
参数及使用方法[编辑]
{{Don't edit this line {{{machine code|}}}
| scientific_name =
| parent =
| rank =
| link =
| link_target =
| link_text =
| extinct =
| refs =
| always_display =
| same_as =
}}
<templatedata> { "params": { "scientific_name": { "label": "学名", "description": "分类单元的学名,必须是拉丁文", "type": "string",
"required": true
}, "parent": { "label": "父类群", "description": "上级分类单元的学名,必须是拉丁文", "type": "string",
"required": true
}, "rank": { "label": "分类层级", "description": "分类层级,用拉丁文表示", "type": "string",
"required": true
}, "link": { "label": "条目链接", "description": "中文名,会产生link的条目链接。可以使用|,但用link_target或link_text会更有效;不建议使用“|”,在原模板叙述上会不正确显示,并会在某些情况下失效", "type": "string",
"required": true
},
"link_target": {
"label": "条目链接内链",
"description": "会产生link的条目链接,",
"type": "string"
},
"link_text": {
"label": "条目链接显示",
"description": "会产生link_text的条目链接,与“link_target”同时使用会产生link_text,并忽略“link”",
"type": "string"
},
"extinct": {
"label": "是否灭绝",
"description": "“yes”及“true”会产生“†”,“no”、“false”及空置则否",
"type": "string"
},
"always_display": {
"label": "总是显示",
"description": "“yes”及“true”用来强制显示非主要层级,默认隐藏在主要层级以上的次要层级(主要层级:界、门、纲、目、科、属、种)",
"type": "string"
},
"refs": {
"label": "参考资料",
"description": "建议使用引用模板,不使用引用错误:<ref>标签无效;没有name(名称)的ref(参考)必须有内容引用标签",
"type": "content"
},
"same_as": {
"label": "相同分类单元",
"description": "相同分类单元的学名;如果本模板是异名或已弃用的等义分类,可用于指定有效分类模板,本模板空置的参数会直接被指定模板的内容取代,也可选择性保留一些参数来显示差异(如需要),这可以省却“条目逐条更换模板”之不便。",
"type": "string"
}
},
"paramOrder": [
"scientific_name",
"parent",
"rank",
"link",
"link_target",
"link_text",
"extinct",
"always_display",
"refs",
"same_as"
],
"format": "block"
}
</templatedata>
示例[编辑]
- {{Taxonomy/Homo}}
- {{Taxonomy/Aves}}
- {{Taxonomy/Aves/skip}}
- {{Taxonomy/Dinosauria}}
- {{Taxonomy/Angiosperma}}
- {{Taxonomy/Ornithischia}}
- {{Taxonomy/Cirrhitidae}}
重定向[编辑]
注意事项[编辑]
模板编辑说明[编辑]
参见[编辑]
下述模板会应本模板的参数而被调用,
- Template:Don't edit this line parent
- Template:Don't edit this line rank
- Template:Don't edit this line link -
|link=是|link_target=与|link text=的默认值 - Template:Don't edit this line link target
- Template:Don't edit this line link text
- Template:Don't edit this line extinct
- Template:Don't edit this line dagger – 生成 †
- Template:Don't edit this line always display
- Template:Don't edit this line refs
- Template:Don't edit this line same as
- Template:Don't edit this line all