Шаблон:Tlp
{{Tlp}}
Документация
Использование:
{{Tlp|имя шаблона|первый параметр|...}}
Для указанного шаблона отображается до пяти параметров, остальные параметры отображаются как «| и т. д.».
Использование
- {{Tlp|template name}}
- {{Tlp|template name|param}}
- {{Tlp|template name|1|2|3}}
- {{Tlp|template name|1|2|3|more}}
- {{Tlp|template name|param=value}}
Up to three placeholders for parameters of the specified template
Примеры
Code | Result | Remark |
---|---|---|
{{Tlx|x0}}
|
{{x0}}
|
|
{{Tlx|x1|one}}
|
{{x1|one}}
|
|
{{Tlx|x2|one|two}}
|
{{x2|one|two}}
|
|
{{Tlx|x3|1|2|3}}
|
{{x3|1|2|3}}
|
|
{{Tlx|x4|1|2|3|4}}
|
{{x4|1|2|3|4}}
|
up to 3 parameters |
{{Tlx|x4|1|2|3|4}}
|
{{x4|1|2|3|4}}
|
| for more |
{{Tlx|x1|x=u}}
|
{{x1}}
|
= won't work |
{{Tlx|x1|x=u}}
|
{{x1|x=u}}
|
= is okay |
{{Tlx|x1|<nowiki>x=u</nowiki>}}
|
{{x1|x=u}}
|
sticky nowiki is okay |
{{Tlx|x2| |two}}
|
{{x2|two}}
|
empty won't work |
{{Tlx|x2| |two}}
|
{{x2| |two}}
|
  is okay |
{{Tlx|x2| |two}}
|
{{x2| |two}}
|
is okay |
{{Tlx|x2| | two}}
|
{{x2| | two}}
|
| is okay |
{{Tlx|x2| {{!}} two}}
|
{{x2| | two}}
|
{{!}} is dubious
|
{{Tlx|x2|2=|3=two}}
|
{{x2|two}}
|
empty really doesn't work |
{{Tlx|x2|2=one|two}}
|
{{x2|two}}
|
two clobbers 2=one |
{{Tlx|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
{{Tlx}}
:
Usage | Code | Result |
---|---|---|
0 Tlx |
|
{{Tl}}
|
0 Tl |
|
{{Tlx}} |
1 Tlx |
|
{{Tlp|one}}
|
1 Tlp |
|
{{Tlp|one}} |
1 Tetl |
|
Шаблон:Tetl |
2 Tlx |
|
{{Tl2|one|two}}
|
2 Tlp2 * |
|
Шаблон:Tlp2 |
2 Tl2 * |
|
|
3 Tlx |
|
{{Tl3|1|2|3}}
|
3 Tlp3 * |
|
Шаблон:Tlp3 |
3 Tl3 * |
|
Шаблон:Tl3 |
См. также
- Шаблон {{tl}}