Template:Strikethrough/doc: Difference between revisions

From WIDEVERSE Wiki
Jump to navigation Jump to search
m (Reverted edits by 166.182.255.115 (talk): unexplained content removal (HG) (3.4.9))
 
m (1 revision imported)
 
(No difference)

Latest revision as of 18:42, 18 February 2020

{{Strikethrough}} draws a line through the text that is its parameter. This is done by embedding the parameter in an HTML ‎<s>...‎</s> element, producing output such as: this, i.e. text with a line drawn through its middle. Outside articles, it can be used to mark something as no longer accurate or relevant without removing it from view. Do not use it, however, to indicate document edits; to mark a span of text as having been removed from a document, use ‎<del>...‎</del>. This template should be used within one block (paragraph); it should not wrap around multiple paragraphs or even multiple bullet points. See the example below for wrapping multiple bullets.

Example

Markup
Output
{{strikethrough|HyperText Markup Language}}

HyperText Markup Language

Alternative markup for multiple blocks

Markup
Output
<div style="text-decoration: line-through">
* This
* That
* And another thing</div>
  • This
  • That
  • And another thing

See also