Template:Alternative/doc

From blackwiki
< Template:Alternative
Revision as of 22:16, 6 July 2010 by blackwiki>Quinxorin (adding usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template must be substituted.

Usage

This template is used to add an alternate option to an existing template. Once this template is used, the alternate option will be available by setting the alt parameter equal to yes. (|alt=yes).

Parameters

  • Default: The information to be displayed when the alt parameter is omitted or set to anything but yes.
  • Alternate: The information to be used when the alt parameter is set to yes.

Examples

Type the following code into a page:

{{subst:alternate|default=hello|alternate=goodbye}}

After the page is saved, the template will be substituted to: hello

Then, when transcluding that page, one would recieve:


See also