Difference between revisions of "Template:PVI"
From PinataIsland.info, the Viva Piñata wiki
FeralKitty (talk | contribs) (Add nocat, convert to newer image message box notice. Split off documentation.) |
FeralKitty (talk | contribs) (Specify PAGENAME default sort key to sort images by page title, instead of namespace.) |
||
Line 1: | Line 1: | ||
− | <includeonly><table class="plainlinks imbox imbox-notice"><!-- | + | <includeonly>{{DEFAULTSORT:{{PAGENAME}}}}<table class="plainlinks imbox imbox-notice"><!-- |
--><tr><td class="mbox-image">[[Image:Imbox notice.png|40x40px]]</td><td class="mbox-text">This image can be scanned using the [[Piñata Vision]] feature of [[Viva Piñata: Trouble in Paradise]] using an [[Xbox Live Vision]] camera.</td></tr></table><!-- | --><tr><td class="mbox-image">[[Image:Imbox notice.png|40x40px]]</td><td class="mbox-text">This image can be scanned using the [[Piñata Vision]] feature of [[Viva Piñata: Trouble in Paradise]] using an [[Xbox Live Vision]] camera.</td></tr></table><!-- | ||
-->{{#ifeq:{{{1| }}}|nocat|<!--true, do not categorize-->|[[Category:Piñata Vision image]]}}<!-- | -->{{#ifeq:{{{1| }}}|nocat|<!--true, do not categorize-->|[[Category:Piñata Vision image]]}}<!-- |
Latest revision as of 07:26, 28 September 2009
- This documentation is transcluded from Template:PVI/doc
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
![]() | This image can be scanned using the Piñata Vision feature of Viva Piñata: Trouble in Paradise using an Xbox Live Vision camera. |
Notes
- 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 {{PAGENAME}} is specified, to sort the image article by page title (instead of by namespace).