Template:File info: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
mNo edit summary
 
(12 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=[[Halopedia:Personal image policy|Personal user image]] | wiki=Halopedia 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}}}}} | 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=[[Halopedia:Personal image policy|Personal user image]] | wiki=Halopedia 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 37: Line 37:
|-
|-
!License
!License
| {{license | {{#if:{{{license|}}}|{{{license}}}|fairuse}} | nocat={{{nocat|<noinclude>y</noinclude>}}} }}
| {{license | {{#if:{{{license|}}}|{{{license}}}|fairuse}} | nocat={{{nocat|}}} }}
|}{{#if:{{{nocat|}}}||
|}{{#if:{{{nocat|}}}||


Line 61: Line 61:
|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]]
|nonhalo=[[Category:Non-Halo renders]]
|#default={{#if:{{{game|}}}{{{film|}}}{{{book|}}}||[[Category:Renders]]}}}}
|logo=[[Category:Logos]]
|logo=[[Category:Logos]]
|asset=[[Category:Raw assets]]
|asset=[[Category:Raw assets]]
Line 89: Line 92:
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
{{#if:{{{subgame|}}}|{{#ifexist:Category:{{{subgame}}} screenshots|[[Category:{{{subgame}}} 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]]}}
Line 101: Line 105:
|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 119:
|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 129:
|#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 132: Line 140:
-->{{#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 150:
|#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]]}}
|nonhalo={{#switch:{{{type|}}}
|nonhalo={{#switch:{{{type|}}}
|screenshot|audio|document=
|audio|document|screenshot|render=
|#default=[[Category:Non-Halo images]]}}
|#default=[[Category:Non-Halo images]]}}
}}<!--
}}<!--
Line 171: Line 179:
-->{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|[[Category:Images by {{#var:value}}]]}}}}}}<!--
-->{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|[[Category:Images by {{#var:value}}]]}}}}}}<!--


-->{{#if:{{{summary|}}}|{{#seo:description={{{summary}}}}}|[[Category:Images needing a summary]]}}
-->{{#if:{{{summary|}}}|{{#seo:description={{{summary}}}}}|[[Category:Files needing a summary]]}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
==Info==
==Info==
Line 181: Line 189:
|-
|-
! summary
! 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 [[:Category:Images needing a summary|images needing a summary]] category.
| 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 [[:Category:Files needing a summary|files needing a summary]] category.
|-
|-
! game
! game
Line 223: Line 231:
*asset: Raw asset
*asset: Raw asset
*page: Comic scene or book page
*page: Comic scene or book page
*document: Document
*designdoc: Design documentation
**designdoc: Design documentation
*document: PDF document
*audio: Audio file
*audio: Audio file
*real: Real-world image
*real: Real-world image
Line 252: Line 260:
|}
|}


[[Category:File notices]]
[[Category:File templates]]
[[Category:Documentation templates]]</noinclude>
[[Category:Documentation templates]]</noinclude>

Latest revision as of 20: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 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 scene or book page
  • designdoc: Design documentation
  • document: PDF document
  • 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(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.