模板:Overline/doc
| File:Edit-copy green.svg | 此页面是Template:Overline的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
产生文本上方横线,例如{{overline|RESET}}会产生RESET。对单个字母,可能可以使用Unicode组合字符U+0305:x̅或x̅产生x̅。对于多个字母,如果不需要上方横线连贯,可以使用Unicode方法:{{overline|x}}{{overline|x}}{{overline|T}}{{overline|T}}产生xxTT;x̅x̅T̅T̅产生x̅x̅T̅T̅。The wikitext may be rendered easier to read by using the Unicode method, previewing the page, and copying and pasting the overlined text into the wikitext.
参数[编辑]
第一个参数是必需的,第二个参数是可选的。如果使用了第二个参数,只有第二个参数会显示在横线下方。
{{overline|EXIT}}→ EXIT{{overline|12.|3}}→ 12.3
后者产生的结果和12.{{overline|3}}一样,但在格式化西方习惯的循环小数时更为推荐,因为在wikitext中更容易看到数字。
模板数据[编辑]
<templatedata> { "params": { "1": { "label": "第一个参数", "description": "被添加横线的文本(如果参数2为空),或者文本前不添加横线的文本", "example": "142857", "type": "number", "required": true }, "2": { "description": "被添加横线的文本", "example": "142857", "type": "number", "label": "第二个参数" } }, "description": "此模板用于在文本上方添加横线。", "paramOrder": [ "1", "2" ] } </templatedata>
参见[编辑]
- {{Overarc}}
- {{Underline}}
- {{Strikethrough}}
- {{Vector}}