Template:Strike: Difference between revisions
Jump to navigation
Jump to search
Template cribbed from Blue Prism (well, I wrote it) |
m Usage -> Description |
||
| Line 1: | Line 1: | ||
<includeonly><div style="display:inline; color:#777; cursor:default; text-decoration:line-through;" title="{{{2|}}}">{{{1}}}</div></includeonly><noinclude> | <includeonly><div style="display:inline; color:#777; cursor:default; text-decoration:line-through;" title="{{{2|}}}">{{{1}}}</div></includeonly><noinclude> | ||
== | == Description == | ||
Template for striking out some text with an optional explanation | Template for striking out some text with an optional explanation | ||
Latest revision as of 14:43, 18 October 2021
Description
Template for striking out some text with an optional explanation
Examples
The following examples will show how to use this template.
Basic Usage
The first parameter is the markup to show struck out.
{{strike|Task 1: Write usage notes for ''Strike'' template}}
will result in:
Task 1: Write usage notes for Strike template
Tooltip Parameter
A second parameter gives a 'tooltip' active on the struck out content.
{{strike|Task 2: Explain how to use the 'hover' parameter|The second parameter will give a 'hover' tool tip on the text}}
would display:
Task 2: Explain how to use the 'hover' parameter
Hover over it to see the explanatory tooltip.
Complex Markup
You can put any wiki markup into the text to display, eg.
{{strike|
* This is a list
* of a number of
* elements, including
*# A numbered sublist
*# with only two elements|
List is now obsolete - actually wasn't much use in the first place}}
will display:
- This is a list
- of a number of
- elements, including
- A numbered sublist
- with only two elements