Vés al contingut

Plantilla:Xpd1

De la Viquipèdia, l'enciclopèdia lliure
Icona de documentació de mòdul Documentació de la plantilla [ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]

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:

"{{tl|pqr}}" gives "{{pqr}}" [1]

"{{#ifexpr:2<3|pqr}}" gives "pqr" [2]

"{{1x|[[Help:L[[{{{1}}}|<span style="color:white;">{{{1}}}</span>]]k]]}}" gives "[[Help:L[[{{{1}}}|{{{1}}}]]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[[{{{1}}}|{{{1}}}]]k]]

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

See also

[modifica]