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

Материал из Викимультии — энциклопедии мультипликации
Перейти к навигации Перейти к поиску
[непроверенная версия][отпатрулированная версия]
Перенаправление на Шаблон:Tlp
 
Нет описания правки
 
Строка 1: Строка 1:
#перенаправление [[Шаблон:Tlp]]
<includeonly>{{#invoke:Tlx|tlx}}</includeonly><noinclude>{{doc-inline}}{{Tlx|Tlx}} is used to explain different parameters for other templates.
 
== Использование ==
<code><nowiki>{{Tlx|название шаблона|первый параметр|2=значение=параметр|...}}</nowiki></code>
 
* Any number of parameters for the specified template are displayed as placeholders, more parameters are shown sperated by «|''etc.''».
* If you want one of the prefixes such as subst: to be shown then add prefix=subst to the parameters.
* Alternatively, subst: prefix can be added by setting <code>|subst=true</code>
* You can wrap the entire explanation inside <code><nowiki><code>...</code></nowiki></code> tags by setting <code>|style=code</code>
* If you wish to explain a named parameter then add the number of the parameter you are at and an = sign (as shown below).
 
== Examples ==
* <nowiki>{{Tlx|PolicyWarn|Policy Name|subst=true}}</nowiki> → {{Tlx|delete|Policy Name|subst=true}}
 
* <nowiki>{{Tlx|delete|2=quick=true|3=reason=Some reason|prefix=myprefix}}</nowiki> → {{Tlx|delete|2=quick=true|3=reason=Some reason|prefix=myprefix}}
 
* <nowiki>{{Tlx|PolicyWarn|Policy Name|subst=true|style=code}}</nowiki> → {{Tlx|delete|Policy Name|subst=true|style=code}}
 
 
[[Категория:Шаблоны:Для шаблонов|{{PAGENAME}}]]
[[Категория:Викимультия:Шаблоны:Внутренние ссылки|{{PAGENAME}}]]
{{doc-end}}</noinclude>

Текущая версия от 04:18, 2 мая 2017

(i) Документация
{{Tlx}} is used to explain different parameters for other templates.

Использование[править код]

{{Tlx|название шаблона|первый параметр|2=значение=параметр|...}}

  • Any number of parameters for the specified template are displayed as placeholders, more parameters are shown sperated by «|etc.».
  • If you want one of the prefixes such as subst: to be shown then add prefix=subst to the parameters.
  • Alternatively, subst: prefix can be added by setting |subst=true
  • You can wrap the entire explanation inside <code>...</code> tags by setting |style=code
  • If you wish to explain a named parameter then add the number of the parameter you are at and an = sign (as shown below).

Examples[править код]

  • {{Tlx|PolicyWarn|Policy Name|subst=true}} → {{subst:delete|<Policy Name>}}
  • {{Tlx|delete|2=quick=true|3=reason=Some reason|prefix=myprefix}} → {{myprefix:delete|quick=<true>|reason=<Some reason>}}
  • {{Tlx|PolicyWarn|Policy Name|subst=true|style=code}} → {{subst:delete|<Policy Name>}}