Difference between revisions of "Template:File information"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
(add pinata vision param, tweaking messaging when missing fields)
(image categorization parserFunction for PVI)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{{#ifeq: {{{Pinata_vision|}}}{{{pinata_vision|}}}{{{PVI|}}}{{{pvi|}}} | yes |  
 
{{#ifeq: {{{Pinata_vision|}}}{{{pinata_vision|}}}{{{PVI|}}}{{{pvi|}}} | yes |  
<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>
+
<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>}}
<!-- [[Category:Piñata Vision image]] --> }}
+
<!-- Above are any parserFunctions that display extra info above the below infobox -->
<!-- Above are any parserFunctions that need to categorize the image and/or display extra info -->
 
 
{| summary="A standardized table providing complete information about the file, including description of what it shows and how it was made, copyright status and source." class="toccolours" style="width: 100%" cellpadding="2"
 
{| summary="A standardized table providing complete information about the file, including description of what it shows and how it was made, copyright status and source." class="toccolours" style="width: 100%" cellpadding="2"
 
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; width: 15%" id="fileinfotpl_desc" |Description
 
! style="background: #ccf; text-align: right; vertical-align: top; padding-right: 0.4em; width: 15%" id="fileinfotpl_desc" |Description
Line 44: Line 43:
 
{{{other_fields|}}}
 
{{{other_fields|}}}
 
|}<!-- Do not remove the following code. It is included for machine readability --><span id="field-description" title="{{urlencode:{{{Description|}}}{{{description|}}}}}"></span><span id="field-source" title="{{urlencode:{{{Source|}}}{{{source|}}}}}"></span><span id="field-date" title="{{urlencode:{{{Date|}}}{{{date|}}}}}"></span><span id="field-author" title="{{urlencode:{{{Author|}}}{{{author|}}}}}"></span><span id="field-permission" title="{{urlencode:{{{Permission|}}}{{{permission|}}}}}"></span><span id="field-otherversions" title="{{urlencode:{{{other_versions|{{{Other_versions|}}}}}}}}"></span></includeonly><noinclude>{{Template:File information/doc}}</noinclude>
 
|}<!-- Do not remove the following code. It is included for machine readability --><span id="field-description" title="{{urlencode:{{{Description|}}}{{{description|}}}}}"></span><span id="field-source" title="{{urlencode:{{{Source|}}}{{{source|}}}}}"></span><span id="field-date" title="{{urlencode:{{{Date|}}}{{{date|}}}}}"></span><span id="field-author" title="{{urlencode:{{{Author|}}}{{{author|}}}}}"></span><span id="field-permission" title="{{urlencode:{{{Permission|}}}{{{permission|}}}}}"></span><span id="field-otherversions" title="{{urlencode:{{{other_versions|{{{Other_versions|}}}}}}}}"></span></includeonly><noinclude>{{Template:File information/doc}}</noinclude>
 +
<!-- Below are image categorization parserFunctions -->
 +
{{#if: {{{nocat|}}} | <!-- no cat is true, so do nothing --> |
 +
  {{#ifeq: {{{Pinata_vision|}}}{{{pinata_vision|}}}{{{PVI|}}}{{{pvi|}}} | yes | [[Category:Piñata Vision image]]
 +
  }}
 +
}}

Revision as of 20:06, 26 August 2008

This documentation is transcluded from Template:File information/doc

Documentation

File information is used to display an Infobox for images, videos, and other media files. Usage is as follows:

{{File information
|description=
|game=
|platform=
|pinata_vision=
|type=
|date=
|source=
|permission=
}}

This template uses the following parameters:

description 
a description of the image
game 
indicates which game the image is from. Acceptable parameters include "Classic", "Trouble in Paradise", "Pocket Paradise", "Party Animals". also acceptable are "Unknown" or "Not applicable" (i.e. TV show, concept art, etc.)
platform 
indicates which platform the image is from. Acceptable parameters include "Xbox 360", "Games for Windows", "Nintendo DS", "TV show", "Unknown" or "Not applicable"
pinata_vision 
yes or no (boolean) used to flag the file as a Piñata Vision image
type 
acceptable types include "Species", "Variant", "Wildcard", "Wildcard Variant", "Plant", "Structure", "Character", "Screenshot", "Logo", "Photo", "Video", "Other"
date 
date of upload or date of event if a real world-photo
source 
i.e. "self" or "website: http://vivapinata.com"
permission 
copyright status of image - may be left blank and the standard Microsoft game content usage rules will be shown

Examples of different uses

{{File information
|description=Pinata Vision card for Galagoogoo by Neil J
|game=Trouble in Paradise
|platform=Xbox 360
|pinata_vision=yes
|type=Variant
|date=18:44, 18 August 2008
|source=uploaded by [[User:Jimmcq]]
|permission=
}}
27-GalagoogooPV.jpg
Description

Pinata Vision card for Galagoogoo by Neil J

Game

Trouble in Paradise

Platform

Xbox 360

Type

Variant

Date

18:44, 18 August 2008

Source

uploaded by User:Jimmcq

Permission

Most items are created and/or used under Microsoft’s Game Content Usage Rules using assets from the Viva Piñata series of video games © Microsoft Corporation

{{File information
|description=Closeup screenshot of a [[Reddhott]] on grass
|game=Classic
|pinata_vision=no
|platform=Xbox 360
|type=Species
|date=00:18, 16 November 2006
|source=uploaded by [[User:Jimmcq]]
|permission=
}}
Reddhott.jpg


Description

Closeup screenshot of a Reddhott on grass

Game

Classic

Platform

Xbox 360

Type

Species

Date

00:18, 16 November 2006

Source

uploaded by User:Jimmcq

Permission

Most items are created and/or used under Microsoft’s Game Content Usage Rules using assets from the Viva Piñata series of video games © Microsoft Corporation

{{File information
|description=ProperVillain's [[wildcard]] [[cocoadile]]
|game=Classic
|platform=Xbox 360
|pinata_vision=no
|type=Wildcard
|date=00:18, 16 November 2006
|source=photo taken and uploaded by [[User:LordRavenBlack]]
|permission=
}}
WildcardCocoadile.jpg


Description

ProperVillain's wildcard cocoadile

Game

Classic

Platform

Xbox 360

Type

Wildcard

Date

00:18, 16 November 2006

Source

photo taken and uploaded by User:LordRavenBlack

Permission

Most items are created and/or used under Microsoft’s Game Content Usage Rules using assets from the Viva Piñata series of video games © Microsoft Corporation


{{File information
|description=Screenshot of two [[pengum]]s in the [[pinarctic]]
|game=Trouble in Paradise
|platform=Xbox 360
|pinata_vision=no
|type=Screenshot
|date=00:18, 16 November 2006
|source=photo taken and uploaded by [[User:LordRavenBlack]]
|permission=
}}
Vptrouble 03.jpg


Description

Screenshot of two pengums in the pinarctic

Game

Trouble in Paradise

Platform

Xbox 360

Type

Screenshot

Date

01:31, 25 May 2008

Source

Microsoft press kit. Uploaded by User:FeralKitty

Permission

Most items are created and/or used under Microsoft’s Game Content Usage Rules using assets from the Viva Piñata series of video games © Microsoft Corporation