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.

Template:Xpdoc/doc: Difference between revisions

Template page
m +link
Line 7: Line 7:
|2d=the parameter after the first pipe  
|2d=the parameter after the first pipe  
|2def=
|2def=
|2stat=optional
|2stat=optional-
|3=3
|3=3
|3d=the parameter after the second pipe  
|3d=the parameter after the second pipe  
|3def=
|3def=
|3stat=optional
|3stat=optional-
|4=4
|4=4
|4d=the parameter after the third pipe  
|4d=the parameter after the third pipe  
|4def=
|4def=
|4stat=optional
|4stat=optional-
|5=5
|5=5
|5d=the parameter after the fourth pipe  
|5d=the parameter after the fourth pipe  
|5def=
|5def=
|5stat=optional
|5stat=optional-
|6=6
|6=6
|6d=the parameter after the fifth pipe  
|6d=the parameter after the fifth pipe  
|6def=
|6def=
|6stat=optional
|6stat=optional-
|7=n1
|7=n1</code><br> . . . .<br><code>n6
|7d=name of the first named parameter  
|7d=name of the first named parameter<br>...<br>name of the sixth named parameter
|7def=
|7stat=optional-
|7stat=optional
|8=v1</code><br> . . . .<br><code>v6
|8=v1
|8d=value of the first named parameter<br>...<br>value of the sixth named parameter
|8d=value of the first named parameter  
|8stat=optional-
|8def=
 
|8stat=optional
|9=gives
|9=n2
|9d=text (or the empty string) to replace the arrow, e.g. gives=<nowiki>{{!}}{{!}}</nowiki> to produce "<nowiki>||</nowiki>", for use in a table
|9d=name of the second named parameter
|9def=→
|9def=
|9stat=optional-
|9stat=optional
 
|10=v2
|10d=value of the second named parameter  
|10def=
|10stat=optional
|11=n3
|11d=name of the third named parameter
|11def=
|11stat=optional
|12=v3
|12d=value of the third named parameter
|12def=
|12stat=optional
|13=gives
|13d=text (or the empty string) to replace the arrow, e.g. gives=<nowiki>{{!}}{{!}}</nowiki> to produce "<nowiki>||</nowiki>", for use in a table
|13def=→
|13stat=optional
|name=xpdoc
|name=xpdoc
|desc={{Documentation subpage}}
|desc={{Documentation subpage}}
Line 88: Line 72:
{{sed|3}}
{{sed|3}}
*[[m:Help:Expansion demo templates]]
*[[m:Help:Expansion demo templates]]
{{Tle|T=Tle}} Meta template to describe template parametrizings
<includeonly>[[Category:Template namespace templates]]</includeonly>
<includeonly>[[Category:Template namespace templates]]</includeonly>

Revision as of 06:15, 15 March 2015

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}}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 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

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