Template:File info: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(231 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="wikitable" style="margin: auto; width: 50%;"
<includeonly>{| class="wikitable"
! colspan="2" | Image information
! colspan="2" | File information
|-
|-
! Summary
{{#if:{{{summary|}}} | !id="fileinfotpl_desc"{{!}}Summary
| {{{summary|}}}
{{!}}  {{{summary}}} }}
|-
|-
! Type
{{#ifeq:{{{type|other}}}|other|| !Type
| {{#switch:{{{type|}}} | screenshot=Screenshot | coverart=Cover art | comic=Comic | audio=Audio | concept=Concept art | asset=Asset | document=Document | merch=[[Merchandise]] image | logo=Logo | icon=Icon | map=Map | real=Real-world image | nonhalo=Non-''Halo'' image | user=[[Halopedia:Personal Image Policy|Personal user image]] | wiki=Halopedia site image}}
{{!}} {{#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
{{!}} {{#ifeq:{{{game|}}}|other|Other game| {{#switch:{{{game|}}} | hce=Halo: Combat Evolved | hcea=Halo: Combat Evolved Anniversary | h2=Halo 2 | h2a=Halo 2: Anniversary | h3=Halo 3 | h4=Halo 4 | h5g=Halo 5: Guardians | hi=Halo Infinite | hsa=Halo: Spartan Assault | hss=Halo: Spartan Strike | hw=Halo Wars | hw2=Halo Wars 2 | odst=Halo 3: ODST | reach=Halo: Reach | hfr=Halo: Fireteam Raven | mcc=Halo: The Master Chief Collection }} }} }}
{{!}} ''{{#ifexist:{{{game}}}|[[{{{game}}}]]|{{{game}}}}}'' }} {{#if:{{{subgame|}}}|(''{{#ifexist:{{{subgame}}}|[[{{{subgame}}}]]|{{{subgame}}}}}'')}}
|-
|-
{{#if:{{{film|}}} | !Film series
{{#if:{{{film|}}} | !Film/series
{{!}} {{#ifeq:{{{film|}}}|other|Other film series| {{#switch:{{{film|}}} | legends=Halo Legends | h4fud=Halo 4: Forward Unto Dawn | nightfall=Halo: Nightfall | htts=Halo: The Television Series | htfor=Halo: The Fall of Reach | htcvc=Halo: The Complete Video Collection | gamefilms=Game tie-ins }} }} }}
{{!}} ''{{#ifexist:{{{film}}}|[[{{{film}}}]]|{{{film}}}}}'' }}
|-
|-
{{#if:{{{media|}}} | !Media
{{#if:{{{comic|}}} | !Comic
{{!}} {{#ifeq:{{{media|}}}|other|Other media| {{#switch:{{{media|}}} | album=Album | marketing=Marketing | website=Website }} }} }}
{{!}} ''{{#ifexist:{{{comic}}}|[[{{{comic}}}]]|{{{comic}}}}}'' }}
|-
|-
{{#if:{{{creator|}}} | !Creator
{{#if:{{{book|}}} | !Book
{{!}} {{#ifeq:{{{creator|}}}|self|File created by the uploader|{{{source}}}}} }}
{{!}} ''{{#ifexist:{{{book}}}|[[{{{book}}}]]|{{{book}}}}}'' }}
|-
|-
{{#if:{{{source|}}} | !Source
{{#ifeq:{{{media|other}}}|other|| !Media
{{!}} {{#ifeq:{{{source|}}}|self|File created by the uploader|{{{source}}}}} }}
{{!}} {{#switch:{{{media}}} | album=Album | merch=Merchandise | marketing=Marketing material | website=Website | nonhalo={{#if:{{{title|}}}|''{{#ifexist:{{{title}}}|[[{{{title}}}]]|{{{title}}}}}''|Non-''Halo'' image}} | #default=<span style="color:red">'''Error:''' Please  remove the <code>media</code> parameter or enter one of the following, if applicable: album, merch, marketing, website, nonhalo.</span>}} }}
|-
{{#if:{{{artist|{{{artist1|}}}}}} | !id="fileinfotpl_aut"{{!}}Artist{{#if:{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:key}}|{{#var:value}}}}}}}}|s}}
{{!}} {{#ifeq:{{{artist|{{{artist1|}}}}}}|self|File created by the uploader|{{#ifeq:{{NAMESPACE:{{{artist|{{{artist1}}}}}}}}|User|[[{{{artist|{{{artist1}}}}}}]]|{{{artist|{{{artist1}}}}}}}}}}{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|, {{#var:value}}}}}}}} | {{#if:{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:key}}|{{#var:value}}}}}}}}|<span style="color:red">'''Error:''' The initial '''artist''' parameter must be set before defining additional artists.</span>}} }}
|-
{{#ifeq:{{{artist|{{{artist1|}}}}}}|{{{source|}}}||
{{#if:{{{source|}}} | !id="fileinfotpl_src"{{!}}Source
{{!}} style="line-break:anywhere" {{!}} {{#switch:{{{source}}}|self=File created by the uploader|direct=File ripped directly from media|unknown=Unknown|#default={{{source}}}}} }} }}
|-
{{#if:{{{filename|{{{filename1|}}}}}} | !Original filename{{#if:{{#forargs:filename|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:key}}|{{#var:value}}}}}}}}|s}}
{{!}} style="line-break:anywhere" {{!}} <code>{{{filename|{{{filename1}}}}}}</code>{{#forargs:filename|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|<br><code>{{#var:value}}</code>}}}}}} | {{#if:{{#forargs:filename|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:key}}|{{#var:value}}}}}}}}|<span style="color:red">'''Error:''' The initial '''filename''' parameter must be set before defining additional filenames.</span>}} }}
|-
{{#if:{{{caption|}}} | !Source caption
{{!}} {{{caption}}} }}
|-
|-
!License
!License
| {{license | {{{license|unknown}}} | nocat={{{nocat|<noinclude>y</noinclude>}}} }}
| {{license | {{#if:{{{license|}}}|{{{license}}}|fairuse}} | nocat={{{nocat|}}} }}
|}<includeonly>{{#if:{{{nocat|}}}||
|}{{#if:{{{nocat|}}}||
{{#switch:{{{type|}}} | screenshot=[[Category:Screenshots]] | coverart=[[Category:Cover Art Images]] | comic=[[Category:Comic images]] | audio=[[Category:Audio files]] | concept=[[Category:Concept art]] | asset=[[Category:Assets]] | document=[[Category:Documents]] | merch=[[Category:Merchandise images]] | logo=[[Categors:Logo imagess]] | icon=[[Category:Icon images]] | map=[[Category:Map images]] | real=[[Category:Real world images]] | nonhalo=[[Category:Non-Halo images]] | user=[[Category:Personal user images]] | wiki=[[Category:Halopedia images]]}}
 
{{#switch:{{{game}}} images]] | hce=[[Category:Halo: Combat Evolved images]] | hcea=[[Category:Halo: Combat Evolved Anniversary images]] | h2=[[Category:Halo 2 images]] | h2a=[[Category:Halo 2: Anniversary images]] | h3=[[Category:Halo 3 images]] | h4=[[Category:Halo 4 images]] | h5g=[[Category:Halo 5: Guardians images]] | hi=[[Category:Halo Infinite images]] | hsa=[[Category:Halo: Spartan Assault images]] | hss=[[Category:Halo: Spartan Strike images]] | hw=[[Category:Halo Wars images]] | hw2=[[Category:Halo Wars 2 images]] | odst=[[Category:Halo 3: ODST images]] | reach=[[Category:Halo: Reach images]] | hfr=[[Category:Halo: Fireteam Raven images]] | mcc=[[Category:Halo: The Master Chief Collection images}}
{{#switch:{{{type}}}
}}{{#switch:{{{type|}}} | merch | real | map | user | wiki | icon = {{#if:{{{license|}}}||[[Category:Files with no license]]}} }}</includeonly><noinclude>
|screenshot={{#switch:{{{media}}}
|nonhalo=[[Category:Non-Halo screenshots]]
|website=[[Category:Website screenshots]]
|#default={{#if:{{{game|}}}{{{film|}}}||[[Category:Screenshots]]}}}}
|icon=[[Category:Icons]]
|achievement={{#if:{{{game|}}}||[[Category:Achievement images]]}}
|medal={{#if:{{{game|}}}||[[Category:Multiplayer medal images]]}}
|rank={{#if:{{{game|}}}||[[Category:Rank insignia]]}}
|skull=[[Category:Skull icons]]
|menuicon={{#if:{{{game|}}}||[[Category:Menu icons]]}}
|artwork=[[Category:Artwork]]
|concept={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}||[[Category: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={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}||[[Category:Storyboards]]}}
|wallpaper=[[Category:Wallpaper]]
|render={{#if:{{{game|}}}|[[Category:Game renders]]|[[Category:Renders]]}}
|logo=[[Category:Logos]]
|asset=[[Category:Raw assets]]
|page=[[Category:Page scans]]
|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]]}}
|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]]
|user=[[Category:Personal images]]
|wiki=[[Category:Halopedia images]]
}}<!--
 
-->{{#ifeq:{{{media|}}}|nonhalo|
|{{#if:{{{game|}}}|{{#switch:{{{type}}}
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
{{#if:{{{subgame|}}}|{{#ifexist:Category:{{{subgame}}} screenshots|[[Category:{{{subgame}}} screenshots]]}}}}
|achievement={{#ifexist:Category:{{{game}}} achievement images|
[[Category:{{{game}}} achievement images]]|[[Category:Achievement images]]}}
|medal={{#ifexist:Category:{{{game}}} 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]]}}
|menuicon={{#ifexist:Category:{{{game}}} menu icons|
[[Category:{{{game}}} menu icons]]|[[Category:Menu icons]]}}
|concept={{#ifexist:Category:{{{subgame|{{{game}}}}}} concept art|
[[Category:{{{subgame|{{{game}}}}}} concept art]]|[[Category:Game concept art]]}}
|storyboard={{#ifexist:Category:{{{subgame|{{{game}}}}}} storyboards|
[[Category:{{{subgame|{{{game}}}}}} storyboards]]|[[Category:Game storyboards]]}}
|document={{#ifexist:Category:{{{game}}} documents|
[[Category:{{{game}}} documents]]|[[Category:Game documents]]}}
|designdoc={{#ifexist:Category:{{{game}}} design documentation|
[[Category:{{{game}}} design documentation]]|[[Category:Design documentation]]}}
|audio={{#ifexist:Category:{{{game}}} audio files|
[[Category:{{{game}}} audio files]]|[[Category:Game audio files]]}}
|#default={{#ifexist:Category:{{{game}}} images|
[[Category:{{{game}}} images]]|[[Category:Game images]]}}}}
|{{#if:{{{film|}}}|{{#switch:{{{type}}}
|screenshot={{#ifexist:Category:{{{film}}} screenshots|[[Category:{{{film}}} screenshots]]|[[Category:Film screenshots]]}}
|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]]}}
|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]]}}
|#default={{#ifexist:Category:{{{film}}} images|[[Category:{{{film}}} images]]|[[Category:Film images]]}}}}
|{{#if:{{{comic|}}}|{{#switch:{{{type}}}
|concept={{#ifexist:Category:{{{comic}}} concept art|[[Category:{{{comic}}} concept art]]|[[Category:Comic concept art]]}}
|document={{#ifexist:Category:{{{comic}}} documents|[[Category:{{{comic}}} documents]]|[[Category:Comic documents]]}}
|audio={{#ifexist:Category:{{{comic}}} audio files|[[Category:{{{comic}}} audio files]]|[[Category:Comic audio files]]}}
|#default={{#ifexist:Category:{{{comic}}} images|[[Category:{{{comic}}} images]]|[[Category:Comic images]]}}}}
|{{#if:{{{book|}}}|{{#switch:{{{type}}}
|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]]}}
|#default={{#ifexist:Category:{{{book}}} images|[[Category:{{{book}}} images]]|[[Category:Book images]]}}}}
}}}}}}}}
}}<!--
 
-->{{#ifeq:{{{type|}}}|screenshot|{{#ifexist:Category:{{{subject}}} screenshots|[[Category:{{{subject}}} screenshots]]}}}}<!--


-->{{#switch:{{{media|}}}
|album={{#switch:{{{type|}}}
|cover|audio|document=
|#default=[[Category:Album images]]}}
|merch={{#switch:{{{type|}}}
|audio|document=
|#default=[[Category:Merchandise images]]}}
|marketing={{#switch:{{{type|}}}
|audio|document=
|real=[[Category:Promotional photos]]
|#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|
{{#switch:{{{type}}}
|user|wiki=[[Category:Fair use images]]
|audio=[[Category:Fair use audio files]]
|document=[[Category:Fair use documents]]
|#default=
}}
}}<!--
-->{{#ifeq:{{{source|}}}|unknown|{{#switch:{{{type|}}}
|audio=[[Category:Audio files with unknown source]]
|document=[[Category:Documents with unknown source]]
|#default=[[Category:Images with unknown source]]}}
}}<!--
-->{{#ifeq:{{{source|}}}|direct|[[Category:Raw assets]]}}<!--
-->{{#if:{{{title|}}}|{{#ifexist:Category:{{{title}}} images|[[Category:{{{title}}} images]]}}}}<!--
-->{{#if:{{{artist|{{{artist1|}}}}}}|{{#ifeq:{{{artist|{{{artist1|}}}}}}|self||{{#ifeq:{{NAMESPACE:{{{artist|{{{artist1}}}}}}}}|User||[[Category:Images by {{{artist|{{{artist1}}}}}}]]}}}}}}<!--
-->{{#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:Files needing a summary]]}}
}}</includeonly><noinclude>
==Info==
==Info==
This template should be used for all files on the "Files" 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.


==Parameters==
==Parameters==
{| class="wikitable"
{| class="wikitable"
! Parameter || Mandatory || Default || Detailed description
! Parameter || Purpose || Detailed description
|-
|-
! summary
! summary
| '''Yes''' || File summary || A brief explanation of what the image or sound is; what it contains, and what it is used for.
| 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 || 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
! type
| '''Yes''' || Content type || What type of content this is. This will automatically determine some other things. Can be one of the following:
| Content type || What type of content this is. This will automatically determine some other things. Can be one of the following:
*screenshot: Screenshot
*screenshot: Screenshot
*coverart: Cover art
*icon: Icon image
*comic: Comic
**achievement: Achievement image
*audio: Audio
**medal: Multiplayer medal image
*concept: Concept art
**rank: Rank insignia
*asset: Asset
**skull: Skull icon
*document: Document
**menuicon: Menu icon
*merch: Merchandise image
*artwork: General artwork
**concept: Concept art
**cover: Cover art
**character: Character art
**storyboard: Storyboard image
**wallpaper: Wallpaper image
*render: Render
*logo: Logo
*logo: Logo
*icon: Icon
*asset: Raw asset
*map: Map
*page: Comic scene or book page
*designdoc: Design documentation
*document: PDF document
*audio: Audio file
*real: Real-world image
*real: Real-world image
*nonhalo: Non-''Halo'' image
*user: [[Halopedia:Personal image policy|Personal user image]]
*user: [[Halopedia:Personal Image Policy|Personal user image]]
*wiki: Halopedia site image
*wiki: Halopedia site image
|-
|-
! game
! subject
| No || Game || The game this file is about (if applicable). Can be one of the following:
| Subject || Subject of the image for optional screenshot categorization: character, weapon, vehicle, menu, multiplayer.
*hce: Halo: Combat Evolved
*hcea: Halo: Combat Evolved Anniversary
*h2: Halo 2
*h2a: Halo 2: Anniversary
*h3: Halo 3
*h4: Halo 4
*h5g: Halo 5: Guardians
*hi: Halo Infinite
*hsa: Halo: Spartan Assault
*hss: Halo: Spartan Strike
*hw: Halo Wars
*hw2: Halo Wars 2
*odst: Halo 3: ODST
*reach: Halo: Reach
*hfr: Halo: Fireteam Raven
*mcc: Halo: The Master Chief Collection
* other: A different game.
|-
|-
! film
! artist
| No || Film series || The film series this file is about (if applicable). Can be one of the following:
| 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.
*legends: Halo Legends
*h4fud: Halo 4: Forward Unto Dawn
*nightfall: Halo: Nightfall
*htts: Halo: The Television Series
*htfor: Halo: The Fall of Reach
*htcvc: Halo: The Complete Video Collection
*gamefilms: Game tie-ins
* other: A different film series.
|-
|-
! media
! source
| No || Media type || The type of media the file is from if it's not from a game or film: album, marketing, website, other.
| File source || If it was obtained from a website, type its URL here. Other options: self, direct, unknown.
|-
|-
! creator
! filename
| No || File creator || The name of the artist who created the work. If this file was created by the user, type "self".
| 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.
|-
|-
! source
! caption
| No || File source || If it was obtained from a website, type its URL here. If this file was created by the user, type "self".
| Source caption || The original caption attributed to the file from its source website (if applicable).
|-
|-
! license
! license
| No || License || If it cannot be deduced automatically from the content type, the license must be added here. This is the same parameter you would feed into {{tem|license}}.
| License || This is the same parameter you would feed into {{tem|license}}. Defaults to fair use.
|-
|-
! nocat
! nocat
| No || No categorization|| If this has a value, like "y", then the template will not automatically categorize the file.
| No categorization|| If this has a value, like "y", then the template will not automatically categorize the file.
|}
|}


==Skeleton==
[[Category:File templates]]
<pre>
[[Category:Documentation templates]]</noinclude>
{{file info
|summary  =
|type    =
|game    =
|film    =
|media    =
|creator  =
|source  =
|license  =
|nocat    =
}}
</pre>
 
[[Category:Image Notices]]</noinclude>