قالب:Xpd1
Version of قالب:xpd ( ناقش, ماذا يرتبط هنا, عدل) 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:L
gives "[[Help:L{{tlc|...}}
k]]}}"{{tlc|...}}
k]]" [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:L{{tlc|...}}
k]]
Named parameters
Named parameters are not supported. Neither are equals signs in parameter values.
{{xpd1|t np|q=s}} gives: "{{t np|{{{2}}}}}"
gives "قالب:T np" [4] ("q=s" is ignored)
{{xpd1|t np|2=q=s}} gives: "{{t np|q=s}}"
gives "قالب:T np" [5] (wrong result)
Actually:
See also
- قالب:xpdt1 ( ناقش, ماذا يرتبط هنا, عدل) for table row templates
- قالب:xpdn ( ناقش, ماذا يرتبط هنا, عدل) for named parameters
- Template:xpd1 (talk, backlinks, edit)
The above documentation is transcluded from قالب:Xpd1/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |