Template:Xpdoc/doc: Difference between revisions
Template page
More actions
example=Creator:Vincent van Gogh |
No edit summary |
||
| Line 17: | Line 17: | ||
*some wikitext | *some wikitext | ||
*its rendering | *its rendering | ||
without the need of repeating the | without the need of repeating the parameters in the wikitext. | ||
|namespace=10 | |namespace=10 | ||
|usergroup=all | |usergroup=all | ||
| Line 26: | Line 26: | ||
|i18n-method= | |i18n-method= | ||
|i18n-desc= | |i18n-desc= | ||
|seealso= | |seealso=[[m:Help:Expansion demo templates]] | ||
|setscats= | |setscats= | ||
|lines= | |lines= | ||
| Line 39: | Line 39: | ||
This is a simplified version of [[m:Template:Xpdop3c]]. | This is a simplified version of [[m:Template:Xpdop3c]]. | ||
== | ==More examples== | ||
<code><nowiki>{{xpdopc|ISOdate|2009-04-03}}</nowiki></code> produces: "{{xpdopc|ISOdate|2009-04-03}}". | <code><nowiki>{{xpdopc|ISOdate|2009-04-03}}</nowiki></code> produces: "{{xpdopc|ISOdate|2009-04-03}}". | ||
<includeonly>[[Category:Expansion demo templates]]</includeonly> | <includeonly>[[Category:Expansion demo templates]]</includeonly> | ||
Revision as of 23:18, 18 September 2010
The expansion demo templates show, for documentation:
- some wikitext
- its rendering
without the need of repeating the parameters in the wikitext.
Usage
{{xpdopc |1= |2= |gives= }}
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 | |
gives | text (or the empty string) to replace the word "gives", e.g. gives={{!}}{{!}} to produce "||", for use in a table | gives | 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
Example
{{xpdopc|Creator:Vincent van Gogh}}
renders as:
See also
Naming scheme:
- o = double opening braces
- c = double closing braces
This is a simplified version of m:Template:Xpdop3c.
More examples
{{xpdopc|ISOdate|2009-04-03}} produces: "Template:Xpdopc".