Difference between revisions of "Template:Barnalt/doc"

From blackwiki
Jump to navigation Jump to search
imported>Quinxorin
(→‎Notes: Properly bulletted info)
imported>Quinxorin
Line 17: Line 17:
  
 
=== Notes ===
 
=== Notes ===
*You may wish to practice before using this template, as it can be difficult. You may do so at [[Template:Barnalt/sandbox]].  
+
*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 [[Template:barnalt/usagenote|usagenote]] may be transcluded to easily add usage information. See its documentation page for more information.
 
*This template's [[Template:barnalt/usagenote|usagenote]] may be transcluded to easily add usage information. See its documentation page for more information.
  

Revision as of 19:15, 5 July 2010

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}}


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.