Wiktenauer logo.png

Difference between revisions of "Template:Dec"

From Wiktenauer
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<span style="text-decoration: {{#switch: {{{1|}}}
 
<span style="text-decoration: {{#switch: {{{1|}}}
 
  | o = overline
 
  | o = overline
  | s = strikethrough
+
  | s = line-through
 
  | u = underline
 
  | u = underline
 +
| d = underline; text-decoration-style: double
 
}};">{{{2|}}}</span><noinclude>{{documentation}}</noinclude>
 
}};">{{{2|}}}</span><noinclude>{{documentation}}</noinclude>

Latest revision as of 04:49, 13 April 2025

[edit] [history] [purge] Documentation icon Template documentation

This template is used to quickly apply the CSS property decoration to a string of text. It accepts three parameters, though only one can be used per instance of the template:

Parameter Effect Syntax Example
o Overline {{dec|o|Sample string}} Sample string
s Line-through {{dec|s|Sample string}} Sample string
u Underline {{dec|u|Sample string}} Sample string
all Multiple decorations {{dec|o|{{dec|s|{{dec|u|Sample string}}}}}} Sample string