Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Pre: Difference between revisions

Template page
adding | to style parameter (caused invalid CSS warning) + Deprecated
No edit summary
Line 2: Line 2:
{{Deprecated|note= Use <nowiki><pre>{{{1}}}</pre></nowiki> instead. MediaWiki now breaks words in core.}}
{{Deprecated|note= Use <nowiki><pre>{{{1}}}</pre></nowiki> instead. MediaWiki now breaks words in core.}}


----
== Description ==
Same as using <nowiki><pre></nowiki>-tags but the text won't run off screen and instead will appear with a scrollbar.
Like <nowiki><pre></nowiki>-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 <nowiki>{{pre|style= color:darkblue| My text here.}}</nowiki>
The optional parameter of ''style'' may be added for other css format options. For example <nowiki>{{pre|style= color:darkblue| My text here.}}</nowiki>

Revision as of 00:39, 17 January 2011

{{{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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.