Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 13:40, 20 September 2010 by commons>Patrick (13def=→)

The expansion demo templates show, for documentation:

  • some wikitext
  • its rendering

without the need of repeating the parameters in the wikitext.

Usage

{{xpdoc |1= |2= |3= |4= |5= |6= |n1= |v1= |n2= |v2= |n3= |v3= |gives= }}

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
n1name of the first named parameteremptyoptional
v1value of the first named parameteremptyoptional
n2name of the second named parameteremptyoptional
v2value of the second named parameteremptyoptional
n3name of the third named parameteremptyoptional
v3value of the third named parameteremptyoptional
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}}Template:Creator:Vincent van Gogh

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 m:Help:Expansion demo templates 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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.