Template:Xpdoc

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

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

Template documentationview · edit · history · purge ]
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.

Usage

{{xpdoc |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1name of parser function, a colon, and the first parameter, or name of templateemptyrequired
2the parameter after the first pipeemptyoptional
3the parameter after the second pipeemptyoptional
4the parameter after the third pipeemptyoptional
5the parameter after the fourth pipeemptyoptional
6the parameter after the fifth pipeemptyoptional
n1
. . . .
n6
name of the first named parameter
...
name of the sixth named parameter
emptyoptional
v1
. . . .
v6
value of the first named parameter
...
value of the sixth named parameter
emptyoptional
givestext (or the empty string) to replace the arrow, e.g. gives={{!}}{{!}} to produce "||", for use in a tableoptional

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

Example

{{xpdoc|Creator:Vincent van Gogh}}

renders as:

{{Creator:Vincent van Gogh}}
Vincent van Gogh  (1853–1890)  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, drawer and printmaker
Date of birth/death 30 March 1853 Edit this at Wikidata 29 July 1890 Edit this at Wikidata
Location of birth/death Zundert Auvers-sur-Oise
Work period between circa 1880 and circa July 1890
date QS:P,+1850-00-00T00:00:00Z/7,P1319,+1880-00-00T00:00:00Z/9,P1326,+1890-07-00T00:00:00Z/10,P1480,Q5727902
Work location
Netherlands (Etten, The Hague, Nuenen, …, before 1886
date QS:P,+1886-00-00T00:00:00Z/7,P1326,+1886-00-00T00:00:00Z/9
),
Paris (1886–1887), Arles (1888–1889),
Saint-Rémy-de-Provence (1889–1890), Auvers-sur-Oise (1890)
Authority file
creator QS:P170,Q5582

Localization

This template is not intended to be localized.

Notes

edit

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.

Examples

edit

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

See also

edit

{{ Tle }} Meta template to describe template parametrizings