Template:File info: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 65: Line 65:
|asset=[[Category:Raw assets]]
|asset=[[Category:Raw assets]]
|page=[[Category:Page scans]]
|page=[[Category:Page scans]]
|document={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}{{{book|}}}||[[Category:Documents]]}}
|document={{#switch:{{{media}}}
|album=[[Category:Album documents]]
|merch=[[Category:Merchandise documents]]
|marketing=[[Category:Marketing documents]]
|website=[[Category:Website documents]]
|nonhalo=[[Category:Non-Halo documents]]
|#default={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}{{{book|}}}||[[Category:Documents]]}}}}
|designdoc={{#if:{{{game|}}}||[[Category:Design documentation]]}}
|designdoc={{#if:{{{game|}}}||[[Category:Design documentation]]}}
|audio={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}{{{book|}}}||[[Category:Audio files]]}}
|audio={{#switch:{{{media}}}
|album=[[Category:Album audio files]]
|merch=[[Category:Merchandise audio files]]
|marketing=[[Category:Marketing audio files]]
|website=[[Category:Website audio files]]
|nonhalo=[[Category:Non-Halo audio files]]
|#default={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}{{{book|}}}||[[Category:Audio files]]}}}}
|real=[[Category:Real-world images]]
|real=[[Category:Real-world images]]
|user=[[Category:Personal images]]
|user=[[Category:Personal images]]
Line 110: Line 122:
}}
}}


{{#ifeq:{{{media|}}}|merch|{{#switch:{{{type|}}}
{{#switch:{{{media|}}}
|audio=[[Category:Merchandise audio files]]
|album={{#switch:{{{type|}}}
|document=[[Category:Merchandise documents]]
|cover|audio|document=
|#default=[[Category:Merchandise images]]}}
|#default=[[Category:Album images]]}}
}}
|merch={{#switch:{{{type|}}}
 
|audio|document=
{{#ifeq:{{{media|}}}|marketing|{{#switch:{{{type|}}}
|#default=[[Category:Merchandise images]]}}
|audio=[[Category:Marketing audio files]]
|marketing={{#switch:{{{type|}}}
|document=[[Category:Marketing documents]]
|audio|document=
|real=[[Category:Promotional photos]]
|real=[[Category:Promotional photos]]
|#default=[[Category:Marketing images]]}}
|#default=[[Category:Marketing images]]}}
|website={{#switch:{{{type|}}}
|screenshot|audio|document=
|#default=[[Category:Website images]]}}
|nonhalo={{#switch:{{{type|}}}
|screenshot|audio|document=
|#default=[[Category:Non-Halo images]]}}
}}
}}


{{#ifeq:{{{license|fairuse}}}|fairuse|
{{#ifeq:{{{license|fairuse}}}|fairuse|
{{#switch:{{{type}}}
{{#switch:{{{type}}}
|user|wiki=[[Category:Fair use images]]
|user|wiki=[[Category:Fair use images]]
|audio=[[Category:Fair use audio files]]
|audio=[[Category:Fair use audio files]]
|document=[[Category:Fair use documents]]
|document=[[Category:Fair use documents]]
|#default=}}
|#default=
}}
}}
}}



Revision as of 12:42, March 22, 2022

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 images needing a summary category.
game Game The Halo game this file is about (if applicable).
subgame Sub-game If the main Halo game is a compilation, the title of the original game.
film Film/series The Halo film or series this file is about (if applicable).
comic Comic The Halo comic series or graphic novel this file is about (if applicable).
book Book The Halo book this file is about (if applicable).
media Media type The type of media the file is from if it's not from a Halo game, film, comic, or book: album, merch, marketing, website, nonhalo. If none of these apply, don't include the parameter.
title Media title The title of the media if it is non-Halo. Used instead of game, film, comic, etc. for non-Halo 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
  • 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: Comic panel or book page
  • document: Document
    • designdoc: Design documentation
  • audio: Audio file
  • real: Real-world image
  • user: Personal user image
  • wiki: Halopedia site image
subject Subject Subject of the image for optional screenshot categorization: character, weapon, vehicle, multiplayer, menu.
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 The original filename before it was uploaded to the wiki (if applicable).
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.