Difference between revisions of "Template:UL"

From Ouroboros Portal
Jump to: navigation, search
(+a quick and dirty bit of documentation)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#switch:{{{2}}}
 
{{#switch:{{{2}}}
|dot  = <span style="text-decoration: none; border-bottom: 1px dotted;">{{{1}}}</span>
+
|Dot
|#default = <u>{{{1}}}</u>}}<noinclude>[[Category:Formatting templates]]</noinclude>
+
|Dotted
 +
|dotted
 +
|dot  = <span style="border-bottom: 1px dotted;">{{{1}}}</span>
 +
|Line under
 +
|Line
 +
|line under
 +
|LU
 +
|line  = <span style="border-bottom: 1px solid;">{{{1}}}</span>
 +
|#default = <u>{{{1}}}</u>}}<noinclude>
 +
== Usage and Examples ==
 +
This template can be used to create a few different styles of underline.
 +
 
 +
* By default (no additional parameter) this template will do a regular underline.
 +
** <nowiki>{{UL|Example text!}}</nowiki>, which results in: {{UL|Example text!}}
 +
 
 +
* Using the ''line'' parameter will do a single line under.
 +
** <nowiki>{{UL|Example text!|line}}</nowiki>, which results in: {{UL|Example text!|line}}
 +
** Notice that the line appears below characters with "descenders."
 +
 
 +
* Using the ''dot'' or ''dotted'' parameter will do a dotted line under.
 +
** <nowiki>{{UL|Example text!|dot}}</nowiki>, which results in: {{UL|Example text!|dot}}
 +
 
 +
 
 +
[[Category:Formatting templates]]</noinclude>

Latest revision as of 08:58, 25 July 2012

{{{1}}}

Usage and Examples

This template can be used to create a few different styles of underline.

  • By default (no additional parameter) this template will do a regular underline.
    • {{UL|Example text!}}, which results in: Example text!
  • Using the line parameter will do a single line under.
    • {{UL|Example text!|line}}, which results in: Example text!
    • Notice that the line appears below characters with "descenders."
  • Using the dot or dotted parameter will do a dotted line under.
    • {{UL|Example text!|dot}}, which results in: Example text!