Template:File info: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(What do you MEAN I could've just done this from the start?!)
mNo edit summary
 
(71 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="wikitable" style="margin: auto; width: 50%;"
<includeonly>{| class="wikitable" style="margin:1em auto"
! colspan="2" | Image information
! colspan="2" | File information
|-
|-
! Summary
! id="fileinfotpl_desc" | Summary
| {{{summary|}}}
| {{{summary|}}}
|-
|-
! Type
! Type
| {{#switch:{{{type|}}} | screenshot=Screenshot | boxart=Box art | concept=Concept art | texture=Texture | audio=Audio | logo=Logo | map=Map | icon=Icon | real=Real world image | user=User image }}
| {{#switch:{{{type|}}}
|screenshot=Screenshot
|artwork=Artwork
|render=Render
|diorama=Diorama
|sketch=Sketch
|flatart=Flat art
|clayart=Clay art
|enemyart=Enemy art
|treasureart=Treasure art
|conceptart=Concept art
|wallpaper=Wallpaper
|boxart=Box art
|texture=Texture
|audio=Audio
|video=Video
|logo=Logo
|map=Map
|icon=Icon
|merch=[[Merchandise]] image
|promo=Promotional image
|real=Real world image
|user=[[Help:Files#User images|User image]]
|wiki=Wiki image
|#default=<span style="color:red">'''Error:''' Please enter a valid <code>type</code> parameter from [[Template:File info#Parameters|the list]].</span>
}}
|-
|-
{{#if:{{{game|}}} | !Game
{{#if:{{{game|}}} | !id="fileinfotpl_aut"{{!}}Game
{{!}} {{#ifeq:{{{game|}}}|other|Non-''Pikmin'' game| {{#switch:{{{game|}}} | p1=Pikmin | p2=Pikmin 2 | p3=Pikmin 3 | npcp1=Pikmin | npcp2=Pikmin 2 | pa=Pikmin Adventure | ssbb=Super Smash Bros. Brawl | ssb4=Super Smash Bros. for 3DS and Wii U}} }} }}
{{!}} {{#ifeq:{{{game|}}}|other|Non-''Pikmin'' game| {{#switch:{{{game|}}} | p1={{p1}} | p2={{p2}} | p3={{p3}} | p4={{p4}} | hp={{hp}} | pb={{pb}} | npcp1={{npcp1}} | p1s={{p1s}} | p1+2={{p1+2}} | npcp2={{npcp2}} | p2s={{p2s}} | p3d={{p3d}} | pa={{pa}} | ssbb={{ssbb}} | ssb4={{ssb4}} | ssbu={{ssbu}} | psm={{psm}} }} }} }}
|-
{{#if:{{{version|}}} | !Version
{{!}} {{{version}}} }}
|-
|-
{{#if:{{{location|}}} | !Location
{{#if:{{{location|}}} | !Location
{{!}} [[{{{location}}}]] }}
{{!}} {{#ifeq:{{{location}}}|Story mode cave|[[Cave]]|[[{{{location}}}]]}} }}
|-
|-
{{#if:{{{source|}}} | !Source
{{#if:{{{source|}}} | !id="fileinfotpl_src"{{!}}Source
{{!}} {{#ifeq:{{{source|}}}|self|Image created by the uploader|{{{source}}}}} }}
{{!}} {{#ifeq:{{{source|}}}|self|Image created by the uploader|{{{source}}}}} }}
|-
|-
!License
!License
| {{license| {{#switch:{{{type|}}} | real | user = {{{license}}} | #default = {{{type|}}} }} }}
| {{license | {{#if:{{{license|}}}|{{{license}}}|game}} | nocat={{{nocat|<noinclude>y</noinclude>}}} }}
|}<noinclude>
|}{{#if:{{{nocat|}}}||
 
{{#switch:{{{type|}}}
|screenshot=[[Category:Screenshots]]
|artwork={{file info/cat|{{{game}}}|artwork}}
|render={{file info/cat|{{{game}}}|renders}}
|diorama={{file info/cat|{{{game}}}|dioramas}}
|sketch={{file info/cat|{{{game}}}|sketches}}
|flatart={{file info/cat|{{{game}}}|flat art}}
|clayart={{file info/cat|{{{game}}}|clay art}}
|enemyart={{file info/cat|{{{game}}}|enemy art}}
|treasureart={{file info/cat|{{{game}}}|treasure art}}
|conceptart={{file info/cat|{{{game}}}|concept art}}
|wallpaper={{file info/cat|{{{game}}}|wallpapers}}
|boxart=[[Category:Boxart images]]
|texture=[[Category:Textures]]
|audio=[[Category:Audio]]
|video=[[Category:Videos]]
|logo=[[Category:Logos]]
|map=[[Category:Maps]]
|icon=[[Category:Icons]]
|merch=[[Category:Merchandise images]]
|promo=[[Category:Promotional material]]
|real=[[Category:Real-world images]]
|user=[[Category:User images]]
|wiki=[[Category:Pikipedia images]]
}}
[[Category:{{file info/game|{{{game}}}}} images]]
{{#if:{{{location|}}}|{{#ifeq:{{{location}}}|Story mode cave|[[Category:Cave images]]|{{#ifeq:{{{game}}}-{{{location|}}}|Pikmin 4-Cave|[[Category:Pikmin 4 cave images]]|{{#ifeq:{{{location}}}|N/A||[[Category:{{{location}}} images]]}}}}}}}}}}
{{#if:{{{summary|}}}|{{#seo:description={{{summary}}}}}|[[Category:Files with no summary]]}}</includeonly><noinclude>


==Info==
==Info==
This template should be used for all files on the "Files:" namespace. It presents some information about the file, both in terms of content and metadata.
This template should be used for all files in the "File" namespace. It presents some information about the file, both in terms of content and metadata. It also automatically categorizes the image.


==Parameters==
==Parameters==
{| class="wikitable"
{| class="wikitable"
! Parameter || Mandatory || Default || Purpose || Detailed description
! Parameter || Mandatory || Purpose || Default || Detailed description
|-
|-
! summary
! summary
Line 34: Line 91:
| '''Yes''' || Content type ||  || What type of content this is. This will automatically determine some other things. Can be one of the following:
| '''Yes''' || Content type ||  || What type of content this is. This will automatically determine some other things. Can be one of the following:
* screenshot: Media screenshot.
* screenshot: Media screenshot.
* artwork: Artwork.
** render: Render.
** diorama: Diorama.
** sketch: Sketch.
** flatart: Flat art.
** clayart: Clay art.
** enemyart: Enemy art.
** treasureart: Treasure art.
** conceptart: Concept art.
** wallpaper: Wallpaper.
* boxart: Box art.
* boxart: Box art.
* concept: Concept art.
* texture: Game texture.
* texture: Game texture.
* audio: Game audio.
* audio: Game audio.
* video: Game video.
* logo: Logo.
* logo: Logo.
* map: Map, either in-game or fan-made.
* map: Map, either in-game or fan-made.
* icon: Icon.
* icon: Icon.
* merch: Merchandise image.
* promo: Promotional material.
* real: Real world image.
* real: Real world image.
* user: User image.
* user: User image.
* wiki: Image for use in Pikipedia itself.
|-
|-
! game
! game
| No || Game ||  || The game this file is about (or the [[Pikmin Short Movies|Short Movies]]). Can be one of the following:
| No || Game ||  || The game this file is about (or the [[Pikmin Short Movies|Short Movies]]). Can be one of the following:
* p1 - p3: ''Pikmin'' to ''Pikmin 3''.
* p1 - p4: ''Pikmin'' to ''Pikmin 4''.
* hp: ''Hey! Pikmin''.
* pb: ''Pikmin Bloom''.
* npcp1 - npcp2: The ''New Play Control!'' titles.
* npcp1 - npcp2: The ''New Play Control!'' titles.
* p1s - p2s: The ''Pikmin 1'' and ''2'' [[Nintendo Switch]] ports.
* p1+2: The ''Pikmin 1+2'' bundle.
* p3d: ''Pikmin 3 Deluxe''.
* pa: ''Pikmin Adventure''.
* pa: ''Pikmin Adventure''.
* ssbb: ''Super Smash Bros. Brawl''.
* ssbb: ''Super Smash Bros. Brawl''.
* ssb4: ''Super Smash Bros. for 3DS and Wii U''.
* ssb4: ''Super Smash Bros. for Nintendo 3DS and Wii U''.
* ssbu: ''Super Smash Bros. Ultimate''.
* psm:  ''Pikmin'' Short Movies.
* psm:  ''Pikmin'' Short Movies.
* other: A non-''Pikmin'' game.
* other: A non-''Pikmin'' game.
|-
! version
| No ||| Software version ||  || Version of the software that the screenshot is from, if applicable. This can be the number version, or platform (e.g. Android or iOS for ''Pikmin Bloom'').
|-
|-
! location
! location
Line 61: Line 140:
|-
|-
! license
! license
| No || License ||  || If it cannot be deduced automatically from the content type, the license must be added here. This is the same parameter you would feed into {{tem|license}}.
| No || License ||  || For anything other than game/media copyrighted fair use, the license must be added here. This is the same parameter you would feed into {{tem|license}}.
|-
! nocat
| No || No categorization || || If this has a value, like "y", then the template will not automatically categorize the file.
|}
|}


Line 70: Line 152:
|type    =  
|type    =  
|game    =  
|game    =  
|version  =
|location =  
|location =  
|source  =  
|source  =  
|license  =  
|license  =  
|nocat    =
}}
}}
</pre>
</pre>
Line 84: Line 168:
|type    = screenshot
|type    = screenshot
|game    = p3
|game    = p3
|version  = 2.0.0
|location = Garden of Hope
|location = Garden of Hope
}}</pre>
}}</pre>
Line 90: Line 175:
|type    = screenshot
|type    = screenshot
|game    = p3
|game    = p3
|version  = 2.0.0
|location = Garden of Hope
|location = Garden of Hope
|nocat    = y
}}
}}
|}
|}


[[Category:Media templates]]
[[Category:Media templates]]</noinclude>
</noinclude>

Latest revision as of 09:56, August 12, 2024


Info

This template should be used for all files in the "File" namespace. It presents some information about the file, both in terms of content and metadata. It also automatically categorizes the image.

Parameters

Parameter Mandatory Purpose Default Detailed description
summary Yes File summary A brief explanation of what the image or sound is; what it contains, and what it is used for.
type Yes Content type What type of content this is. This will automatically determine some other things. Can be one of the following:
  • screenshot: Media screenshot.
  • artwork: Artwork.
    • render: Render.
    • diorama: Diorama.
    • sketch: Sketch.
    • flatart: Flat art.
    • clayart: Clay art.
    • enemyart: Enemy art.
    • treasureart: Treasure art.
    • conceptart: Concept art.
    • wallpaper: Wallpaper.
  • boxart: Box art.
  • texture: Game texture.
  • audio: Game audio.
  • video: Game video.
  • logo: Logo.
  • map: Map, either in-game or fan-made.
  • icon: Icon.
  • merch: Merchandise image.
  • promo: Promotional material.
  • real: Real world image.
  • user: User image.
  • wiki: Image for use in Pikipedia itself.
game No Game The game this file is about (or the Short Movies). Can be one of the following:
  • p1 - p4: Pikmin to Pikmin 4.
  • hp: Hey! Pikmin.
  • pb: Pikmin Bloom.
  • npcp1 - npcp2: The New Play Control! titles.
  • p1s - p2s: The Pikmin 1 and 2 Nintendo Switch ports.
  • p1+2: The Pikmin 1+2 bundle.
  • p3d: Pikmin 3 Deluxe.
  • pa: Pikmin Adventure.
  • ssbb: Super Smash Bros. Brawl.
  • ssb4: Super Smash Bros. for Nintendo 3DS and Wii U.
  • ssbu: Super Smash Bros. Ultimate.
  • psm: Pikmin Short Movies.
  • other: A non-Pikmin game.
version No Software version Version of the software that the screenshot is from, if applicable. This can be the number version, or platform (e.g. Android or iOS for Pikmin Bloom).
location No Location In-game location that this file pertains to. Write the full name of the area, but if it's in a cave or in a level exclusive to an alternative game mode, do not fill this in.
source No File source If this file was created by the user, type "self". If it was obtained off a website, type its URL here, formatted or not.
license No License For anything other than game/media copyrighted fair use, the license must be added here. This is the same parameter you would feed into {{license}}.
nocat No No categorization If this has a value, like "y", then the template will not automatically categorize the file.

Skeleton

{{file info
|summary  = 
|type     = 
|game     = 
|version  = 
|location = 
|source   = 
|license  = 
|nocat    = 
}}

Examples

Code Result
{{file info
|summary  = An image with content.
|type     = screenshot
|game     = p3
|version  = 2.0.0
|location = Garden of Hope
}}
File information
Summary An image with content.
Type Screenshot
Game Pikmin 3
Version 2.0.0
Location Garden of Hope
License This file is subject to copyright. Copyright is most likely held by the company that published the game or media portrayed in the image. Pikipedia's use of this work qualifies as fair use under United States copyright law, or the author's permission is given. It is used on the wiki only in the belief that the information the image portrays is designed to be an accompaniment to playing the game or media, and its use here will not:
  1. Detract from the experience of playing the game or using the media in question.
  2. Harm the author's sales or reputation.