ഫലകം:Bar/doc

വിക്കിഗ്രന്ഥശാല സംരംഭത്തിൽ നിന്ന്

Usage[തിരുത്തുക]

The template gives an inline straight line, sometimes used to mark redactions, missing text or the continuation of a excerpt.

You should not use a sequence of em-dashes to produce this effect, as with some browsers or fonts this appears as a dashed line. This template is not suitable for a centred dividing line - the template {{rule}} is for that.

There is one parameter, the length of the line, in "ems", which default to "6" if left out.

Examples[തിരുത്തുക]

{{bar}}{{lorem ipsum}}

——————Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.

<poem>
{{bar|3}}continued line
whole line here, which is all very well until
half a line{{bar|3}}
</poem>

———continued line
whole line here, which is all very well until
half a line———

Technical[തിരുത്തുക]

This template uses two "span" tags, one to give the strike-though and one inside that holding invisible em-dashes. This has the following benefits:

  • does not use the deprecated (in HTML 4.01) and redefined (in HTML 5) <s> tag
  • copy-pastes as em-dashes (—) instead of blank space
  • shows em-dashes if CSS is disabled or not available

See also[തിരുത്തുക]


"https://ml.wikisource.org/w/index.php?title=ഫലകം:Bar/doc&oldid=73534" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്