Template:Pre2/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Unused0029 fix (add an =) |
meta>Rocket000 update |
||
Line 17: | Line 17: | ||
===Scrollbox=== | ===Scrollbox=== | ||
<span style="background-color:white"><code><nowiki>{{Pre2| | <span style="background-color:white"><code><nowiki>{{Pre2|scroll|Text to be displayed. And more and more and more... and a paragraph break.</nowiki> | ||
<p> | <p> | ||
<nowiki>And then more and more...}}</nowiki></code></span> | <nowiki>And then more and more...}}</nowiki></code></span> | ||
:produces: | :produces: | ||
{{Pre2| | {{Pre2|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 a paragraph break. | ||
And then 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 then 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== | ==See also== |
Revision as of 23:57, 13 June 2008
This is a documentation subpage for Template:Pre2. It may contain usage information, categories and other content that is not part of the original template page. |
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... and a paragraph break.
And then 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 a paragraph break. And then 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|scroll|Text to be displayed. And more and more and more... and a paragraph break.
And then 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 a paragraph break. And then 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
- {{pre}}, which mimics <pre> tags as rendered with the monobook Wikipedia skin.
- <pre>…</pre>
- Word wrapping