Template:Strikethrough color/doc
Appearance
This is a documentation subpage for Template:Strikethrough color. It may contain usage information, categories and other content that is not part of the original template page. |
This template formats the given text with a strikethrough whose line can be a different color than the text itself. By default, the strikethough line is red and the text color is unchanged, but these are separately controllable by passing parameters.
This template is implemented using CSS. It sets the line color using the text-decoration-color
CSS property, passing red
as the default value if no |linecolor=
parameter is supplied. The text color will be inherited from the parent styling, unless overridden with a |textcolor=
parameter.
Examples
[edit]Markup | Renders as |
---|---|
{{Strikethrough color|deleted}}
|
deleted |
{{Strikethrough color|deleted|linecolor=green}}
|
deleted |
{{Strikethrough color|deleted|textcolor=blue}}
|
deleted |
{{Strikethrough color|deleted|textcolor=red|linecolor=white}}
|
deleted |