Difference between revisions of "Template:PVI/doc"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
(Split documentation off, and add nocat, and backwards compatibility note.)
 
(Document default sort key.)
 
Line 18: Line 18:
  
 
# Prior to recategorizing PV images, all images were in a common category.  To maintain backwards compatibility for images that haven't been re-categorized, the template's default behavior still categorizes PV images in the old category.  Newly uploaded images should specify nocat, to continue displaying the message box, but '''not''' place the image in the old category.
 
# Prior to recategorizing PV images, all images were in a common category.  To maintain backwards compatibility for images that haven't been re-categorized, the template's default behavior still categorizes PV images in the old category.  Newly uploaded images should specify nocat, to continue displaying the message box, but '''not''' place the image in the old category.
 +
# Default sort key <nowiki>{{PAGENAME}}</nowiki> is specified, to sort the image article by page title (instead of by namespace).

Latest revision as of 07:29, 28 September 2009

This is a documentation subpage for Template:PVI.

Usage

This template should be added to all Piñata Vision images that contain a scannable barcode.

By default, including this template in an image article will add the article to Category:Piñata Vision image. Calling this template with an optional unnamed parameter nocat will suppress the category tag.

nocat 
Suppress category tag (optional, boolean)

Example

{{PVI|nocat}} gives

Notes

  1. Prior to recategorizing PV images, all images were in a common category. To maintain backwards compatibility for images that haven't been re-categorized, the template's default behavior still categorizes PV images in the old category. Newly uploaded images should specify nocat, to continue displaying the message box, but not place the image in the old category.
  2. Default sort key {{PAGENAME}} is specified, to sort the image article by page title (instead of by namespace).