From Wikimedia Commons, the free media repository
Jump to: navigation, search

{{{{{1}}}}} → {{{{{1}}}||||||}}

Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Xpdoc/doc.

The expansion demo templates show, for documentation:

  • some wikitext
  • its rendering

without the need of repeating the parameters in the wikitext.


{{xpdoc |1= }}

Template parameters

Parameter Description Default Status
1 name of parser function, a colon, and the first parameter, or name of template empty required
2 the parameter after the first pipe empty optional
3 the parameter after the second pipe empty optional
4 the parameter after the third pipe empty optional
5 the parameter after the fourth pipe empty optional
6 the parameter after the fifth pipe empty optional
. . . .
name of the first named parameter
name of the sixth named parameter
empty optional
. . . .
value of the first named parameter
value of the sixth named parameter
empty optional
gives text (or the empty string) to replace the arrow, e.g. gives={{!}}{{!}} to produce "||", for use in a table optional

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: all users


{{xpdoc|Creator:Vincent van Gogh}}

renders as:

{{Creator:Vincent van Gogh}}
Vincent van Gogh  (1853–1890) Link back to Creator infobox template wikidata:Q5582 s:en:Author:Vincent van Gogh q:en:Vincent van Gogh
Vincent van Gogh
Alternative names Vincent Willem van Gogh
Description Dutch painter, draughtsman and printmaker
Date of birth/death 30 March 1853 29 July 1890
Location of birth/death Zundert Auvers-sur-Oise
Work period between circa 1880 and circa July 1890
Work location Netherlands (Etten, The Hague, Nuenen, …, before 1886),
Paris (from 1886 until 1887), Arles (from 1888 until 1889),
Saint-Rémy-de-Provence (from 1889 until 1890), Auvers-sur-Oise (1890)
Authority control


This template is not intended to be localized.



Naming scheme:
  • o = double opening braces
  • c = double closing braces

This template combines the functionality of templates listed in the Expansion demo templates on Commons with a single o and c (no nesting), but with some restrictions.

In the case of demonstrating a template, values of unnamed parameters of this template are trimmed, so Template:Xpdoc cannot be used for demonstrating the effect of spaces at the start or end of an unnamed parameter.



{{xpdoc|ISOdate|2009-04-03}} produces: "{{ISOdate|2009-04-03}}".

See also


{{ Tle }} Meta template to describe template parametrizings