Template:File: Difference between revisions

Template page
w:c:strategywiki>Trig Jegman
m (Clarified image types)
 
(35 intermediate revisions by 4 users not shown)
Line 6: Line 6:
|-
|-
! Type
! Type
| {{#switch:{{{type|}}} | screenshot=Screenshot | artwork=Artwork | boxart=Box art | texture=Texture | audio=Audio | logo=Logo | map=Map | icon=Icon | sprite=Sprite | wiki=Wiki image}}
| <includeonly>{{File type|{{{type|}}}|{{{user|}}}}}{{#if:{{{type|}}}||[[Category:Files without type specified]]}}</includeonly>
|-
|-
{{#if:{{{game|}}}| ! Game
{{#if:{{{type2|}}}|! Type 2
{{!}} [[{{{game|}}}]][[Category:{{{game|}}} images]]}}
{{!}} {{File type|{{{type2|}}}|{{{user|}}}}}
}}
|-
|-
! Source
{{#if:{{{user|}}}
| {{#ifeq:{{{source|}}}|self|Image created by the uploader|{{{source|}}}}}
|! User
{{!}} [[User:{{{user|}}}|{{{user|}}}]] }}
|-
|-
! License
! {{!}} Source
| {{license | {{#switch:{{{type|}}} | 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]] | artwork=[[Category:Artwork]] | boxart=[[Category:Box artwork]] | texture=[[Category:Textures]] | audio=[[Category:Audio]] | video=[[Category:Video]] | logo=[[Category:Logos]] | map=[[Category:Maps]] | icon=[[Category:Icons]]| sprite=[[Category:Sprites]] | user=[[Category:User images]] | wiki=[[Category:StrategyWiki images]]}}
|user=Media created by [[User:{{{user|}}}|{{{user|}}}]]
}}{{#switch:{{{type|}}} | map | user | wiki | icon = {{#if:{{{license|}}}||[[Category:Files with no license]]}} }}</includeonly><noinclude>
|fandom=FANDOM image [[Category:FANDOM sourced images]]
|youtube=YouTube image [[Category:YouTube sourced images]]
|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==
{| {{prettytable}}
{| {{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.
* 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.
* sprite: Game sprite
* sprite: Game sprite.
|-
* user: User's personal profile image.
! game
* wiki: Images for inclusion on pages, that do not better fit another type.
| No || Game ||  || ((to be filled))
|-
|-
! source
! 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, 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 {{t|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}}.
|-
|}
|}


Line 57: Line 59:
|summary  =  
|summary  =  
|type    =  
|type    =  
|game    =
|source  =  
|source  =  
|license  =  
|license  =  

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  = 
}}