Template:File info: Difference between revisions

From Halopedia, the Halo wiki

m (Reverted edits by Dab1001 (talk) to last revision by Porplemontage)
Tag: Rollback
No edit summary
Line 24: Line 24:
|-
|-
{{#if:{{{artist|}}} | !id="fileinfotpl_aut"{{!}}Artist{{#if:{{#forargs:artist|key|value|{{#if:{{#var:key}}|{{#var:value}}}}}}|s}}
{{#if:{{{artist|}}} | !id="fileinfotpl_aut"{{!}}Artist{{#if:{{#forargs:artist|key|value|{{#if:{{#var:key}}|{{#var:value}}}}}}|s}}
{{!}} {{#ifeq:{{{artist}}}|self|File created by the uploader|{{{artist}}}}}{{#forargs:artist|key|value|{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|, {{#var:value}}}}}} }}
{{!}} {{#ifeq:{{{artist}}}|self|File created by the uploader|{{#ifeq:{{NAMESPACE:{{{artist}}}}}|User|[[{{{artist}}}]]|{{{artist}}}}}}}{{#forargs:artist|key|value|{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|, {{#var:value}}}}}} }}
|-
|-
{{#ifeq:{{{artist|}}}|{{{source|}}}||
{{#ifeq:{{{artist|}}}|{{{source|}}}||
Line 40: Line 40:
|}{{#if:{{{nocat|}}}||
|}{{#if:{{{nocat|}}}||
{{#switch:{{{type}}} | screenshot={{#if:{{{game|}}}|{{#ifeq:{{{media|}}}|nonhalo|[[Category:Screenshots]]|[[Category:{{{game}}} screenshots]]}}|{{#if:{{{film|}}}|[[Category:Film screenshots]]|{{#ifeq:{{{media|}}}|website|[[Category:Website screenshots]]|[[Category:Screenshots]]}}}}}} | skull={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use images]]}}[[Category:Images of skulls]] | artwork={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use art]]}} | concept={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use art]]}}{{#if:{{{film|}}}|[[Category:{{{film}}} concept art]]}}{{#if:{{{comic|}}}|[[Category:{{{comic}}} concept art]]}} | cover={{#if:{{{game|}}}|[[Category:Game covers]]}}{{#if:{{{film|}}}|[[Category:Film covers]]}}{{#if:{{{comic|{{{book|}}}}}}|[[Category:Book covers]]}}{{#ifeq:{{{media|}}}|album|[[Category:Album covers]]}}[[Category:Cover art]] | character=[[Category:Character artwork]] | storyboard={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use art]]}} | wallpaper=[[Category:Wallpaper]] | render={{#if:{{{game|}}}|[[Category:Game renders]]|{{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use images]]}}}} | logo=[[Category:Logos]] | page={{#if:{{{comic|}}}|[[Category:Comic images]]}} | audio={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use audio samples]]}} | real=[[Category:Real-world images]] | user=[[Category:Personal images]] | wiki=[[Category:Halopedia images]] | #default={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use images]]}}}}{{#ifeq:{{{media|}}}|nonhalo||{{#if:{{{game|}}}|{{#switch:{{{type}}}|screenshot={{#switch:{{{subject|character}}}|character=[[Category:Screenshots]]|#default=[[Category:{{{subject}}} screenshots]]}}|menuicon=[[Category:{{{game}}} menu icons]]|achievement=[[Category:{{{game}}} achievement images]]|medal=[[Category:{{{game}}} multiplayer medal images]]|rank=[[Category:{{{game}}} rank insignia]]|concept=[[Category:{{#if:{{{subgame|}}}|{{{subgame}}}|{{{game}}}}} concept art]]|storyboard=[[Category:{{#if:{{{subgame|}}}|{{{subgame}}}|{{{game}}}}} storyboards]]|document=[[Category:{{{game}}} documents]]|designdocument=[[Category:{{{game}}} design documentation]]|audio=[[Category:{{{game}}} audio files]]|#default=[[Category:{{{game}}} images]]}}}}}}{{#ifeq:{{{media|}}}|marketing|{{#switch:{{{type|}}}|screenshot=|render=|logo=|asset=|page=|document=|designdocument=|audio=|real=[[Category:Promotional photos]]|user=|wiki=|#default=[[Category:Promotional images]]}}}}{{#ifeq:{{{source|}}}|unknown|[[Category:Images with unknown source]]}}
{{#switch:{{{type}}} | screenshot={{#if:{{{game|}}}|{{#ifeq:{{{media|}}}|nonhalo|[[Category:Screenshots]]|[[Category:{{{game}}} screenshots]]}}|{{#if:{{{film|}}}|[[Category:Film screenshots]]|{{#ifeq:{{{media|}}}|website|[[Category:Website screenshots]]|[[Category:Screenshots]]}}}}}} | skull={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use images]]}}[[Category:Images of skulls]] | artwork={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use art]]}} | concept={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use art]]}}{{#if:{{{film|}}}|[[Category:{{{film}}} concept art]]}}{{#if:{{{comic|}}}|[[Category:{{{comic}}} concept art]]}} | cover={{#if:{{{game|}}}|[[Category:Game covers]]}}{{#if:{{{film|}}}|[[Category:Film covers]]}}{{#if:{{{comic|{{{book|}}}}}}|[[Category:Book covers]]}}{{#ifeq:{{{media|}}}|album|[[Category:Album covers]]}}[[Category:Cover art]] | character=[[Category:Character artwork]] | storyboard={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use art]]}} | wallpaper=[[Category:Wallpaper]] | render={{#if:{{{game|}}}|[[Category:Game renders]]|{{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use images]]}}}} | logo=[[Category:Logos]] | page={{#if:{{{comic|}}}|[[Category:Comic images]]}} | audio={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use audio samples]]}} | real=[[Category:Real-world images]] | user=[[Category:Personal images]] | wiki=[[Category:Halopedia images]] | #default={{#ifeq:{{{license|fairuse}}}|fairuse|[[Category:Fair use images]]}}}}{{#ifeq:{{{media|}}}|nonhalo||{{#if:{{{game|}}}|{{#switch:{{{type}}}|screenshot={{#switch:{{{subject|character}}}|character=[[Category:Screenshots]]|#default=[[Category:{{{subject}}} screenshots]]}}|menuicon=[[Category:{{{game}}} menu icons]]|achievement=[[Category:{{{game}}} achievement images]]|medal=[[Category:{{{game}}} multiplayer medal images]]|rank=[[Category:{{{game}}} rank insignia]]|concept=[[Category:{{#if:{{{subgame|}}}|{{{subgame}}}|{{{game}}}}} concept art]]|storyboard=[[Category:{{#if:{{{subgame|}}}|{{{subgame}}}|{{{game}}}}} storyboards]]|document=[[Category:{{{game}}} documents]]|designdocument=[[Category:{{{game}}} design documentation]]|audio=[[Category:{{{game}}} audio files]]|#default=[[Category:{{{game}}} images]]}}}}}}{{#ifeq:{{{media|}}}|marketing|{{#switch:{{{type|}}}|screenshot=|render=|logo=|asset=|page=|document=|designdocument=|audio=|real=[[Category:Promotional photos]]|user=|wiki=|#default=[[Category:Promotional images]]}}}}{{#ifeq:{{{source|}}}|unknown|[[Category:Images with unknown source]]}}
}}{{#if:{{{summary|}}}|{{#seo:description={{{summary}}}}}|[[Category:Images needing a summary]]}} {{#if:{{{nocat|}}}||{{#if:{{{artist|}}}|{{#ifeq:{{{artist|}}}|self||[[Category:Images by {{{artist}}}]]}}}} {{#forargs:artist|key|value|{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|[[Category:Images by {{#var:value}}]]}}}}}}</includeonly><noinclude>
}}{{#if:{{{summary|}}}|{{#seo:description={{{summary}}}}}|[[Category:Images needing a summary]]}} {{#if:{{{nocat|}}}||{{#if:{{{artist|}}}|{{#ifeq:{{{artist|}}}|self||{{#ifeq:{{NAMESPACE:{{{artist}}}}}|User||[[Category:Images by {{{artist}}}]]}}}}}} {{#forargs:artist|key|value|{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|[[Category:Images by {{#var:value}}]]}}}}}}</includeonly><noinclude>
==Info==
==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.
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.
Line 99: Line 99:
|-
|-
! artist
! artist
| Artist(s) || The name of the artist who created the work, if known. Parameters '''artist2''', '''artist3''', '''artist4'''... may be added for additional artists.
| 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
! source

Revision as of 09:43, March 3, 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 Default 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 game this file is about (if applicable).
subgame Sub-game If the main game is a compilation, the title of the original game.
film Film/series The film or series this file is about (if applicable).
comic Comic The comic series or graphic novel this file is about (if applicable).
book Book The 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.
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
    • menuicon: Menu icon
    • achievement: Achievement image
    • medal: Multiplayer medal image
    • skull: Skull image
    • rank: Rank image
  • artwork: General artwork
    • concept: Concept art
    • cover: Cover art
    • character: Character art
    • storyboard: Storyboard image
    • wallpaper: Wallpaper image
  • render: Render
  • logo: Logo
  • asset: Misc asset
  • page: Comic panel or book page
  • document: Document
    • designdocument: 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.