模板:Tlsp/doc
跳转到导航
跳转到搜索
package.lua第80行Lua错误:module 'Module:Category handler/data' not found
Template:Tlx is used in template lists. Unlike Template:Tlx it includes "subst". Unlike Template:Tlx it allows to specify a parameter. These features are hints how to use the specified template.
Usage[编辑]
- Up to five placeholders for parameters of the specified template name:
- Template:Tlx
- Template:Tlx
- Template:Tlx
- Template:Tlx Note: start from 2 because the "name" is parameter 1. Or...
- Template:Tlx
- For templates supporting optional substitution just add subst=subst:
- Template:Tlx
Example[编辑]
| Code | Result |
| Template:Tlx | {{subst:template}} |
| Template:Tlx | {{subst:template|1st|2nd|3rd|4th|5th}} |
| Template:Tlx | {{subst:template|param=value}} |
| Template:Tlx | {{subst:template|param=value}} |
| Template:Tlx | {{subst:template|1|2|3|okay}} |
| Template:Tlx | {{subst:template|1|2|3|4|5}}{{tlsp}}最多只支持5个模板参数 |
| Template:Tlx | {{subst:template|1|2|3|4|5|subst=subst:}} |
For similar examples see Tlx.
Comparison[编辑]
| Code | Result |
| Template:Tlx | {{x0}} |
| Template:Tlx | 脚本错误:没有“Tlg”这个模块。 |
| Template:Tlx | {{subst:x0}} |
| Template:Tlx | {{subst:x3|1st|2nd|3rd|4th|5th}} |
| Template:Tlx | {{template:x3|1st|2nd|3rd}} |
| Template:Tlx | Template:Tlx |
See also[编辑]
- Template:Tlsp/doc(编辑 讨论 链接 历史) up to five parameters
- Template:Tl(编辑 讨论 链接 历史) no parameter and no subst
- Template:Tlp(编辑 讨论 链接 历史) Tl + parameter
- Template:Tls(编辑 讨论 链接 历史) Tl + subst
- Template:Tlu(编辑 讨论 链接 历史) like Tlx in any namespace
- Template:Tlx(编辑 讨论 链接 历史) like Tlsp without subst