Difference between revisions of "Template:Pre"

m (I am uncertain why this works the way it does.)
m
Line 1: Line 1:
<pre<includeonly></includeonly>>{{{1}}}</pre>
+
<pre<includeonly></includeonly> style="
 +
{{#ifeq: {{{1}}} | scroll
 +
| overflow:auto; width:auto;">
 +
  {{#switch: {{{2}}}
 +
  | nowiki
 +
  | nw={{#tag:nowiki|{{{3}}}}}|{{{2}}}
 +
  }}
 +
| 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>

Revision as of 12:35, 3 October 2009

  {{{1}}}