模板:Overline/doc

来自决策链云智库
< 模板:Overline
Zeroclanzhang讨论 | 贡献2024年1月22日 (一) 21:26的版本 (创建页面,内容为“<noinclude>{{Documentation subpage}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{high-use| 1377 }} Produces an overline. <code><nowiki>{{overline|RESET}}</nowiki></code> gives {{overline|RESET}}. For a single letter, the Unicode combining accent U+0305 is a possible alternative: <code>x&#x0305;</code> or <code>x&#773;</code> produces x̅. For multiple letters, use the Unicode method when it is not desired for the overline to…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Produces an overline. {{overline|RESET}} gives RESET. For a single letter, the Unicode combining accent U+0305 is a possible alternative: x&#x0305; or x&#773; produces x̅. For multiple letters, use the Unicode method when it is not desired for the overline to be continuous: {{overline|x}}{{overline|x}}{{overline|T}}{{overline|T}} gives xxTT; x&#x305;x&#773;T&#773;T&#773; gives 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.

Parameters

There is a mandatory first parameter, followed by an optional second parameter. If the second parameter is used, only the second parameter will be under the overline.

  • {{overline|EXIT}}EXIT
  • {{overline|12.|3}} → 12.3

The second produces exactly the same formatted output as 12.{{overline|3}}, but may be preferred when formatting repeating decimal numbers as it is easier to see the number in the wikitext.

See also


This template applies an overline. Useful for displaying repeating fractions, like 1/3.

模板参数

参数描述类型状态
11 (Repeating)1

Number to be repeated.

示例值
142857
数字必需
22

Parameter to be repeated if parameter "1" doesn't repeat.

示例值
142857
数字可选
1 (Nonrepeating)1 (Nonrepeating)1

Nonrepeating part of a number. If this parameter is used, "2" MUST be used as the repeater.

示例值
12
数字可选