Difference between revisions of "Template:Pre"

m
m
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre<includeonly></includeonly> style="
+
<noinclude>{{Template Overview
{{#ifeq: {{{1}}} | scroll
+
|usedon=all
| overflow:auto; width:auto;">
+
|purpose=put text into {{Monospace|<nowiki><pre></pre></nowiki>}} tags
  {{#switch: {{{2}}}
+
|othernotes=It is necessary that this template display at the bottom of this page in order to function properly.
  | nowiki
+
|template=<nowiki>{{Pre| }}</nowiki>
  | nw={{#tag:nowiki|{{{3}}}}}|{{{2}}}
+
|category=Utility
  }}
+
| white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;">
+
  {{#switch: {{{1}}}
+
  | nowiki
+
  | nw={{#tag:nowiki | {{{2}}} }}
+
  | {{{1}}}
+
  }}
+
 
}}
 
}}
</pre>
+
{{Template Parameter
 +
|name=1
 +
|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}}}