en>David Kernow |
|
(25 intermediate revisions by 11 users not shown) |
Line 1: |
Line 1: |
| <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; line-height: 1ex; color: #2f6fab;{{#if:{{{width|}}}|width: {{{width}}}|}}">[[Template:Pre|pre]]</div> | | <templatestyles src="Pre/styles.css"/><pre<includeonly></includeonly> class="pre {{#ifeq:{{{border|}}}|no|pre-borderless}}" {{#if:{{{space|}}}{{{width|}}}{{{style|}}}|style="{{#if:{{{space|}}}|white-space: {{{space}}};}} {{#if:{{{width|}}}|width: {{{width}}};}} {{{style|}}}"}}><!-- |
| <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: monospace; color: #000; overflow: auto; white-space: {{{space|auto}}};{{#if:{{{width|}}}|width: {{{width}}}|}}">{{#if:{{{1|}}}|{{{1}}}|Pre-formatted text looks like this.}}<!--
| | -->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Sample text</noinclude>}}<!-- |
| //-->{{#if:{{{2|}}}|{{!}}{{{2}}}|}}<!--
| | -->{{#if:{{{2|}}}|{{!}}{{{2}}}}}<!-- |
| //-->{{#if:{{{3|}}}|{{!}}{{{3}}}|}}<!--
| | -->{{#if:{{{3|}}}|{{!}}{{{3}}}}}<!-- |
| //-->{{#if:{{{4|}}}|{{!}}{{{4}}}|}}<!--
| | -->{{#if:{{{4|}}}|{{!}}{{{4}}}}}<!-- |
| //-->{{#if:{{{5|}}}|{{!}}{{{5}}}|}}<!--
| | -->{{#if:{{{5|}}}|{{!}}{{{5}}}}}<!-- |
| //-->{{#if:{{{6|}}}|{{!}}{{{6}}}|}}<!--
| | -->{{#if:{{{6|}}}|{{!}}{{{6}}}}}<!-- |
| //-->{{#if:{{{7|}}}|{{!}}{{{7}}}|}}<!--
| | -->{{#if:{{{7|}}}|{{!}}{{{7}}}}}<!-- |
| //-->{{#if:{{{8|}}}|{{!}}{{{8}}}|}}<!--
| | -->{{#if:{{{8|}}}|{{!}}{{{8}}}}}<!-- |
| //-->{{#if:{{{9|}}}|{{!}}{{{9}}}|}}<!--
| | -->{{#if:{{{9|}}}|{{!}}{{{9}}}}}<!-- |
| //-->{{#if:{{{10|}}}|{{!}}{{{10}}}|}}<!--
| | -->{{#if:{{{10|}}}|{{!}}{{{10}}}}}<!-- |
| //-->{{#if:{{{11|}}}|{{!}}{{{11}}}|}}<!--
| | -->{{#if:{{{11|}}}|{{!}}{{{11}}}}}<!-- |
| //-->{{#if:{{{12|}}}|{{!}}{{{12}}}|}}<!--
| | -->{{#if:{{{12|}}}|{{!}}{{{12}}}}}<!-- |
| //-->{{#if:{{{13|}}}|{{!}}{{{13}}}|}}<!--
| | -->{{#if:{{{13|}}}|{{!}}{{{13}}}}}<!-- |
| //-->{{#if:{{{14|}}}|{{!}}{{{14}}}|}}<!--
| | -->{{#if:{{{14|}}}|{{!}}{{{14}}}}}<!-- |
| //-->{{#if:{{{15|}}}|{{!}}{{{15}}}|}}<!--
| | -->{{#if:{{{15|}}}|{{!}}{{{15}}}}}<!-- |
| //-->{{#if:{{{16|}}}|{{!}}{{{16}}}|}}<!--
| | -->{{#if:{{{16|}}}|{{!}}{{{16}}}}}<!-- |
| //-->{{#if:{{{17|}}}|{{!}}{{{17}}}|}}<!--
| | -->{{#if:{{{17|}}}|{{!}}{{{17}}}}}<!-- |
| //-->{{#if:{{{18|}}}|{{!}}{{{18}}}|}}<!--
| | -->{{#if:{{{18|}}}|{{!}}{{{18}}}}}<!-- |
| //-->{{#if:{{{19|}}}|{{!}}{{{19}}}|}}</div><noinclude>
| | -->{{#if:{{{19|}}}|{{!}}{{{19}}}}}<!-- |
| | | -->{{#if:{{{20|}}}|{{!}}{{{20}}}}}<!-- |
| ---- | | --></pre><noinclude> |
| | | {{Documentation}} |
| This template mimics the appearance of <code><nowiki><pre></pre></nowiki></code> tags. Main differences include:
| | <!-- |
| *It allows mid-line-breaks
| | PLEASE ADD CATEGORIES AND INTERWIKIS |
| *Dissallows the text to overflow the page.
| | TO THE /doc SUBPAGE, THANKS |
| *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.
| |
| | |
| | |
| [[Category:Formatting templates|{{PAGENAME}}]]
| |
| </noinclude> | | </noinclude> |