Difference between revisions of "Template:Pre"

m
m
Line 1: Line 1:
<pre<includeonly></includeonly> style="
+
<pre<includeonly></includeonly> style="{{#ifeq:{{{1}}}|scroll|overflow:auto; width:auto;{{{style|}}}">{{#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;{{{style|}}}">{{#switch:{{{1}}}|nowiki|nw={{#tag:nowiki|{{{2}}}}}|{{{1}}}}} }}</pre>
{{#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:37, 3 October 2009

{{{1}}}