Difference between revisions of "Template:File information"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
m (move noinclude tag)
(Replace hardcoded message with call to PV image message box.)
 
(20 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 +
{{#ifeq: {{{Pinata_vision|}}}{{{pinata_vision|}}}{{{PVI|}}}{{{pvi|}}} | yes |{{PVI|nocat}}}}
 +
<!-- Above are any parserFunctions that display extra info above the below infobox -->
 
{| 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
 
|
 
|
{{ #if: {{{Description|}}}{{{description|}}} | {{{Description|}}}{{{description|}}} | <!--This uses imbox .css classes <table class="plainlinks imbox
+
{{ #if: {{{Description|}}}{{{description|}}} | {{{Description|}}}{{{description|}}} | <div class="boilerplate metadata" id="cleanup" style="text-align: center; background: #ffe; margin: .75em 15%; padding: .5em; border: 1px solid #e3e3b0;"> This media has no '''description''', and may be lacking other information. <br> Example: Screenshot of [[reddhott]] variant 3 by [[User:???]]</div>  }}
imbox-style" style="">
 
<tr>
 
<td class="imbox-image">
 
 
 
<td class="imbox-text" style=""> --> <div class="boilerplate metadata" id="cleanup" style="text-align: center; background: #ffe; margin: .75em 15%; padding: .5em; border: 1px solid #e3e3b0;"> This media has no '''description''', and may be lacking other information. <br> Example: Screenshot of [[reddhott]] variant 3 by [[User:???]]</div> <!-- </td>
 
 
 
</tr>
 
 
 
</table> closing imbox -->
 
  }}
 
 
|- valign="top"
 
|- valign="top"
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_src" | Platform or game
+
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_src" | Game
 
|
 
|
{{ #if: {{{Game|}}}{{{game|}}} | {{{Game|}}}{{{game|}}} | <div class="boilerplate metadata" id="cleanup" style="text-align: center; background: #ffe; margin: .75em 15%; padding: .5em; border: 1px solid #e3e3b0;">This media is lacking ''game'' or ''platform'' information. Please provide ''one'' from the following list: '''[[Viva Pinata Classic|Classic]]''', '''[[Trouble in Paradise]]''', '''TiP - Standard''', '''TiP - Just for Fun''', '''[[Pocket Paradise]]''', '''[[Party Animals]]''', '''TV show''', '''[[Xbox 360]]''', '''[[Games for Windows]]''', '''[[Nintendo DS]]'''.}}
+
{{ #if: {{{Game|}}}{{{game|}}} | {{{Game|}}}{{{game|}}} | <div class="boilerplate metadata" id="cleanup" style="text-align: center; background: #ffe; margin: .75em 15%; padding: .5em; border: 1px solid #e3e3b0;">This media is lacking ''game'' information. Please provide ''one'' from the following list: '''[[Viva Piñata: Classic|Classic]]''', '''[[Trouble in Paradise]]''', '''[[Pocket Paradise]]''', '''[[Party Animals]]''', Other, Not applicable</div>
 +
}}
 +
|- valign="top"
 +
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_src" | Platform
 +
|
 +
{{ #if: {{{Platform|}}}{{{platform|}}} | {{{Platform|}}}{{{platform|}}} | <div class="boilerplate metadata" id="cleanup" style="text-align: center; background: #ffe; margin: .75em 15%; padding: .5em; border: 1px solid #e3e3b0;">This media is lacking ''platform'' information. Please provide ''one'' from the following list: '''[[Xbox 360]]''', '''[[Games for Windows]]''', '''[[Nintendo DS]]''',  '''TV show''', Unknown, Not applicable</div>
 +
}}
 
|- valign="top"
 
|- valign="top"
 
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_src" | Type
 
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_src" | Type
 
|
 
|
{{ #if: {{{Type|}}}{{{type|}}} | {{{Type|}}}{{{type|}}} | <div class="boilerplate metadata" id="cleanup" style="text-align: center; background: #ffe; margin: .75em 15%; padding: .5em; border: 1px solid #e3e3b0;">This media is lacking ''type'' information. Please provide ''one'' from the following list: Species, Variant, Wildcard, Plant, Structure, Character, Pinata Vision, Garden, Logo, Photo, Video, Other }}
+
{{ #if: {{{Type|}}}{{{type|}}} | {{{Type|}}}{{{type|}}} | <div class="boilerplate metadata" id="cleanup" style="text-align: center; background: #ffe; margin: .75em 15%; padding: .5em; border: 1px solid #e3e3b0;">This media is lacking ''type'' information. Please provide ''one'' from the following list: Species, Variant, Wildcard, Wildcard Variant, Plant, Structure, Character, Garden item, Screenshot, Logo, Photo, Video, Other</div>
 +
}}
 
|- valign="top"
 
|- valign="top"
 
! style="background: #ccf; text-align: right; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | Date
 
! style="background: #ccf; text-align: right; padding-right: 0.4em; white-space: nowrap" id="fileinfotpl_date" | Date
Line 29: Line 28:
 
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_aut" | Source
 
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_aut" | Source
 
|
 
|
{{ #if: {{{Source|}}}{{{source|}}} | {{{Source|}}}{{{source|}}} | <div class="boilerplate metadata" id="cleanup" style="text-align: center; background: #ffe; margin: .75em 15%; padding: .5em; border: 1px solid #e3e3b0;"> This media lacks a '''source''' - i.e. ''Self'', ''Website'', etc. If it was taken from another website with permission, the website or URL should be included.</div> }}
+
{{ #if: {{{Source|}}}{{{source|}}} | {{{Source|}}}{{{source|}}} | <div class="boilerplate metadata" id="cleanup" style="text-align: center; background: #ffe; margin: .75em 15%; padding: .5em; border: 1px solid #e3e3b0;"> This media lacks a '''source''' - i.e. ''Self'', ''Website'', etc. If it was taken from another website with permission, the website or URL should be included.</div>
 +
}}
 
|- valign="top"
 
|- valign="top"
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_perm" | Permission<br /><small>([[Commons:Reusing content outside Wikimedia|Reusing this image]])</small>
+
! style="background: #ccf; text-align: right; padding-right: 0.4em" id="fileinfotpl_perm" | Permission
 
|
 
|
{{ #if: {{{Permission|}}}{{{permission|}}} | {{{Permission|}}}{{{permission|}}} | }}
+
{{ #if: {{{Permission|}}}{{{permission|}}} | {{{Permission|}}}{{{permission|}}} | Most items are created and/or used under Microsoft’s '''[http://www.xbox.com/en-us/community/developer/rules.htm Game Content Usage Rules]''' using assets from the Viva Piñata series of video games © Microsoft Corporation}}
{{#switch: {{{other_versions|{{{Other_versions|}}}}}}
 
|  =
 
| - =
 
| none =
 
| #default = <tr valign="top"><td style="background: #ccf; text-align: right; padding-right: 0.4em; font-weight: bold" id="fileinfotpl_ver">Other versions</td><td>
 
{{{other_versions|{{{Other_versions|}}}}}}</td></tr>}}
 
 
{{{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><!--
+
|}<!-- 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]]
--><noinclude>==Documentation==
+
  }}
Imagedesc is used to display an Infobox for images. Usage is as follows:
 
 
 
<pre>
 
{{User:Xenocidic/UX/Imagedesc
 
|description=
 
|game=
 
|type=
 
|date=
 
|source=
 
|permission=
 
}}
 
</pre>
 
 
 
This template uses the following parameters:
 
 
 
; ''description'' : a description of the image
 
 
 
; ''game'' : indicates which game or platform the image represents. Acceptable parameters for games includes "Classic", "Trouble in Paradise", "TiP - Standard", "TiP - Just for Fun", "Pocket Paradise", "Party Animals". if the image does not apply to one game in particular, platform parameters such as "Xbox 360", "Games for Windows", "Nintendo DS", "TV show" or "Other" can be supplied.
 
 
 
; ''type'' : acceptable types include "Species", "Variant", "Wildcard", "Plant", "Structure", "Character", "Pinata Vision", "Garden", "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
 
 
 
==Examples of different uses==
 
{|
 
|-
 
|<pre>
 
{{Imagedesc
 
|description=Closeup screenshot of a [[Reddhott]] on grass
 
|game=Classic
 
|type=Species
 
|date=00:18, 16 November 2006
 
|source=uploaded by [[User:Jimmcq]]
 
|permission=
 
}}</pre>
 
|[[Image:Reddhott.jpg|right]]
 
|}
 
{{User:Xenocidic/UX/Imagedesc
 
|description=Closeup screenshot of a [[Reddhott]] on grass
 
|game=Classic
 
|type=Species
 
|date=00:18, 16 November 2006
 
|source=uploaded by [[User:Jimmcq]]
 
|permission=
 
}}
 
{{clear}}
 
 
 
{|
 
|-
 
|<pre>
 
{{Imagedesc
 
|description=ProperVillain's [[wildcard]] [[cocoadile]]
 
|game=Classic
 
|type=Wildcard
 
|date=00:18, 16 November 2006
 
|source=photo taken and uploaded by [[User:LordRavenBlack]]
 
|permission=
 
}}</pre>
 
|[[Image:WildcardCocoadile.jpg]]
 
|}
 
{{User:Xenocidic/UX/Imagedesc
 
|description=ProperVillain's wildcard cocoadile
 
|game=Classic
 
|type=Wildcard
 
|date=00:18, 16 November 2006
 
|source=photo taken and uploaded by [[User:LordRavenBlack]]
 
|permission=
 
}}
 
 
 
{|
 
|-
 
|<pre>
 
{{Imagedesc
 
|description=Screenshot of two [[pengum]]s in the [[pinarctic]]
 
|game=Trouble in Paradise
 
|type=Species
 
|date=00:18, 16 November 2006
 
|source=photo taken and uploaded by [[User:LordRavenBlack]]
 
|permission=
 
}}</pre>
 
|[[Image:Vptrouble_03.jpg|200px]]
 
|}
 
{{User:Xenocidic/UX/Imagedesc
 
|description=Screenshot of two [[pengum]]s in the [[pinarctic]]
 
|game=Trouble in Paradise
 
|type=Species
 
|date=01:31, 25 May 2008
 
|source=Microsoft press kit. Uploaded by [[User:FeralKitty]]
 
|permission=
 
 
}}
 
}}
</noinclude>
 

Latest revision as of 10:00, 27 September 2009

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