Шаблон:Tlsp: различия между версиями
en>Omniplex (allow to document optional substitution with subst=subst:) |
en>Omniplex (add optional substitution blurb) |
||
| Строка 3: | Строка 3: | ||
Usage: {{Tlx|Tlsp|template name|first parameter|...}}<br /> | Usage: {{Tlx|Tlsp|template name|first parameter|...}}<br /> | ||
Up to three parameters for the specified template are displayed as placeholders, more parameters are shown as "<tt>|</tt>''etc.''", for details see {{Tlx|Tlx}} and the [[{{TALKPAGENAME}}|talk]] page. | Up to three parameters for the specified template are displayed as placeholders, more parameters are shown as "<tt>|</tt>''etc.''", for details see {{Tlx|Tlx}} and the [[{{TALKPAGENAME}}|talk]] page. | ||
;If the template supports [[Help:Substitution#Optional_substitution|optional substitution]] with <tt>subst=subst:</tt> just add this info: | |||
:{{Tlx|Tlsp|template name|up to three parameters|4=subst=subst:}} | |||
[[Category:Internal link templates|Tlsp]] | [[Category:Internal link templates|Tlsp]] | ||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]</noinclude> | [[Category:Templates using ParserFunctions|{{PAGENAME}}]]</noinclude> | ||
Версия 15:42, 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.
- If the template supports optional substitution with subst=subst: just add this info:
{{{{#if: |subst:}}Tlsp{{#if:template name ||template name}}{{#if:up to three parameters ||up to three parameters}}{{#if:subst=subst: ||subst=subst:}}{{#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: ||...}}}}