Template:Pre: Difference between revisions

From NARA
Jump to navigation Jump to search
NARA>Izno
(use templatestyles)
 
NARA>Pols12
(Undo revision 5093746 by Baris6161TURK (talk): breaks the template, because the Includeonly hack avoids the Nowiki feature. Another workaround is needed)
Line 1: Line 1:
<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|}}}"}}><!--
<pre<includeonly></includeonly> style="{{#if:{{{background|}}}|background:{{{background|}}};}}{{#if:{{{color|}}}|color:{{{color|}}};}}{{#if:{{{width|}}}|width:{{{width|}}};}}white-space:{{#switch:{{lc:{{{space|}}}}}
-->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Sample text</noinclude>}}<!--
|normal|pre|pre-line|break-spaces|inherit|initial|unset={{lc:{{{space|}}}}}|pre-wrap||#default=pre-wrap
-->{{#if:{{{2|}}}|{{!}}{{{2}}}}}<!--
}}"><!--
-->{{#if:{{{3|}}}|{{!}}{{{3}}}}}<!--
-->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Sample text
-->{{#if:{{{4|}}}|{{!}}{{{4}}}}}<!--
on several lines</noinclude>}}<!--
-->{{#if:{{{5|}}}|{{!}}{{{5}}}}}<!--
-->{{#if:{{{2|}}}|{{!}}{{{2}}}|}}<!--
-->{{#if:{{{6|}}}|{{!}}{{{6}}}}}<!--
-->{{#if:{{{3|}}}|{{!}}{{{3}}}|}}<!--
-->{{#if:{{{7|}}}|{{!}}{{{7}}}}}<!--
-->{{#if:{{{4|}}}|{{!}}{{{4}}}|}}<!--
-->{{#if:{{{8|}}}|{{!}}{{{8}}}}}<!--
-->{{#if:{{{5|}}}|{{!}}{{{5}}}|}}<!--
-->{{#if:{{{9|}}}|{{!}}{{{9}}}}}<!--
-->{{#if:{{{6|}}}|{{!}}{{{6}}}|}}<!--
-->{{#if:{{{10|}}}|{{!}}{{{10}}}}}<!--
-->{{#if:{{{7|}}}|{{!}}{{{7}}}|}}<!--
-->{{#if:{{{11|}}}|{{!}}{{{11}}}}}<!--
-->{{#if:{{{8|}}}|{{!}}{{{8}}}|}}<!--
-->{{#if:{{{12|}}}|{{!}}{{{12}}}}}<!--
-->{{#if:{{{9|}}}|{{!}}{{{9}}}|}}<!--
-->{{#if:{{{13|}}}|{{!}}{{{13}}}}}<!--
-->{{#if:{{{10|}}}|{{!}}{{{10}}}|}}<!--
-->{{#if:{{{14|}}}|{{!}}{{{14}}}}}<!--
-->{{#if:{{{11|}}}|{{!}}{{{11}}}|}}<!--
-->{{#if:{{{15|}}}|{{!}}{{{15}}}}}<!--
-->{{#if:{{{12|}}}|{{!}}{{{12}}}|}}<!--
-->{{#if:{{{16|}}}|{{!}}{{{16}}}}}<!--
-->{{#if:{{{13|}}}|{{!}}{{{13}}}|}}<!--
-->{{#if:{{{17|}}}|{{!}}{{{17}}}}}<!--
-->{{#if:{{{14|}}}|{{!}}{{{14}}}|}}<!--
-->{{#if:{{{18|}}}|{{!}}{{{18}}}}}<!--
-->{{#if:{{{15|}}}|{{!}}{{{15}}}|}}<!--
-->{{#if:{{{19|}}}|{{!}}{{{19}}}}}<!--
-->{{#if:{{{16|}}}|{{!}}{{{16}}}|}}<!--
-->{{#if:{{{20|}}}|{{!}}{{{20}}}}}<!--
-->{{#if:{{{17|}}}|{{!}}{{{17}}}|}}<!--
-->{{#if:{{{18|}}}|{{!}}{{{18}}}|}}<!--
-->{{#if:{{{19|}}}|{{!}}{{{19}}}|}}<!--
--></pre><noinclude>
--></pre><noinclude>
{{Documentation}}
{{Documentation}}

Revision as of 07:43, 28 June 2022

Sample text
on several lines
Template documentation