Difference between revisions of "Template:Tlp"

From Wiki
Jump to navigationJump to search
(Основной текст)
 
m (2 версии)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="wp-templatelink">&#123;{[[Template:{{{1|Tlp}}}|{{{1|Tlp}}}]]</span>{{#if:{{{2|}}}|<tt class="wp-templatelink">&#124;</tt>{{{2}}}}}{{#if:{{{3|}}}|<tt class="wp-templatelink">&#124;</tt>{{{3}}}}}{{#if:{{{4|}}}|<tt class="wp-templatelink">&#124;</tt>{{{4}}}}}{{#if:{{{5|}}}|<tt class="wp-templatelink">&#124;</tt><i>и т. д.</i>}}<span class="wp-templatelink">}}</span><noinclude>
+
<noinclude>{{doc}}</noinclude><includeonly><!--
{{doc}}
+
 
</noinclude>
+
--><span style="color:#9098A0" class="wp-templatelink">{{</span><!--
 +
-->[[Template:{{{1|Tlp}}}|{{{1|Tlp}}}]]<!--
 +
-->{{#if:{{{2|}}}|<tt class="wp-templatelink">&#124;</tt>{{{2}}}}}<!--
 +
-->{{#if:{{{3|}}}|<tt class="wp-templatelink">&#124;</tt>{{{3}}}}}<!--
 +
-->{{#if:{{{4|}}}|<tt class="wp-templatelink">&#124;</tt>{{{4}}}}}<!--
 +
-->{{#if:{{{5|}}}|<tt class="wp-templatelink">&#124;</tt><i>и т. д.</i>}}<!--
 +
--><span style="color:#9098A0" class="wp-templatelink">}}</span><!--
 +
--></includeonly>

Latest revision as of 13:53, 19 May 2011

Документация Документация    —    Documentation


Использование:

    {{Tlp|имя шаблона|первый параметр|...}}

Для указанного шаблона отображается до пяти параметров, остальные параметры отображаются как «| и т. д.».

Использование

  • {{Tlp|template name}}
  • {{Tlp|template name|param}}

Если передаётся более трёх параметров:

  • {{Tlp|template name|1|2|и т. д.}}
  • {{Tlp|template name|1|2|и т. д.}}
  • {{Tlp|template name|param&#61;value}}

Примеры

Код Результат Примечание
{{Tlp|test}} {{test}}  
{{Tlp|test|one}} {{test|one}}  
{{Tlp|test|one|two}} {{test|one|two}}  
{{Tlp|test|1|2|3}} {{test|1|2|3}}  
{{Tlp|test|1|2|3|4}} {{test|1|2|3|и т. д.}} до 3 параметров
{{Tlp|test|1|2|3&#124;4}} {{test|1|2|3|4}} &#124; позволит указать больше
{{Tlp|test|x=u}} {{test}} = не работает
{{Tlp|test|x{{=}}u}} {{test|x=u}} {{=}} подходит
{{Tlp|test|x&#61;u}} {{test|x=u}} &#61; подходит
{{Tlp|test|<nowiki>x=u</nowiki>}} {{test|x=u}} nowiki подходит
{{Tlp|test| |two}} {{test|two}} пропуск не работает
{{Tlp|test|&#32;|two}} {{test| |two}} &#32; подходит
{{Tlp|test|&nbsp;|two}} {{test| |two}} &nbsp; подходит
{{Tlp|test| &#124; two}} {{test| | two}} &#124; подходит
{{Tlp|test| {{!}} two}} {{test| | two}} {{!}} подходит
{{Tlp|test|2=|3=two}} {{test|two}} пропуск действительно не работает
{{Tlp|test|2=one|two}} {{test|two}} two затирает 2=one
{{Tlp|test|3=two|2=one}} {{test|one|two}} обратный порядок работает

См. также