Шаблон:Tlp/Документация
Материал из Librarium Elementum
Шаблон:Tlp · Документация · Обсуждение
Документация
Использование:
{{Tlp|имя шаблона|первый параметр|...}}
Для указанного шаблона отображается до пяти параметров, остальные параметры отображаются как «| и т. д.».
Использование
- {{tlp<tt>|template name}}</tt>
- {{tlp<tt>|template name|param}}</tt>
- {{tlp<tt>|template name|1|2|и т. д.}}</tt>
- {{tlp<tt>|template name|1|2|и т. д.}}</tt>
- {{tlp<tt>|template name|param=value}}</tt>
Up to three placeholders for parameters of the specified template
Примеры
Code | Result | Remark |
---|---|---|
{{Tlp|x0}} | {{x0}} | |
{{Tlp|x1|one}} | {{x1|one}} | |
{{Tlp|x2|one|two}} | {{x2|one|two}} | |
{{Tlp|x3|1|2|3}} | {{x3|1|2|3}} | |
{{Tlp|x4|1|2|3|4}} | {{x4|1|2|3|и т. д.}} | up to 3 parameters |
{{Tlp|x4|1|2|3|4}} | {{x4|1|2|3|4}} | | for more |
{{Tlp|x1|x=u}} | {{x1}} | = won't work |
{{Tlp|x1|x=u}} | {{x1|x=u}} | = is okay |
{{Tlp|x1|<nowiki>x=u</nowiki>}} | {{x1|x=u}} | sticky nowiki is okay |
{{Tlp|x2| |two}} | {{x2|two}} | empty won't work |
{{Tlp|x2| |two}} | {{x2| |two}} |   is okay |
{{Tlp|x2| |two}} | {{x2| |two}} | is okay |
{{Tlp|x2| | two}} | {{x2| | two}} | | is okay |
{{Tlp|x2| {{!}} two}} | {{x2| | two}} | {{!}} is dubious |
{{Tlp|x2|2=|3=two}} | {{x2|two}} | empty really doesn't work |
{{Tlp|x2|2=one|two}} | {{x2|two}} | two clobbers 2=one |
{{Tlp|x2|3=two|2=one}} | {{x2|one|two}} | right to left okay |
Comparison
- As usual we got a zoo of similar templates, * marks redirects to {{Tlp}}:
Usage | Code | Result |
---|---|---|
0 Tlp | {{Tlp|Tl}}
|
{{Tl}} |
0 Tl | {{Tl|Tlp}}
|
{{Tlp}} |
1 Tlp | {{Tlp|Tlp|one}}
|
{{Tlp|one}} |
1 Tlp | {{Tlp|Tlp|one}}
|
{{Tlp|one}} |
1 Tetl | {{Tetl|Tlp|one}}
|
Шаблон:Tetl |
2 Tlp | {{Tlp|Tl2|one|two}}
|
{{Tl2|one|two}} |
2 Tlp2 * | {{Tlp2|Tlp|Tl|param}}
|
Шаблон:Tlp2 |
2 Tl2 * | {{Tl2|Tlp|Tl|param}}
|
Шаблон:Tl2 |
3 Tlp | {{Tlp|Tl3|1|2|3}}
|
{{Tl3|1|2|3}} |
3 Tlp3 * | {{Tlp3|Tl3|1|2|3}}
|
Шаблон:Tlp3 |
3 Tl3 * | {{Tl3|x3|1|2|3}}
|
Шаблон:Tl3 |
См. также
- {{Tl}}