Difference between revisions of "Template:Barnalt/doc"
Jump to navigation
Jump to search
imported>Quinxorin |
imported>Quinxorin |
||
| Line 3: | Line 3: | ||
=== Usage === | === Usage === | ||
| − | + | This template '''must''' be substituted. | |
Overwrite the old image name (including the brackets and prefix) with <nowiki>{{subst:barnalt|newname=x|oldname=y}}</nowiki>. | Overwrite the old image name (including the brackets and prefix) with <nowiki>{{subst:barnalt|newname=x|oldname=y}}</nowiki>. | ||
*'''newname:''' the name, including prefix (file: or image:) and extension (such as .png) of the alternate image. | *'''newname:''' the name, including prefix (file: or image:) and extension (such as .png) of the alternate image. | ||
*'''oldname:''' the name, including prefix (file: or image:) and extension (such as .png) of the original image. | *'''oldname:''' the name, including prefix (file: or image:) and extension (such as .png) of the original image. | ||
Then, when using the barnstar template, "|alt" will cause the alternate image to be used. | Then, when using the barnstar template, "|alt" will cause the alternate image to be used. | ||
| + | |||
| + | Please add Barnstars which use this template to [[:Category:Barnstars with alternate version]] | ||
Example: | Example: | ||
| − | <nowiki>{{subst:barnalt|newname=File:Original Barnstar Hires.png|oldname=File:Original Barnstar}}</nowiki> | + | <pre><nowiki>{{subst:barnalt|newname=File:Original Barnstar Hires.png|oldname=File:Original Barnstar}}</nowiki></pre> |
Revision as of 20:48, 2 July 2010
| 40px | This is a documentation subpage for Template:Barnalt. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template must be substituted. Overwrite the old image name (including the brackets and prefix) with {{subst:barnalt|newname=x|oldname=y}}.
- newname: the name, including prefix (file: or image:) and extension (such as .png) of the alternate image.
- oldname: the name, including prefix (file: or image:) and extension (such as .png) of the original image.
Then, when using the barnstar template, "|alt" will cause the alternate image to be used.
Please add Barnstars which use this template to Category:Barnstars with alternate version
Example:
{{subst:barnalt|newname=File:Original Barnstar Hires.png|oldname=File:Original Barnstar}}