{{Pre2/doc}} 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.

Dokumentation
Dokumentation
Hetta er dokumentatiónssíðan fyri Fyrimynd:Pre2.

Henda síðan er ikki neyðturviliga hugsað at skula vísast beinleiðis. Um hon nýtir variablar, so kunnu nøkur leinki sýnast sum brotin. Tú mást ikki útskifta variablarnir við beinleiðis tittlar ella URL.

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

If you want to disable wikitext in it, you should use <nowiki> tags inside the template (see below).

Nýtsla

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.

Using wikitext

To disable wikitext (e.g. [[links]]), <nowiki> tags must be used in the form:

{{Pre2|<nowiki>Your [[text]]{{dn|name=Pre2}}, which ''might'' include {{tl|templates}}.<noinclude>[[Category:Examples]]</noinclude></nowiki>}}

This will produce this:

Your [[text]]{{dn|name=Pre2}}, which ''might'' include {{tl|templates}}.<noinclude>[[Category:Examples]]</noinclude>

as opposed to:

Your [[text]]<sup class="plainlinks noprint Inline-Template" style="vertical-align:text-top;white-space:nowrap;">[<i>[http://dispenser.homenet.org/~dispenser/cgi-bin/dab_solver.py?page=Fyrimynd:Pre2/doc&editintro=Template:Disambiguation_needed/editintro&client=Template:Dn <span title="Link needs disambiguation.">disambiguation needed</span>]</i>]</sup>, which ''might'' include {{[[Template:templates|templates]]}}.[[Category:Examples]]

Sí eisini

  • {{pre}}, which mimics <pre> tags as rendered with the monobook Wikipedia skin
  • <pre>…</pre>
  • en:Word wrapping (um at pakka orð inn, síðan er á ensku Wikipediu)

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.