Template:Strikethrough: Difference between revisions

shortcuts: {{Strike}} {{S}}
From wikiNonStop
Content added Content deleted
(why on earth do you need a separate span for this? any attribute valid with span is also valid on all other html elements, there are no exceptions)
(No difference)

Revision as of 22:44, 29 June 2022

{{{1}}}

Template documentation


{{Strikethrough }} draws a line through the text provided in the first unnamed parameter. The template embeds 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 this template, however, to indicate document edits; instead, to mark a span of text as having been removed from a document, use ‎<del>...‎</del>, which is aesthetically similar. This template should be used within one block (paragraph); it should not wrap around multiple paragraphs or even multiple bullet points. See how to wrap a block of text below for a different template that can wrap multiple lines.

Example

Markup Renders as
{{strikethrough|HyperText Markup Language}}
HyperText Markup Language

How to wrap a block of text

To wrap text that contains line breaks, use {{Strikethroughdiv }} instead.


Markup Renders as
{{strikethroughdiv|
* This
* That
* And another thing}}
Template:Strikethroughdiv

See also