Difference between revisions of "Template:Pre"

m
m
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre<includeonly></includeonly> style="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>
+
<noinclude>{{Template Overview
 +
|usedon=all
 +
|purpose=put text into {{Monospace|<nowiki><pre></pre></nowiki>}} tags
 +
|othernotes=It is necessary that this template display at the bottom of this page in order to function properly.
 +
|template=<nowiki>{{Pre| }}</nowiki>
 +
|category=Utility
 +
}}
 +
{{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 08: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}}}