Difference between revisions of "Template:PVI"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
(That didn't work right :))
(Add nocat, convert to newer image message box notice. Split off documentation.)
Line 1: Line 1:
<noinclude>
+
<includeonly><table class="plainlinks imbox imbox-notice"><!--
== Usage ==
+
--><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><!--
This template should be added to all [[Piñata Vision]] images that contain a scannable barcode.
+
-->{{#ifeq:{{{1| }}}|nocat|<!--true, do not categorize-->|[[Category:Piñata Vision image]]}}<!--
== Example ==
+
 
: <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki> gives
+
--></includeonly><noinclude>
 +
{{PVI/doc}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>
 
<div style="background:#FFFFCC; padding:10px; border-color: #FFD700; border-style: solid; ">This image can be scanned using the [[Piñata Vision]] feature of [[Viva Piñata: Trouble in Paradise]] using an [[Xbox Live Vision]] camera.</div>
 
 
<includeonly>
 
[[Category:Piñata Vision image]]
 
</includeonly>
 

Revision as of 05:50, 27 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

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).