Шаблон:Pre: различия между версиями

Материал из in.wiki
Перейти к навигации Перейти к поиску
м (откат правок Sunpriat (обс.) к версии QBA-bot)
 
i>Izno
(use templatestyles)
Строка 1: Строка 1:
<pre<includeonly></includeonly> style="white-space: {{{space|pre-wrap}}}; {{#if:{{{width|}}}|width: {{{width}}};}} {{{style|}}}"><!--
+
<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|}}}"}}><!--
-->{{#ifeq:{{{t|x}}} | {{{t}}} | &#123;&#123;{{#if: {{{t}}} | {{#ifeq: {{str sub|{{{t}}}|0|5}} | <span<!-- след использования шаблона optp --> | {{lcfirst: {{ROOTPAGENAME}} }}{{{t}}} | <nowiki/><!-- фикс для имён на «*», «;» и т. п. -->{{{t}}} }} | {{lcfirst: {{ROOTPAGENAME}} }} }}{{#ifeq: {{{1|x}}} | {{{1}}} | &#124; }} }}<!--
+
-->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Sample text</noinclude>}}<!--
-->{{#if:{{{1|}}}|<nowiki/><!-- фикс для того, что начинается с «*», «;» и т. п. -->{{{1}}}<noinclude>|Пример текста</noinclude>}}<!--
+
-->{{#if:{{{2|}}}|{{!}}{{{2}}}}}<!--
-->{{#ifeq:{{{2|x}}}|{{{2}}}|&#124;{{{2}}}}}<!-- благодаря условию пустой параметр тоже засчитывается
+
-->{{#if:{{{3|}}}|{{!}}{{{3}}}}}<!--
-->{{#ifeq:{{{3|x}}}|{{{3}}}|&#124;{{{3}}}}}<!--
+
-->{{#if:{{{4|}}}|{{!}}{{{4}}}}}<!--
-->{{#ifeq:{{{4|x}}}|{{{4}}}|&#124;{{{4}}}}}<!--
+
-->{{#if:{{{5|}}}|{{!}}{{{5}}}}}<!--
-->{{#ifeq:{{{5|x}}}|{{{5}}}|&#124;{{{5}}}}}<!--
+
-->{{#if:{{{6|}}}|{{!}}{{{6}}}}}<!--
-->{{#ifeq:{{{6|x}}}|{{{6}}}|&#124;{{{6}}}}}<!--
+
-->{{#if:{{{7|}}}|{{!}}{{{7}}}}}<!--
-->{{#ifeq:{{{7|x}}}|{{{7}}}|&#124;{{{7}}}}}<!--
+
-->{{#if:{{{8|}}}|{{!}}{{{8}}}}}<!--
-->{{#ifeq:{{{8|x}}}|{{{8}}}|&#124;{{{8}}}}}<!--
+
-->{{#if:{{{9|}}}|{{!}}{{{9}}}}}<!--
-->{{#ifeq:{{{9|x}}}|{{{9}}}|&#124;{{{9}}}}}<!--
+
-->{{#if:{{{10|}}}|{{!}}{{{10}}}}}<!--
-->{{#ifeq:{{{10|x}}}|{{{10}}}|&#124;{{{10}}}}}<!--
+
-->{{#if:{{{11|}}}|{{!}}{{{11}}}}}<!--
-->{{#ifeq:{{{11|x}}}|{{{11}}}|&#124;{{{11}}}}}<!--
+
-->{{#if:{{{12|}}}|{{!}}{{{12}}}}}<!--
-->{{#ifeq:{{{12|x}}}|{{{12}}}|&#124;{{{12}}}}}<!--
+
-->{{#if:{{{13|}}}|{{!}}{{{13}}}}}<!--
-->{{#ifeq:{{{13|x}}}|{{{13}}}|&#124;{{{13}}}}}<!--
+
-->{{#if:{{{14|}}}|{{!}}{{{14}}}}}<!--
-->{{#ifeq:{{{14|x}}}|{{{14}}}|&#124;{{{14}}}}}<!--
+
-->{{#if:{{{15|}}}|{{!}}{{{15}}}}}<!--
-->{{#ifeq:{{{15|x}}}|{{{15}}}|&#124;{{{15}}}}}<!--
+
-->{{#if:{{{16|}}}|{{!}}{{{16}}}}}<!--
-->{{#ifeq:{{{16|x}}}|{{{16}}}|&#124;{{{16}}}}}<!--
+
-->{{#if:{{{17|}}}|{{!}}{{{17}}}}}<!--
-->{{#ifeq:{{{17|x}}}|{{{17}}}|&#124;{{{17}}}}}<!--
+
-->{{#if:{{{18|}}}|{{!}}{{{18}}}}}<!--
-->{{#ifeq:{{{18|x}}}|{{{18}}}|&#124;{{{18}}}}}<!--
+
-->{{#if:{{{19|}}}|{{!}}{{{19}}}}}<!--
-->{{#ifeq:{{{19|x}}}|{{{19}}}|&#124;{{{19}}}}}<!--
+
-->{{#if:{{{20|}}}|{{!}}{{{20}}}}}<!--
-->{{#ifeq:{{{t|x}}}|{{{t}}}|&#125;&#125;}}<!--
+
--></pre><noinclude>
--></pre><noinclude>{{doc}}</noinclude>
+
{{Documentation}}
 +
<!--
 +
  PLEASE ADD CATEGORIES AND INTERWIKIS
 +
  TO THE /doc SUBPAGE, THANKS
 +
-->
 +
</noinclude>

Версия от 09:13, 19 ноября 2021

Sample text