Template:File info: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
(5 intermediate revisions by the same user not shown)
Line 44: Line 44:
|-
|-
!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|}}}||
|}<includeonly>{{#if:{{{nocat|}}}||
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
Line 71: Line 71:
}}
}}
[[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}}}}}|[[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. It also automatically categorizes the image.
This template should be used for all files on 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 129:
|-
|-
! 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 135:
|-
|-
! 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