Template:File info: Difference between revisions

No edit summary
mNo edit summary
 
(23 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|-
|-
{{#ifeq:{{{type|other}}}|other|| !Type
{{#ifeq:{{{type|other}}}|other|| !Type
{{!}} {{#switch:{{{type}}} | screenshot=Screenshot {{#if:{{{subject|}}}|of {{{subject}}}}} | icon=Icon image | achievement=Achievement image | medal=Multiplayer medal image | rank=Rank insignia | skull=Skull icon | menuicon=Menu icon | artwork=General artwork | concept=Concept art | cover=Cover art | character=Character art | storyboard=Storyboard image | wallpaper=Wallpaper image | render=Render | logo=Logo | asset=Raw asset | page={{#if:{{{comic|}}}|Comic scene|Book page}} | document=Document | designdoc=Design documentation | audio=Audio file | real=Real-world image | user=Personal user image | wiki={{SITENAME}} site image | #default=<span style="color:red">'''Error:''' Please remove the <code>type</code> parameter or enter a valid type from [[Template:File info#Parameters|the list]].</span>}} }}
{{!}} {{#switch:{{{type}}} | screenshot=Screenshot {{#if:{{{subject|}}}|of {{{subject}}}}} | terminal=Terminal image | manual=Manual image | sprite=Sprite {{#if:{{{subject|}}}|of {{{subject}}} {{#ifeq:{{{subject}}}|menu|object}}|image}} | icon=Icon image | achievement=Achievement image | medal=Multiplayer medal image | rank=Rank insignia | skull=Skull icon | menuicon=Menu icon | artwork=General artwork | concept=Concept art | cover=Cover art | character=Character art | storyboard=Storyboard image | wallpaper=Wallpaper image | render=Render | logo=Logo | asset=Raw asset | page={{#if:{{{comic|}}}|Comic scene|Book page}} | designdoc=Design documentation | document=PDF document | audio=Audio file | real=Real-world image | user=Personal user image | wiki={{SITENAME}} site image | #default=<span style="color:red">'''Error:''' Please remove the <code>type</code> parameter or enter a valid type from [[Template:File info#Parameters|the list]].</span>}} }}
|-
|-
{{#if:{{{game|}}} | !Game
{{#if:{{{game|}}} | !Game
Line 45: Line 45:
|website=[[Category:Website screenshots]]
|website=[[Category:Website screenshots]]
|#default={{#if:{{{game|}}}{{{film|}}}||[[Category:Screenshots]]}}}}
|#default={{#if:{{{game|}}}{{{film|}}}||[[Category:Screenshots]]}}}}
|terminal={{#if:{{{game|}}}||[[Category:Terminal images]]}}
|manual={{#if:{{{game|}}}||[[Category:Manual images]]}}
|sprite={{#switch:{{{media}}}
|nonmarathon=[[Category:Non-Marathon sprites]]
|#default={{#if:{{{game|}}}||[[Category:Sprites]]}}}}
|icon=[[Category:Icons]]
|icon=[[Category:Icons]]
|achievement={{#if:{{{game|}}}||[[Category:Achievement images]]}}
|achievement={{#if:{{{game|}}}||[[Category:Achievement images]]}}
Line 61: Line 66:
|storyboard={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}||[[Category:Storyboards]]}}
|storyboard={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}||[[Category:Storyboards]]}}
|wallpaper=[[Category:Wallpaper]]
|wallpaper=[[Category:Wallpaper]]
|render={{#if:{{{game|}}}|[[Category:Game renders]]|[[Category:Renders]]}}
|render={{#switch:{{{media}}}
|merch=[[Category:Merchandise renders]]
|nonmarathon=[[Category:Non-Marathon renders]]
|#default={{#if:{{{game|}}}{{{film|}}}{{{book|}}}||[[Category:Renders]]}}}}
|logo=[[Category:Logos]]
|logo=[[Category:Logos]]
|asset=[[Category:Raw assets]]
|asset=[[Category:Raw assets]]
Line 82: Line 90:
|real=[[Category:Real-world images]]
|real=[[Category:Real-world images]]
|user=[[Category:Personal images]]
|user=[[Category:Personal images]]
|wiki=[[Category:Project images]]
|wiki=[[Category:Wiki images]]
}}<!--
}}<!--


Line 89: Line 97:
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
|terminal={{#ifexist:Category:{{{game}}} terminal images|
[[Category:{{{game}}} terminal images]]|[[Category:Terminal images]]}}
|manual={{#ifexist:Category:{{{game}}} manual images|
[[Category:{{{game}}} manual images]]|[[Category:Manual images]]}}
|sprite={{#ifexist:Category:{{{game}}} sprites|
[[Category:{{{game}}} sprites]]|[[Category:Game sprites]]}}
|achievement={{#ifexist:Category:{{{game}}} achievement images|
|achievement={{#ifexist:Category:{{{game}}} achievement images|
[[Category:{{{game}}} achievement images]]|[[Category:Achievement images]]}}
[[Category:{{{game}}} achievement images]]|[[Category:Achievement images]]}}
Line 101: Line 115:
|storyboard={{#ifexist:Category:{{{subgame|{{{game}}}}}} storyboards|
|storyboard={{#ifexist:Category:{{{subgame|{{{game}}}}}} storyboards|
[[Category:{{{subgame|{{{game}}}}}} storyboards]]|[[Category:Game storyboards]]}}
[[Category:{{{subgame|{{{game}}}}}} storyboards]]|[[Category:Game storyboards]]}}
|render={{#ifexist:Category:{{{subgame|{{{game}}}}}} renders|
[[Category:{{{subgame|{{{game}}}}}} renders]]|[[Category:Game renders]]}}
|document={{#ifexist:Category:{{{game}}} documents|
|document={{#ifexist:Category:{{{game}}} documents|
[[Category:{{{game}}} documents]]|[[Category:Game documents]]}}
[[Category:{{{game}}} documents]]|[[Category:Game documents]]}}
Line 113: Line 129:
|concept={{#ifexist:Category:{{{film}}} concept art|[[Category:{{{film}}} concept art]]|[[Category:Film concept art]]}}
|concept={{#ifexist:Category:{{{film}}} concept art|[[Category:{{{film}}} concept art]]|[[Category:Film concept art]]}}
|storyboard={{#ifexist:Category:{{{film}}} storyboards|[[Category:{{{film}}} storyboards]]|[[Category:Film storyboards]]}}
|storyboard={{#ifexist:Category:{{{film}}} storyboards|[[Category:{{{film}}} storyboards]]|[[Category:Film storyboards]]}}
|render={{#ifexist:Category:{{{film}}} renders|[[Category:{{{film}}} renders]]|[[Category:Film renders]]}}
|document={{#ifexist:Category:{{{film}}} documents|[[Category:{{{film}}} documents]]|[[Category:Film documents]]}}
|document={{#ifexist:Category:{{{film}}} documents|[[Category:{{{film}}} documents]]|[[Category:Film documents]]}}
|audio={{#ifexist:Category:{{{film}}} audio files|[[Category:{{{film}}} audio files]]|[[Category:Film audio files]]}}
|audio={{#ifexist:Category:{{{film}}} audio files|[[Category:{{{film}}} audio files]]|[[Category:Film audio files]]}}
Line 122: Line 139:
|#default={{#ifexist:Category:{{{comic}}} images|[[Category:{{{comic}}} images]]|[[Category:Comic images]]}}}}
|#default={{#ifexist:Category:{{{comic}}} images|[[Category:{{{comic}}} images]]|[[Category:Comic images]]}}}}
|{{#if:{{{book|}}}|{{#switch:{{{type}}}
|{{#if:{{{book|}}}|{{#switch:{{{type}}}
|render={{#ifexist:Category:{{{book}}} renders|[[Category:{{{book}}} renders]]|[[Category:Book renders]]}}
|document={{#ifexist:Category:{{{book}}} documents|[[Category:{{{book}}} documents]]|[[Category:Book documents]]}}
|document={{#ifexist:Category:{{{book}}} documents|[[Category:{{{book}}} documents]]|[[Category:Book documents]]}}
|audio={{#ifexist:Category:{{{book}}} audio files|[[Category:{{{book}}} audio files]]|[[Category:Book audio files]]}}
|audio={{#ifexist:Category:{{{book}}} audio files|[[Category:{{{book}}} audio files]]|[[Category:Book audio files]]}}
Line 129: Line 147:


-->{{#ifeq:{{{type|}}}|screenshot|{{#ifexist:Category:{{{subject}}} screenshots|[[Category:{{{subject}}} screenshots]]}}}}<!--
-->{{#ifeq:{{{type|}}}|screenshot|{{#ifexist:Category:{{{subject}}} screenshots|[[Category:{{{subject}}} screenshots]]}}}}<!--
-->{{#ifeq:{{{type|}}}|sprite|{{#ifexist:Category:{{{subject}}} sprites|[[Category:{{{subject}}} sprites]]}}}}<!--


-->{{#switch:{{{media|}}}
-->{{#switch:{{{media|}}}
|album={{#switch:{{{type|}}}
|album={{#switch:{{{type|}}}
|cover|audio|document=
|audio|document|cover=
|#default=[[Category:Album images]]}}
|#default=[[Category:Album images]]}}
|merch={{#switch:{{{type|}}}
|merch={{#switch:{{{type|}}}
|audio|document=
|audio|document|render=
|#default=[[Category:Merchandise images]]}}
|#default=[[Category:Merchandise images]]}}
|marketing={{#switch:{{{type|}}}
|marketing={{#switch:{{{type|}}}
Line 142: Line 161:
|#default=[[Category:Marketing images]]}}
|#default=[[Category:Marketing images]]}}
|website={{#switch:{{{type|}}}
|website={{#switch:{{{type|}}}
|screenshot|audio|document=
|audio|document|screenshot=
|#default=[[Category:Website images]]}}
|#default=[[Category:Website images]]}}
|nonmarathon={{#switch:{{{type|}}}
|nonmarathon={{#switch:{{{type|}}}
|screenshot|audio|document=
|audio|document|screenshot|render|sprite=
|#default=[[Category:Non-Marathon images]]}}
|#default=[[Category:Non-Marathon images]]}}
}}<!--
}}<!--
Line 204: Line 223:
| Content type || What type of content this is. This will automatically determine some other things. Can be one of the following:
| Content type || What type of content this is. This will automatically determine some other things. Can be one of the following:
*screenshot: Screenshot
*screenshot: Screenshot
*terminal: Terminal image
*manual: Manual image
*sprite: Game sprite
*icon: Icon image
*icon: Icon image
**achievement: Achievement image
**menuicon: Menu icon
*artwork: General artwork
*artwork: General artwork
**concept: Concept art
**concept: Concept art
Line 212: Line 232:
**character: Character art
**character: Character art
**storyboard: Storyboard image
**storyboard: Storyboard image
**achievement: Achievement image
**wallpaper: Wallpaper image
**wallpaper: Wallpaper image
*render: Render
*render: Render
*logo: Logo
*logo: Logo
*asset: Raw asset
*page: Comic scene or book page
*document: Document
**designdoc: Design documentation
*audio: Audio file
*audio: Audio file
*document: PDF document
*real: Real-world image
*real: Real-world image
*user: Personal user image
*user: Personal user image
Line 225: Line 243:
|-
|-
! subject
! subject
| Subject || Subject of the image for optional screenshot categorization: character, weapon, vehicle, menu, multiplayer.
| Subject || Subject of the image for optional screenshot/sprite categorization: character, weapon, vehicle, menu, multiplayer.
|-
|-
! artist
! artist

Latest revision as of 19:05, August 10, 2024

Info

This template should be used for all files in the "File" namespace. It presents some information about the file, both in terms of content and metadata. It also automatically categorizes the image.

Parameters

Parameter Purpose Detailed description
summary File summary A brief explanation of what the file is and what it is used for. This summary is also used for the file page meta description and default image alt text. Files missing a summary are added to the files needing a summary category.
game Game The Marathon game this file is about (if applicable).
film Film/series The Marathon film or series this file is about (if applicable).
comic Comic The Marathon comic series or graphic novel this file is about (if applicable).
book Book The Marathon book this file is about (if applicable).
media Media type The type of media the file is from if it's not from a Marathon game, film, comic, or book: album, merch, marketing, website, nonmarathon. If none of these apply, don't include the parameter.
title Media title The title of the media if it is non-Marathon. Used instead of game, film, comic, etc. for non-Marathon media.
type Content type What type of content this is. This will automatically determine some other things. Can be one of the following:
  • screenshot: Screenshot
  • terminal: Terminal image
  • manual: Manual image
  • sprite: Game sprite
  • icon: Icon image
  • artwork: General artwork
    • concept: Concept art
    • cover: Cover art
    • character: Character art
    • storyboard: Storyboard image
    • achievement: Achievement image
    • wallpaper: Wallpaper image
  • render: Render
  • logo: Logo
  • audio: Audio file
  • document: PDF document
  • real: Real-world image
  • user: Personal user image
  • wiki: CyberAcme site image
subject Subject Subject of the image for optional screenshot/sprite categorization: character, weapon, vehicle, menu, multiplayer.
artist Artist(s) The name or user page of the artist who created the work, if known. Parameters artist2, artist3, artist4... may be added for additional artists.
source File source If it was obtained from a website, type its URL here. Other options: self, direct, unknown.
filename Original filename(s) The original filename before it was uploaded to the wiki (if applicable). Parameters filename2, filename3, filename4... may be added for additional filenames.
caption Source caption The original caption attributed to the file from its source website (if applicable).
license License This is the same parameter you would feed into {{license}}. Defaults to fair use.
nocat No categorization If this has a value, like "y", then the template will not automatically categorize the file.