Welcome to Wars Wiki!
Welcome, new users! For help on where to start, look at our getting started page and our manual of style. Need more help? Ask a staff member!

Template:File: Difference between revisions

From Wars Wiki
Jump to navigationJump to search
(add Photos category)
No edit summary
Tag: Manual revert
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| {{File Table}}
{| class="wikitable" style="width:100%"
! colspan="2" | File information
! colspan="2" | File information
|-
{{#if:{{{game|}}}|
{{#if:{{{game|}}}| ! Game
{{!}}-
{{!}} [[{{{game|}}}]][[Category:{{{game|}}} images]]}}
! Game
{{!}} ''[[{{{game|}}}]]''[[Category:{{{game|}}} images]]}}
|-
|-
! Summary
! Summary
Line 9: Line 10:
|-
|-
! Type
! Type
| {{#switch:{{{type|}}}
| <includeonly>{{File type|{{{type|}}}|{{{user|}}}|primary=1}}</includeonly>
|audio=Audio [[Category:Media]]
|-
|video=Video [[Category:Media]]
{{#if:{{{type2|}}}|! Type 2
|photo=Photograph [[Category:Photos]]
{{!}} {{File type|{{{type2|}}}|{{{user|}}}}}
|sprite=Sprite [[Category:Sprites]]
|screenshot=Screenshot [[Category:Screenshots]]
|map=Map [[Category:Maps]]
|artwork=Artwork [[Category:Artwork]]
|boxart=Box artwork [[Category:Box artwork]]
|logo=Logo [[Category:Logos]]
|user=User image [[Category:User images]]
|wiki=StrategyWiki image [[Category:Wiki images]]
|rating=Rating icon [[Category:Rating icons]]
|#default=<includeonly>[[Category:Files without type specified]]</includeonly>
}}
}}
|-
|-
! Source
! {{!}} Source
| {{#ifeq:{{{source|}}}|self|Image created by the uploader|{{{source|}}}}}
| <includeonly>{{#switch:{{lc:{{{source|}}}}}
|self=Media created by the uploader
|user=Media created by [[User:{{{user|}}}|{{{user|}}}]]
|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>
|-
|-
! License
! License
| <includeonly>{{license|{{{license|fairuse [[Category:Media with no license specified]]}}}}}</includeonly>
| <includeonly>{{license|{{{license|fairuse [[Category:Media with no license specified]]}}}}}</includeonly>
|-
{{#if:{{{user|}}}
|! User
{{!}} [[User:{{{user|}}}|{{{user|}}}]] }}
|}<noinclude>
|}<noinclude>


Line 36: Line 38:


==Parameters==
==Parameters==
{| {{File Table}}
{| class="wikitable" style="width:100%"
! Parameter || Mandatory || Purpose || Default || Detailed description
! Parameter || Mandatory || Purpose || Default || Detailed description
|-
|-
! game
! game
| No || Game ||  || Game for which the file was uploaded. This will be used to categorize images by game. If the file is for the series, enter <tt>series</tt>
| No || Game ||  || Game for which the file was uploaded. This will be used to categorize images by game. This section is case-sensitive. If the file is for the series, enter <tt>series</tt>
|-
|-
! summary
! summary
Line 46: Line 48:
|-
|-
! type
! type
| '''Yes''' || Content type ||  || What type of content this is. Can be one of the following:
| '''Yes''' || Content type ||  || What type of content this is. This section is case-sensitive. Can be one of the following:
* screenshot: Media screenshot.
*audio: File is audio only.
* boxart: Box art.
*video: File is a video, either with or without sound.
* texture: Game texture.
*photo: File is a real world object or concept.
* audio: Game audio.
*sprite: File is of a sprite, texture, or general pixel-based imaging.  
* video: Game video.
*screenshot: File is a screen capture of the game.
* logo: Logo.
*map: File is a map of a location. This can include in-game or user generated, though in-game is preferred.
* map: Map, either in-game or fan-made.
*model: File is a 3D rendered model.
* icon: Icon.
*artwork: File contains artwork.
* sprite: Game sprite
*boxart: File is of a game's physical box art, or cover art digitally used to represent the game.
* user: User's personal image
*logo: File contains a logo, usually for a game series or company.
* wiki: Wars Wiki image
*user: User image. Wiki users may have up to five (5) personal files.
*wiki: File is dedicated for use on Wiki policy or help pages, or otherwise for the Wiki's benefit.
*rating: File is of an age rating, such as the ESRB or CERO.
|-
|-
! 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.
| Yes || File source ||  || If this file was created by the user, type "self". If it was uploaded on behalf of another user, use "user" and the parameter below. If it was obtained off a website, type its URL here.
|-
|-
! license
! 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 [[Template: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 [[Template:License]].
|-
! user
| No || User || || This optional parameter is used for when the file type is user, or when using user for source. It automatically creates a link to the user named in the parameter.
|}
|}


Line 76: Line 83:
}}
}}
</pre>
</pre>
[[Category:Licensing]]</noinclude>
 
[[Category:Meta-templates]]</noinclude>

Latest revision as of 21:13, 8 July 2023

File information
Summary
Type
Source
License

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
game No Game Game for which the file was uploaded. This will be used to categorize images by game. This section is case-sensitive. If the file is for the series, enter series
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. This section is case-sensitive. Can be one of the following:
  • audio: File is audio only.
  • video: File is a video, either with or without sound.
  • photo: File is a real world object or concept.
  • sprite: File is of a sprite, texture, or general pixel-based imaging.
  • screenshot: File is a screen capture of the game.
  • map: File is a map of a location. This can include in-game or user generated, though in-game is preferred.
  • model: File is a 3D rendered model.
  • artwork: File contains artwork.
  • boxart: File is of a game's physical box art, or cover art digitally used to represent the game.
  • logo: File contains a logo, usually for a game series or company.
  • user: User image. Wiki users may have up to five (5) personal files.
  • wiki: File is dedicated for use on Wiki policy or help pages, or otherwise for the Wiki's benefit.
  • rating: File is of an age rating, such as the ESRB or CERO.
source Yes File source If this file was created by the user, type "self". If it was uploaded on behalf of another user, use "user" and the parameter below. 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 Template:License.
user No User This optional parameter is used for when the file type is user, or when using user for source. It automatically creates a link to the user named in the parameter.

Skeleton[edit source]

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