Template:Pre: Difference between revisions
Template page
More actions
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 == | |||
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> | ||