Template:Pre: Difference between revisions
en>Alfakim (adjust) |
en>Alfakim (add autohandling for params in params, + formating) |
||
Line 1: | Line 1: | ||
<div style="border: 1px dashed #2F6FAB; margin: 1em 0px | <div style="border: 1px dashed #2F6FAB; border-bottom:none; margin: 1em 0px 0px 0px; padding: 3px 3px 0.7em 3px; background: #F9F9F9; text-align: right; font-size: 0.5em; font-family: Arial; line-height: 1ex; color: #2f6fab;{{#if:{{{width|}}}|width: {{{width}}}|}}">[[Template:Pre|pre]]</div> | ||
<div style="border: 1px dashed #2F6FAB; border-top:none; margin: 0px 0px 1em 0px; padding: 0px 1em 0.8em 1em; background: #F9F9F9; line-height: 2.1ex; font-family: Courier New, Courier, Arial Sans Unicode, Arial; color: #000; overflow: auto; white-space: {{{space|auto}}};{{#if:{{{width|}}}|width: {{{width}}}|}}">{{#if:{{{1|}}}|{{{1}}}|Pre-formatted text looks like this.}}<!-- | |||
//-->{{#if:{{{2|}}}|{{!}}{{{2}}}|}}<!-- | |||
//-->{{#if:{{{3|}}}|{{!}}{{{3}}}|}}<!-- | |||
//-->{{#if:{{{4|}}}|{{!}}{{{4}}}|}}<!-- | |||
//-->{{#if:{{{5|}}}|{{!}}{{{5}}}|}}<!-- | |||
//-->{{#if:{{{6|}}}|{{!}}{{{6}}}|}}<!-- | |||
//-->{{#if:{{{7|}}}|{{!}}{{{7}}}|}}<!-- | |||
//-->{{#if:{{{8|}}}|{{!}}{{{8}}}|}}<!-- | |||
//-->{{#if:{{{9|}}}|{{!}}{{{9}}}|}}<!-- | |||
//-->{{#if:{{{10|}}}|{{!}}{{{10}}}|}}<!-- | |||
//-->{{#if:{{{11|}}}|{{!}}{{{11}}}|}}<!-- | |||
//-->{{#if:{{{12|}}}|{{!}}{{{12}}}|}}<!-- | |||
//-->{{#if:{{{13|}}}|{{!}}{{{13}}}|}}<!-- | |||
//-->{{#if:{{{14|}}}|{{!}}{{{14}}}|}}<!-- | |||
//-->{{#if:{{{15|}}}|{{!}}{{{15}}}|}}<!-- | |||
//-->{{#if:{{{16|}}}|{{!}}{{{16}}}|}}<!-- | |||
//-->{{#if:{{{17|}}}|{{!}}{{{17}}}|}}<!-- | |||
//-->{{#if:{{{18|}}}|{{!}}{{{18}}}|}}<!-- | |||
//-->{{#if:{{{19|}}}|{{!}}{{{19}}}|}}</div><noinclude> | |||
---- | ---- | ||
This template | This template mimics the appearance of <code><nowiki><pre></pre></nowiki></code> tags. Main differences include: | ||
*It allows mid-line-breaks | |||
Due to limitations, if the parameter contains any HTML or other Wikimarkup, it will be rendered as such. Thus if a parameter might contain any Wikitext, enclose it manually in <code><nowiki><nowiki></nowiki></nowiki></code> tags. | *Dissallows the text to overflow the page. | ||
*Due to limitations, if the parameter contains any HTML or other Wikimarkup, it will be rendered as such. Thus if a parameter might contain any Wikitext, enclose it manually in <code><nowiki><nowiki></nowiki></nowiki></code> tags. | |||
See the [[Template talk:Pre|Talk page]] for examples of use and further information. | See the [[Template talk:Pre|Talk page]] for examples of use and further information. | ||
[[Category:Wikipedia special effects templates|Pre]]</noinclude> | [[Category:Wikipedia special effects templates|Pre]]</noinclude> |
Revision as of 17:28, 11 August 2006
Pre-formatted text looks like this.
This template mimics the appearance of <pre></pre>
tags. Main differences include:
- It allows mid-line-breaks
- Dissallows the text to overflow the page.
- Due to limitations, if the parameter contains any HTML or other Wikimarkup, it will be rendered as such. Thus if a parameter might contain any Wikitext, enclose it manually in
<nowiki></nowiki>
tags.
See the Talk page for examples of use and further information.