Difference between revisions of "Template:Monospace"

m
m (Fixing the font size of Monospace text.)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
|purpose=display a span of text in the Monospace font
 
|purpose=display a span of text in the Monospace font
 
|template=<nowiki>{{Monospace| }}</nowiki>
 
|template=<nowiki>{{Monospace| }}</nowiki>
|parameters=yes
+
|category=Utility
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 14: Line 14:
 
|validvalues=Any string or strings.
 
|validvalues=Any string or strings.
 
}}
 
}}
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude><includeonly>{{Font-Family
+
</noinclude><includeonly>{{Font-Family
 
|fontfamily=monospace
 
|fontfamily=monospace
|text={{{1}}}
+
|text={{Span|property=font-size:12px;|text={{{1}}}}}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 10:29, 8 September 2011

Template:Monospace is designed for use on all pages to display a span of text in the Monospace font.

Template

{{Monospace| }}

Parameters

1

  • Usage: Mandatory
  • Description: The 1 parameter takes a string or strings denoting the text to be rendered in the Monospace font. This is used to generate the actual displayed text. This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using Template:Monospace. This template can also be used to replace <code></code> tags in most instances.
  • Valid Value(s): Any string or strings.