Template:File info: Difference between revisions

Added auto-categorization of files with no license.
mNo edit summary
(Added auto-categorization of files with no license.)
Line 24: Line 24:
{{#switch:{{{game}}} | p1|npcp1=[[Category:Pikmin 1 images]] | p2|npcp2=[[Category:Pikmin 2 images]] | p3=[[Category:Pikmin 3 images]] | hp=[[Category:Hey! Pikmin images]] | pa=[[Category:Pikmin Adventure images]] | psm=[[Category:Pikmin Short Movies images]] | #default=[[Category:Non-Pikmin images]]}}
{{#switch:{{{game}}} | p1|npcp1=[[Category:Pikmin 1 images]] | p2|npcp2=[[Category:Pikmin 2 images]] | p3=[[Category:Pikmin 3 images]] | hp=[[Category:Hey! Pikmin images]] | pa=[[Category:Pikmin Adventure images]] | psm=[[Category:Pikmin Short Movies images]] | #default=[[Category:Non-Pikmin images]]}}
{{#if:{{{location|}}}|{{#ifeq:{{{location}}}|Story mode cave|[[Category:Cave images]]|{{#ifeq:{{{location}}}|N/A||[[Category:{{{location}}} images]]}}}}}}
{{#if:{{{location|}}}|{{#ifeq:{{{location}}}|Story mode cave|[[Category:Cave images]]|{{#ifeq:{{{location}}}|N/A||[[Category:{{{location}}} images]]}}}}}}
}}</includeonly><noinclude>
}}{{#if:{{{license|}}}||[[Category:Files with no license]]}}</includeonly><noinclude>


==Info==
==Info==
Line 64: Line 64:
|-
|-
! 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.
| 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 get categorized in [[:Category:Files with no license]].
|-
|-
! source
! source