Template:File info: Difference between revisions

No edit summary
No edit summary
Line 6: Line 6:
|-
|-
{{#ifeq:{{{type|other}}}|other|| !Type
{{#ifeq:{{{type|other}}}|other|| !Type
{{!}} {{#switch:{{{type}}} | screenshot=Screenshot {{#if:{{{subject|}}}|of {{{subject}}}}} | terminal=Terminal 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>}} }}
{{!}} {{#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 46: Line 46:
|#default={{#if:{{{game|}}}{{{film|}}}||[[Category:Screenshots]]}}}}
|#default={{#if:{{{game|}}}{{{film|}}}||[[Category:Screenshots]]}}}}
|terminal={{#if:{{{game|}}}||[[Category:Terminal images]]}}
|terminal={{#if:{{{game|}}}||[[Category:Terminal images]]}}
|manual={{#if:{{{game|}}}||[[Category:Manual images]]}}
|sprite={{#switch:{{{media}}}
|sprite={{#switch:{{{media}}}
|nonmarathon=[[Category:Non-Marathon sprites]]
|nonmarathon=[[Category:Non-Marathon sprites]]
Line 95: Line 96:
|terminal={{#ifexist:Category:{{{game}}} terminal images|
|terminal={{#ifexist:Category:{{{game}}} terminal images|
[[Category:{{{game}}} terminal images]]|[[Category: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|
|sprite={{#ifexist:Category:{{{game}}} sprites|
[[Category:{{{game}}} sprites]]|[[Category:Game sprites]]}}
[[Category:{{{game}}} sprites]]|[[Category:Game sprites]]}}
Line 214: Line 217:
*screenshot: Screenshot
*screenshot: Screenshot
*terminal: Terminal image
*terminal: Terminal image
*manual: Manual image
*sprite: Game sprite
*sprite: Game sprite
*icon: Icon image
*artwork: General artwork
*artwork: General artwork
**concept: Concept art
**concept: Concept art
Line 225: Line 228:
*render: Render
*render: Render
*logo: Logo
*logo: Logo
*page: Comic scene or book page
*page: Page scan
*audio: Audio file
*document: PDF document
*document: PDF document
*audio: Audio file
*real: Real-world image
*real: Real-world image
*user: Personal user image
*user: Personal user image

Revision as of 15:15, August 25, 2023

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
  • 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
  • page: Page scan
  • 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.