Template:Xpd1
From Wikipedia, the free encyclopedia
[edit] Template documentation
Version of m:Template:xpd (backlinks, edit) with two parameters:
- the template, or the parser function with colon and part after the colon
- one (additional) parameter
Examples:
"{{t1|pqr}}"
gives "{{pqr}}" [1]
"{{#ifexpr:2<3|pqr}}"
gives "pqr" [2]
"{{1x|Help:Link}}"
gives "Help:Link" [3]
The latter result can be improved by applying substitution and putting nowiki tags around the parameter of "1x":
{{1x|[[Help:L{{tc}}k]]|
}} gives Help:Link
[edit] Named parameters
Named parameters are not supported. Neither are equals signs in parameter values.
{{xpd1|t np|q=s}} gives: "{{t np|{{{2}}}}}"
gives "Template:T np" [4] ("q=s" is ignored)
{{xpd1|t np|2=q=s}} gives: "{{t np|q=s}}"
gives "Template:T np" [5] (wrong result)
Actually:
- Template:Xpdnp
- Template:Xpdnp
[edit] See also
- m:Template:xpdt1 (backlinks, edit) for table row templates
- m:Template:xpdn (backlinks, edit) for named parameters
- Template:xpd1 (backlinks, edit)