Help:Wikitext: Difference between revisions

Content deleted Content added
Strikethrough: add code explaining how to avoid Linter misnested tag errors
Line 1,688:
===<span class="anchor" id="Strikethrough"></span> Strikethrough ===
{{see also|Help:HTML in wikitext#s}}
The {{tl|Strikethrough}} template marks up aan inline span of text with the {{tag|s}} tag. This is usually rendered visually by drawing a horizontal line through it. Outside of 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. For that, use the {{tag|del}} tag instead. See {{slink||Show deleted or inserted text}} for details.
 
The {{tl|Strikethrough}} template and {{tag|s}} tag are for inline content only; to strike out a block of text, such as a multi-line talk page post, use either {{tl|Strikethroughdiv}} or <syntaxhighlight lang=wikitext inline><div style="text-decoration: line-through"></div></syntaxhighlight> to render the entire block with strikethrough markup.
{| class=wikitable
!What you type
Line 1,695 ⟶ 1,697:
|<kbd><nowiki>This is {{</nowiki>'''Strikethrough'''<nowiki>|an obsolete stretch of text}} for comparison</nowiki></kbd>
|This is {{Strikethrough|an obsolete stretch of text}} for comparison
|-
|<kbd><nowiki>This is {{</nowiki>'''Strikethroughdiv'''<nowiki>|{{ubl|an obsolete bulleted list|with two items}}}} for comparison</nowiki></kbd>
|This is {{Strikethroughdiv|{{ubl|an obsolete bulleted list|with two items}}}} for comparison
|}