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
mNo edit summary
No edit summary
Line 17: Line 17:
*some wikitext
*some wikitext
*its rendering
*its rendering
|namespace=
without the need of repeating the parameter in the wikitext.
|usergroup=people demonstrating or trying out the use a template or parser function
|namespace=10
|usergroup=all
|placement=
|placement=
|usage-notes=
|usage-notes=
Line 41: Line 42:


==Example==
==Example==
<nowiki>{{xpdopc|ISOdate|2009-04-03}}</nowiki> produces: "{{xpdopc|ISOdate|2009-04-03}}".
<code><nowiki>{{xpdopc|ISOdate|2009-04-03}}</nowiki></code> produces: "{{xpdopc|ISOdate|2009-04-03}}".


==See also==
==See also==
*[[m:Help:Expansion demo templates]]
*[[m:Help:Expansion demo templates]]
<includeonly>[[Category:Expansion demo templates]]</includeonly>
<includeonly>[[Category:Expansion demo templates]]</includeonly>

Revision as of 14:14, 18 September 2010

The expansion demo templates show, for documentation:

  • some wikitext
  • its rendering

without the need of repeating the parameter in the wikitext.

Usage

{{xpdopc |1= |2= |gives= }}

Template parameters

ParameterDescriptionDefaultStatus
1name of parser function, a colon, and the first parameter, or name of templateemptyrequired
2the parameter after the first pipeempty stringoptional
givestext (or the empty string) to replace the word "gives", e.g. gives={{!}}{{!}} to produce "||", for use in a tablegivesoptional

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

Naming scheme:

  • o = double opening braces
  • c = double closing braces
  • p = pipe character
  • e = equals sign

This is a simplified version of m:Template:Xpdop3c.

Example

{{xpdopc|ISOdate|2009-04-03}} produces: "Template:Xpdopc".

See also

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