قالب:Xpd1/doc

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{{tlc|...}}k]]}}" gives "[[Help:L{{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