Template:Alternative/doc
< Template:Alternative
Jump to navigation
Jump to search
Revision as of 22:16, 6 July 2010 by blackwiki>Quinxorin (adding usage)
| 40px | This is a documentation subpage for Template:Alternative. It contains usage information, categories and other content that is not part of the original template page. |
This template must be substituted.
Contents
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
altparameter is omitted or set to anything but yes. - Alternate: The information to be used when the
altparameter 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: