Difference between revisions of "Template:Barnalt/doc"
Jump to navigation
Jump to search
imported>Quinxorin |
imported>Quinxorin |
||
| Line 7: | Line 7: | ||
*'''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. | ||
| + | *'''newsize:''' the size of the new image, including px. Default is 100px. | ||
| + | *'''oldsize:''' the size of the old image, including px. Default is 100px. | ||
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]] | Please add Barnstars which use this template to [[:Category:Barnstars with alternate version]] | ||
| − | Example: | + | Example 1: |
<pre><nowiki>{{subst:barnalt|newname=File:Original Barnstar Hires.png|oldname=File:Original Barnstar}}</nowiki></pre> | <pre><nowiki>{{subst:barnalt|newname=File:Original Barnstar Hires.png|oldname=File:Original Barnstar}}</nowiki></pre> | ||
| + | Example 2: | ||
| + | <pre><nowiki>{{subst:barnalt|newname=File:Original Barnstar Hires.png|oldname=File:Original Barnstar|newsize=50px|oldsize=200px}}</nowiki></pre> | ||
Revision as of 19:40, 5 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.
- newsize: the size of the new image, including px. Default is 100px.
- oldsize: the size of the old image, including px. Default is 100px.
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 1:
{{subst:barnalt|newname=File:Original Barnstar Hires.png|oldname=File:Original Barnstar}}
Example 2:
{{subst:barnalt|newname=File:Original Barnstar Hires.png|oldname=File:Original Barnstar|newsize=50px|oldsize=200px}}
Notes
- You may wish to practice before using this template, as it can be difficult. You may do so at Template:Barnalt/testcases.
- This template's usagenote may be transcluded to easily add usage information. See its documentation page for more information.