Difference between revisions of "Template:Pre"

m
m
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre style="{{#ifeq:{{{1}}}|scroll|overflow:auto; width:auto;{{{style|}}}">
+
<noinclude>{{Template Overview
{{#switch:{{{2}}}
+
|usedon=all
| nowiki
+
|purpose=put text into {{Monospace|<nowiki><pre></pre></nowiki>}} tags
| nw={{#tag:nowiki|{{{3}}}}}|{{{2}}}}}
+
|othernotes=It is necessary that this template display at the bottom of this page in order to function properly.
| white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;{{{style|}}}">
+
|template=<nowiki>{{Pre| }}</nowiki>
  {{#switch:{{{1}}}
+
|category=Utility
  | nowiki
+
}}
  | nw={{#tag:nowiki|{{{2}}}}}|{{{1}}}}}
+
{{Template Parameter
  }}
+
|name=1
</pre>
+
|usage=mandatory
 +
|takes=a string or strings
 +
|denotes=the text to be placed in the {{Monospace|<nowiki><pre></pre></nowiki>}} tags
 +
|generates=the actual displayed text
 +
|validvalues=Any string or strings.
 +
}}
 +
</noinclude><pre<includeonly></includeonly> >{{#switch: {{{1}}} | {{{1}}} }}</pre>

Latest revision as of 09:27, 28 December 2009

Template:Pre is designed for use on all pages to put text into <pre></pre> tags. It is necessary that this template display at the bottom of this page in order to function properly.

Template

{{Pre| }}

Parameters

1

  • Usage: Mandatory
  • Description: The 1 parameter takes a string or strings denoting the text to be placed in the <pre></pre> tags. This is used to generate the actual displayed text.
  • Valid Value(s): Any string or strings.
{{{1}}}