Template:File: Difference between revisions

Template page
w:c:strategywiki>Trig Jegman
(& taken from pikipedia, still under development)
 
m (Clarified image types)
 
(50 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="wikitable" style="margin:10px auto 0"
{| {{prettytable}}
! colspan="2" | File information
! colspan="2" | File information
|-
|-
! id="fileinfotpl_desc" | Summary
! 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 | merch=[[Merchandise]] image | real=Real world image | wiki=Wiki image}}
| <includeonly>{{File type|{{{type|}}}|{{{user|}}}}}{{#if:{{{type|}}}||[[Category:Files without type specified]]}}</includeonly>
|-
|-
{{#if:{{{game|}}} | !id="fileinfotpl_aut"{{!}}Game
{{#if:{{{type2|}}}|! Type 2
{{!}} {{#ifeq:{{{game|}}}|other|Non-''Pikmin'' game| {{#switch:{{{game|}}} | p1={{p1}} | p2={{p2}} | p3={{p3}} | hp={{hp}} | npcp1={{npcp1}} | npcp2={{npcp2}} | p3d={{p3d}} | pa={{pa}} | ssbb={{ssbb}} | ssb4={{ssb4}} | ssbu={{ssbu}} | psm={{psm}} }} }} }}
{{!}} {{File type|{{{type2|}}}|{{{user|}}}}}
|-
}}
{{#if:{{{location|}}} | !Location
{{!}} {{#ifeq:{{{location}}}|Story mode cave|[[Cave]]|[[{{{location}}}]]}} }}
|-
|-
{{#if:{{{source|}}} | !id="fileinfotpl_src"{{!}}Source
{{#if:{{{user|}}}
{{!}} {{#ifeq:{{{source|}}}|self|Image created by the uploader|{{{source}}}}} }}
|! User
{{!}} [[User:{{{user|}}}|{{{user|}}}]] }}
|-
|-
!License
! {{!}} Source
| {{license | {{#switch:{{{type|}}} | merch | real | map | user | wiki | icon = {{{license}}} | #default = {{{type|}}} }} | nocat={{{nocat|<noinclude>y</noinclude>}}} }}
| <includeonly>{{#switch:{{lc:{{{source|}}}}}
|}<includeonly>{{#if:{{{nocat|}}}||
|self=Media created by the uploader
{{#switch:{{{type|}}} | screenshot=[[Category:Screenshots]] | boxart=[[Category:Boxart images]] | concept=[[Category:Concept art]] | texture=[[Category:Textures]] | audio=[[Category:Audio]] | video=[[Category:Video]] | logo=[[Category:Logos]] | map=[[Category:Maps]] | icon=[[Category:Icons]] | merch=[[Category:Merchandise images]] | real=[[Category:Real world images]] | user=[[Category:User images]] | wiki=[[Category:Pikipedia images]]}}
|user=Media created by [[User:{{{user|}}}|{{{user|}}}]]
{{#switch:{{{game}}} | p1|npcp1=[[Category:Pikmin 1 images]] | p2|npcp2=[[Category:Pikmin 2 images]] | p3|p3d=[[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]]}}
|fandom=FANDOM image [[Category:FANDOM sourced images]]
{{#if:{{{location|}}}|{{#ifeq:{{{location}}}|Story mode cave|[[Category:Cave images]]|{{#ifeq:{{{location}}}|N/A||[[Category:{{{location}}} images]]}}}}}}
|youtube=YouTube image [[Category:YouTube sourced images]]
}}{{#switch:{{{type|}}} | merch | real | map | user | wiki | icon = {{#if:{{{license|}}}||[[Category:Files with no license]]}} }}{{#if:{{{summary|}}}|{{#description2:{{{summary}}}}}}}</includeonly><noinclude>
|presskit=Press kit image [[Category:Non-public press kit images]]
|=<font color=red>''This file is missing a source.''</font>[[Category:Files with no source provided]]
|#default={{{source|}}}}}</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 "Files:" namespace. It presents some information about the file, and automatically categorizes the image.


==Parameters==
==Parameters==
{| class="wikitable"
{| {{prettytable}}
! Parameter || Mandatory || Default || Purpose || Detailed description
! Parameter || Mandatory || Purpose || Default || Detailed description
|-
|-
! summary
! summary
| '''Yes''' || File summary ||  || A brief explanation of what the image or sound is; what it contains, and what it is used for.
| '''Yes''' || File summary ||  || A brief explanation of what the media displays, what it contains, or what it is used for.
|-
|-
! type
! type
| '''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. Can be one of the following:
* screenshot: Media screenshot.
* screenshot: Screenshot (of game, etc).
* boxart: Box art.
* concept: Concept art.
* texture: Game texture.
* audio: Game audio.
* 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.
* sprite: Game sprite.
* real: Real world image.
* user: User's personal profile image.
 
* wiki: Images for inclusion on pages, that do not better fit another type.
|-
! game
| No || Game ||  || ((to be filled))
 
|-
! 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]].
|-
|-
! source
! 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.
| Yes || File source ||  || If this file was created by the user, type "self". If it was obtained off a website, type its URL here.
|-
|-
! 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 || fairuse || 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 {{t|license}}.
|-
|}
|}


==Skeleton==
==Skeleton==
<pre>
<pre>
{{file info
{{File
|summary  =  
|summary  =  
|type    =  
|type    =  
|game    =
|location =
|source  =  
|source  =  
|license  =  
|license  =  
Line 76: Line 64:
</pre>
</pre>


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

Latest revision as of 20:55, 21 November 2023

File information
Summary
Type
Source

Info[edit source]

This template should be used for all files in the "Files:" namespace. It presents some information about the file, and automatically categorizes the image.

Parameters[edit source]

Parameter Mandatory Purpose Default Detailed description
summary Yes File summary A brief explanation of what the media displays, what it contains, or what it is used for.
type Yes Content type What type of content this is. Can be one of the following:
  • screenshot: Screenshot (of game, etc).
  • logo: Logo.
  • map: Map, either in-game or fan-made.
  • icon: Icon.
  • sprite: Game sprite.
  • user: User's personal profile image.
  • wiki: Images for inclusion on pages, that do not better fit another type.
source Yes File source If this file was created by the user, type "self". If it was obtained off a website, type its URL here.
license No License fairuse 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 {{license}}.

Skeleton[edit source]

{{File
|summary  = 
|type     = 
|source   = 
|license  = 
}}