Pereiti prie turinio

Šablonas:xpd1

Puslapis iš Vikižodyno, laisvojo žodyno.

[edit]

Dokumentacija


Version of template:xpd ( aptarimas redaguoti istorija nuorodos ) with two parameters:

  • the template, or the parser function with colon and part after the colon
  • one (additional) parameter

Examples:

{{t1|pqr}} gives startpqrend [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

Named parameters

[taisyti]

Named parameters are not supported. Neither are equals signs in parameter values.

{{xpd1|t np|q=s}} gives: {{t np|}} gives p{{{q}}}r [4] ("q=s" is ignored)

{{xpd1|t np|2=q=s}} gives: {{t np|q=s}} gives p{{{q}}}r [5] (wrong result)

Actually:

  • {{t np|1=q=s}} gives p{{{q}}}r [6]
  • {{t np|q=s}} gives psr [7]

See also

[taisyti]