Template:Xpd1

From PortlandWiki
Revision as of 17:09, 15 March 2012 by WikiMaster (talk | contribs) (Create template.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[edit] [history] [purge] Documentation icon Template documentation

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 Template: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:

"{{t1|pqr}}" gives "start-pqr-end" [1]

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

"{{3x|p q}}" gives "p

qp

qp

q" [3]

Named parameters

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

{{xpd1|t np|q=s}} gives: "{{t np|{{{2}}}}}" 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

The above documentation is transcluded from Template:Xpd1/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.