Plantía:Pre2/doc

De Wikipedia

{{Pre2/doc}} usa etiquetes <pre>, pero con testu que ta o axustáu o conteníu nun cuadru horizontal con barres de movimientu. Esto significa que'l testu nun pasará del llau derechu de la pantalla.

Como usa etiquetes <pre> reales (non como {{pre}}), veráse correutamente sin qu'importe cómo renderice la piel de Wikipedia del usuariu los cuadros <pre>.

Si quies desactivar el testu wiki nél, tendríes d'usar etiquetes <nowiki> dientro de la plantía (ver más abaxo).

Usage[editar la fonte]

Wrapped text[editar la fonte]

{{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[editar la fonte]

{{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.

Style[editar la fonte]

When the text contains links is better to change the text color, thus highlighting:

{{Pre2|style=color:green|Text to be [[Hyperlink|link]]. WARNING! A{{=}}B, you must use Template:=. And more and more and more... and a paragraph break.

And then more and more...}}

produces:
Text to be link. WARNING! A=B, you must use Template:=. 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.

Using wikitext [editar la fonte]

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 textPlantía:Dn, which might include {{templates}}.

See also[editar la fonte]