Difference between revisions of "Template:Span"

m (Protected "Template:Span" [edit=sysop:move=sysop])
m
Line 1: Line 1:
<noinclude>[[Category:Utility Templates|{{PAGENAME}}]]</noinclude><includeonly><span style="{{{1}}} {{{2}}} {{{3}}}">{{{text}}}</span></includeonly>
+
<noinclude>{{Template Overview
 +
|usedon=all
 +
|purpose=apply specific display properties to a span of text
 +
|template=<nowiki>{{Span
 +
|property=
 +
|text=
 +
}}</nowiki>
 +
}}
 +
{{Template Parameter
 +
|name=property
 +
|usage=mandatory
 +
|takes=a string
 +
|denotes=the CSS property-value combination that is to be applied to the span of text
 +
|generates=the "style" attribute in the {{Monospace|<nowiki><span></nowiki>}} tag
 +
|validvalues=Any string that denotes a valid CSS property-value combination.
 +
}}
 +
{{Template Parameter
 +
|name=text
 +
|usage=mandatory
 +
|takes=a string or strings
 +
|denotes=the text to be stylized and displayed
 +
|generates=the actual text that is to go in the {{Monospace|<nowiki><span></nowiki>}} tag
 +
|validvalues=Any string or strings.
 +
}}
 +
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude><includeonly><span style="{{{property}}}">{{{text}}}</span></includeonly>

Revision as of 16:35, 30 November 2009

Template:Span is designed for use on all pages to apply specific display properties to a span of text.

Template

{{Span
|property=
|text=
}}

Parameters

[[Category:{{{category}}} Templates|Span]]

property

  • Usage: Mandatory
  • Description: The property parameter takes a string denoting the CSS property-value combination that is to be applied to the span of text. This is used to generate the "style" attribute in the <span> tag.
  • Valid Value(s): Any string that denotes a valid CSS property-value combination.

text

  • Usage: Mandatory
  • Description: The text parameter takes a string or strings denoting the text to be stylized and displayed. This is used to generate the actual text that is to go in the <span> tag.
  • Valid Value(s): Any string or strings.