Permanently protected template

Template:Overline: Difference between revisions

From Vigyanwiki
(Created page with "{{#if:{{{2|}}}|{{{1|}}}}}<span style="text-decoration:overline;">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</span><noinclude> {{documentation}} <!-- Add cats and interwikis to the /doc...")
m (1 revision imported from alpha:Template:Overline)
 
(2 intermediate revisions by one other user not shown)
(No difference)

Latest revision as of 08:57, 17 December 2022

{{{1}}}

Template documentation

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