Difference between revisions of "Template:Monospace"

(New page: <noinclude>{{Template Overview |usedon=all |purpose=display a span of text in the Monospace font |template=<nowiki>{{Monospace| }}</nowiki> }} {{Template Parameter |name=1 |usage=mandatory...)
 
m (Fixing the font size of Monospace text.)
 
(7 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>
 +
|category=Utility
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 10: Line 11:
 
|denotes=the text to be rendered in the Monospace font
 
|denotes=the text to be rendered in the Monospace font
 
|generates=the actual displayed text
 
|generates=the actual displayed text
|othernotes=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]].
+
|othernotes=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 {{Monospace|<nowiki><code></code></nowiki>}} tags in most instances.
 
|validvalues=Any string or strings.
 
|validvalues=Any string or strings.
 
}}
 
}}
 
+
</noinclude><includeonly>{{Font-Family
[[Category:Utility Templates|{{PAGENAME}}]]</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.