Шаблон:Tlsp: различия между версиями
en>Omniplex (fix docu, it's not necessary to subst Tlsp itself) |
en>Omniplex (allow to document optional substitution with subst=subst:) |
||
| Строка 1: | Строка 1: | ||
{{<small> </small>[[Wikipedia:Template substitution|subst]]<tt>:</tt>[[{{ns:Template}}:{{{1|Tlsp}}}|{{{1|Tlsp}}}]]{{#if:{{{2|}}}|<tt>|</tt>{{{2}}}}}{{#if:{{{3|}}}|<tt>|</tt>{{{3}}}}}{{#if:{{{4|}}}|<tt>|</tt>{{{4}}}}}{{#if:{{{5|}}}|<tt>|</tt><i>etc.</i>}}<small> </small>}}<noinclude> | {{<small> </small>[[Wikipedia:Template substitution|subst]]<tt>:</tt>[[{{ns:Template}}:{{{1|Tlsp}}}|{{{1|Tlsp}}}]]{{#if:{{{2|}}}|<tt>|</tt>{{{2}}}}}{{#if:{{{3|}}}|<tt>|</tt>{{{3}}}}}{{#if:{{{4|}}}|<tt>|</tt>{{{4}}}}}{{#if:{{{5|}}}|<tt>|</tt><i>etc.</i>}}{{#if:{{{subst|}}}|<tt>|</tt>subst={{{subst}}}}}<small> </small>}}<noinclude> | ||
---- | ---- | ||
Usage: {{Tlx|Tlsp|template name|first parameter|...}}<br /> | Usage: {{Tlx|Tlsp|template name|first parameter|...}}<br /> | ||
Версия 08:24, 21 июня 2006
{{ subst:Tlsp{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||etc.}}{{#if:||subst={{{subst}}}}} }}
Usage: {{{{#if: |subst:}}Tlsp{{#if:template name ||template name}}{{#if:first parameter ||first parameter}}{{#if:... ||...}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
Up to three parameters for the specified template are displayed as placeholders, more parameters are shown as "|etc.", for details see {{{{#if: |subst:}}Tlx{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}} and the talk page.