Template:Pre: Difference between revisions
Template page
More actions
No edit summary |
Deleted deprecated notice since it seemed irrelevant. From what I see, (1) MediaWiki does not break words in a <pre> tag and (2) this template is meant to facilitate scrolling, not breaking. |
||
| Line 1: | Line 1: | ||
<pre<includeonly></includeonly> style="overflow: auto;{{{style|}}}">{{{1}}}</pre><noinclude> | <pre<includeonly></includeonly> style="overflow: auto;{{{style|}}}">{{{1}}}</pre><noinclude> | ||
== Description == | == Description == | ||
Revision as of 08:43, 12 May 2012
{{{1}}}
Description
Like <pre>-tags but the text won't run off screen and also appears with a scrollbar.
The optional parameter of style may be added for other css format options. For example {{pre|style= color:darkblue| My text here.}}
Code:
<pre style="overflow: auto;">{{{1}}}</pre>
Example:
{{pre|
000000000000000000 lines don't wrap 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
}}
Gives:
000000000000000000 lines don't wrap 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000