Template:File info: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 87: Line 87:
{{#ifeq:{{{media|}}}|nonhalo|
{{#ifeq:{{{media|}}}|nonhalo|
|{{#if:{{{game|}}}|{{#switch:{{{type}}}
|{{#if:{{{game|}}}|{{#switch:{{{type}}}
|screenshot={{#ifexist:Category:{{{game}}} screenshots|[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
{{#ifexist:Category:{{{subject}}} screenshots|[[Category:{{{subject}}} screenshots]]}}
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
|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]]}}
|medal={{#ifexist:Category:{{{game}}} multiplayer medal images|
|medal={{#ifexist:Category:{{{game}}} multiplayer medal images|
[[Category:{{{game}}} multiplayer medal images]]|[[Category:Multiplayer medal images]]}}
[[Category:{{{game}}} multiplayer medal images]]|[[Category:Multiplayer medal images]]}}
|rank={{#ifexist:Category:{{{game}}} rank insignia|[[Category:{{{game}}} rank insignia]]|[[Category:Rank insignia]]}}
|rank={{#ifexist:Category:{{{game}}} rank insignia|
|menuicon={{#ifexist:Category:{{{game}}} menu icons|[[Category:{{{game}}} menu icons]]|[[Category:Menu icons]]}}
[[Category:{{{game}}} rank insignia]]|[[Category:Rank insignia]]}}
|menuicon={{#ifexist:Category:{{{game}}} menu icons|
[[Category:{{{game}}} menu icons]]|[[Category:Menu icons]]}}
|concept={{#ifexist:Category:{{{subgame|{{{game}}}}}} concept art|
|concept={{#ifexist:Category:{{{subgame|{{{game}}}}}} concept art|
[[Category:{{{subgame|{{{game}}}}}} concept art]]|[[Category:Game concept art]]}}
[[Category:{{{subgame|{{{game}}}}}} concept art]]|[[Category:Game concept art]]}}
|storyboard={{#ifexist:Category:{{{subgame|{{{game}}}}}} storyboards|
|storyboard={{#ifexist:Category:{{{subgame|{{{game}}}}}} storyboards|
[[Category:{{{subgame|{{{game}}}}}} storyboards]]|[[Category:Storyboards]]}}
[[Category:{{{subgame|{{{game}}}}}} storyboards]]|[[Category:Storyboards]]}}
|document={{#ifexist:Category:{{{game}}} documents|[[Category:{{{game}}} documents]]|[[Category:Game documents]]}}
|document={{#ifexist:Category:{{{game}}} documents|
[[Category:{{{game}}} documents]]|[[Category:Game documents]]}}
|designdoc={{#ifexist:Category:{{{game}}} design documentation|
|designdoc={{#ifexist:Category:{{{game}}} design documentation|
[[Category:{{{game}}} design documentation]]|[[Category:Design documentation]]}}
[[Category:{{{game}}} design documentation]]|[[Category:Design documentation]]}}
|audio={{#ifexist:Category:{{{game}}} audio files|[[Category:{{{game}}} audio files]]|[[Category:Game audio files]]}}
|audio={{#ifexist:Category:{{{game}}} audio files|
|#default={{#ifexist:Category:{{{game}}} images|[[Category:{{{game}}} images]]|[[Category:Game images]]}}}}
[[Category:{{{game}}} audio files]]|[[Category:Game audio files]]}}
|#default={{#ifexist:Category:{{{game}}} images|
[[Category:{{{game}}} images]]|[[Category:Game images]]}}}}
|{{#if:{{{film|}}}|{{#switch:{{{type}}}
|{{#if:{{{film|}}}|{{#switch:{{{type}}}
|screenshot={{#ifexist:Category:{{{film}}} screenshots|[[Category:{{{film}}} screenshots]]|[[Category:Film screenshots]]}}
|screenshot={{#ifexist:Category:{{{film}}} screenshots|[[Category:{{{film}}} screenshots]]|[[Category:Film screenshots]]}}
Line 121: Line 126:
}}}}}}}}
}}}}}}}}
}}
}}
{{#ifeq:{{{type|}}}|screenshot|{{#ifexist:Category:{{{subject}}} screenshots|[[Category:{{{subject}}} screenshots]]}}}}


{{#switch:{{{media|}}}
{{#switch:{{{media|}}}
Line 224: Line 231:
|-
|-
! subject
! subject
| Subject || Subject of the image for optional screenshot categorization: character, weapon, vehicle, multiplayer, menu.
| Subject || Subject of the image for optional screenshot categorization: character, weapon, vehicle, menu, multiplayer.
|-
|-
! artist
! artist

Revision as of 01:53, March 29, 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, 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 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.