Template:Xpd1/doc
![]() |
This is a documentation subpage for Template:Xpd1 (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
The template has two parameters:
- the template, or the parser function with colon and part after the colon
- one (additional) parameter
It is a simplified version of {{tim|xpdop3c}}, without any wikitext outside the braces, and with only one parameter to specify the (additional) parameter of the specified template parser function, see Help:Expansion_demo_templates#Limitations.
Examples:
{{xpd1|t1|pqr}}
"{{#ifexpr:2<3|pqr
[[Category:Templates]]}}"
gives "pqr" [1]
"{{3x|p
q
[[Category:Templates]]}}"
gives "p
qp
qp
q" [2]
Named parameters
Named parameters are not supported. Neither are equals signs in parameter values.
{{xpd1|t np|q=s}} gives: {{xpd1|t np|q=s}} ("q=s" is ignored)
{{xpd1|t np|2=q=s}} gives: {{xpd1|t np|2=q=s}} (wrong result)
Actually:
- {{xpdnp|t np|1n=1|1v=q=s}}
- {{xpdnp|t np|1n=q|1v=s}}
See also
- Help:Expansion demo templates
- {{tim|xpdt1}} for table row templates
- >Template:xpdn (backlinks, edit) for named parameters
- Template:xpd1 (backlinks, edit)