Template:Pre2/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Unused0029
update content and trim
meta>Unused0029
update 2
Line 5: Line 5:


This template uses [[HTML element#Other containers|<nowiki><pre></nowiki>]] tags, but with text that is either [[word wrap|wrapped]] or is contained in a horizontal scrollbox. This means the text will not stretch past the right side of the screen.
This template uses [[HTML element#Other containers|<nowiki><pre></nowiki>]] tags, but with text that is either [[word wrap|wrapped]] or is contained in a horizontal scrollbox. This means the text will not stretch past the right side of the screen.
As it uses real <nowiki><pre></nowiki> tags (unlike {{tl|pre}}), it will be displayed correctly regardless of how the user's Wikipedia [[WP:SKIN|skin]] renders <nowiki><pre></nowiki> boxes.


==Usage==
==Usage==
===Wrapped text===
===Wrapped text===
<nowiki>{{Pre2|Text to be displayed. And more and more and more...}}</nowiki>
<code><nowiki>{{Pre2|Text to be displayed. And more and more and more...}}</nowiki></code>
:produces:
:produces:
{{Pre2|Text to be displayed. And more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more.}}
{{Pre2|Text to be displayed. And more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more.}}


===Scrollbox===
===Scrollbox===
<nowiki>{{Pre2|type=scroll|Text to be displayed. And more and more and more...}}</nowiki>
<code><nowiki>{{Pre2|type=scroll|Text to be displayed. And more and more and more...}}</nowiki></code>
:produces:
:produces:
{{Pre2|type=scroll|Text to be displayed. And more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more.}}
{{Pre2|type=scroll|Text to be displayed. And more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more.}}

Revision as of 22:17, 13 June 2008

This template uses <pre> tags, but with text that is either wrapped or is contained in a horizontal scrollbox. This means the text will not stretch past the right side of the screen.

As it uses real <pre> tags (unlike {{pre}}), it will be displayed correctly regardless of how the user's Wikipedia skin renders <pre> boxes.

Usage

Wrapped text

{{Pre2|Text to be displayed. And more and more and more...}}

produces:
Text to be displayed. And more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more.

Scrollbox

{{Pre2|type=scroll|Text to be displayed. And more and more and more...}}

produces:
Text to be displayed. And more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more.

See also