Template:File info: Difference between revisions

m
no edit summary
(Added Pikmin 4 cave image categorization.)
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable" style="margin:1em auto"
<includeonly>{| class="wikitable" style="margin:1em auto"
! colspan="2" | File information
! colspan="2" | File information
|-
|-
Line 24: Line 24:
|map=Map
|map=Map
|icon=Icon
|icon=Icon
|merch=[[Merchandise]] image  
|merch=[[Merchandise]] image
|promo=Promotional image  
|promo=Promotional image
|real=Real world image  
|real=Real world image
|user=[[Help:Files#User images|User image]]  
|user=[[Help:Files#User images|User image]]
|wiki=Wiki 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>
}}
}}
|-
|-
Line 44: Line 45:
|-
|-
!License
!License
| {{license | {{#switch:{{{type|}}} | merch | promo | real | map | user | wiki | icon = {{{license}}} | #default = {{{type|}}} }} | nocat={{{nocat|<noinclude>y</noinclude>}}} }}
| {{license | {{#if:{{{license|}}}|{{{license}}}|game}} | nocat={{{nocat|<noinclude>y</noinclude>}}} }}
|}<includeonly>{{#if:{{{nocat|}}}||
|}{{#if:{{{nocat|}}}||
 
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
|screenshot=[[Category:Screenshots]]
|screenshot=[[Category:Screenshots]]
Line 71: Line 73:
}}
}}
[[Category:{{file info/game|{{{game}}}}} 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:{{{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]]}}}}}}}}}}
}}{{#switch:{{{type|}}}|merch|promo|real|map|user|wiki|icon={{#if:{{{license|}}}||[[Category:Files with no license]]}}}}
{{#if:{{{summary|}}}|{{#seo:description={{{summary}}}}}|[[Category:Files with no summary]]}}</includeonly><noinclude>
{{#if:{{{summary|}}}|{{#seo:description={{{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. It also automatically categorizes the image.
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==
Line 130: Line 131:
|-
|-
! location
! 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. Files with no license set (automatically or otherwise) get categorized in [[:Category:Files with no license]].
| 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
! source
Line 136: Line 137:
|-
|-
! 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
! nocat