ਫਰਮਾ:Xpdoc
{{{{{1}}}}}
→ {{{{{1}}}||||||}}
(this part of the documentation is only available in some languages)
The expansion demo templates show, for documentation:
- some wikitext
- its rendering
without the need of repeating the parameters in the wikitext.
Usage
ਸੋਧੋ{{xpdoc|1=}}
Parameters
Parameter name | Description (this part of the documentation is only available in some languages) | Default value | required or optional?
|
---|---|---|---|
parameter #1 (1) | name of parser function, a colon, and the first parameter, or name of template | empty | required |
parameter #2 (2) | the parameter after the first pipe | empty | optional |
parameter #3 (3) | the parameter after the second pipe | empty | optional |
parameter #4 (4) | the parameter after the third pipe | empty | optional |
parameter #5 (5) | the parameter after the fourth pipe | empty | optional |
parameter #6 (6) | the parameter after the fifth pipe | empty | optional |
n1 . . . . n6 |
name of the first named parameter ... name of the sixth named parameter |
empty | optional |
v1 . . . . v6 |
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:
{{xpdoc|Creator:Vincent van Gogh}}: {{xpdoc|Creator:Vincent van Gogh}}
Localization
This template is not intended to be localized.
Notes
ਸੋਧੋਫਰਮਾ:SedNaming 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
ਸੋਧੋਫਰਮਾ:Sed{{xpdoc|ISOdate|2009-04-03}}
produces: "{{ISOdate|2009-04-03}}
→ ".
See also
ਸੋਧੋਫਰਮਾ:Tle Meta template to describe template parametrizings