Template:File info: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
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 | skull=Skull image | artwork=General artwork | concept=Concept art | cover=Cover art | character=Character art | storyboard=Storyboard image | wallpaper=Wallpaper image | render=Render | logo=Logo | asset=Asset | page={{#if:{{{comic|}}}|Comic panel|Book page}} | document=Document | audio=Audio file | {{!}} {{#switch:{{{type}}} | screenshot=Screenshot {{#if:{{{subject|}}}|of {{{subject}}}}} | icon=Icon image | achievement=Achievement image | medal=Multiplayer medal image | skull=Skull image | artwork=General artwork | concept=Concept art | cover=Cover art | character=Character art | storyboard=Storyboard image | wallpaper=Wallpaper image | render=Render | logo=Logo | asset=Asset | page={{#if:{{{comic|}}}|Comic panel|Book page}} | document=Document | audio=Audio file | real=Real-world image | promo=Promotional photo | user=[[Halopedia:Personal Image Policy|Personal user image]] | wiki=Halopedia site image | #default=<span style="color:red">'''Error:'''</span> Please remove the <code>type</code> parameter or enter a valid type from [[Template:File info#Parameters|the list]]}} }} | ||
|- | |- | ||
{{#if:{{{game|}}} | !Game | {{#if:{{{game|}}} | !Game | ||
Line 36: | Line 36: | ||
| {{license | {{#if:{{{license|}}}|{{{license}}}|fairuse}} | nocat={{{nocat|<noinclude>y</noinclude>}}} }} | | {{license | {{#if:{{{license|}}}|{{{license}}}|fairuse}} | nocat={{{nocat|<noinclude>y</noinclude>}}} }} | ||
|}{{#if:{{{nocat|}}}|| | |}{{#if:{{{nocat|}}}|| | ||
{{#switch:{{{type|}}} | screenshot={{#if:{{{film|}}}|[[Category:Film Screenshots]]}}{{#ifeq:{{{media|}}}|website|[[Category:Web page screenshots]]}} | skull=[[Category:Images of skulls]] | artwork=[[Category:Fair use art]] | concept=[[Category:Fair use art]]{{#if:{{{film|}}}|[[Category:{{{film}}} concept art]]}} | cover={{#if:{{{game|}}}|[[Category:Game covers]]}}{{#if:{{{film|}}}|[[Category:DVD covers]]}}{{#if:{{{comic|{{{book|}}}}}}|[[Category:Book covers]]}}{{#ifeq:{{{media|}}}|album|[[Category:Album covers]]}}[[Category:Cover Art Images]] | character=[[Category:Character artwork]] | storyboard=[[Category:Fair use art]] | wallpaper=[[Category:Wallpaper]] | render={{#if:{{{game|}}}|[[Category:Game renders]]}} | logo=[[Category:Logos]] | page={{#if:{{{comic|}}}|[[Category:Comic images]]}} | audio=[[Category:Fair use audio samples]] | | {{#switch:{{{type|}}} | screenshot={{#if:{{{film|}}}|[[Category:Film Screenshots]]}}{{#ifeq:{{{media|}}}|website|[[Category:Web page screenshots]]}} | skull=[[Category:Images of skulls]] | artwork=[[Category:Fair use art]] | concept=[[Category:Fair use art]]{{#if:{{{film|}}}|[[Category:{{{film}}} concept art]]}} | cover={{#if:{{{game|}}}|[[Category:Game covers]]}}{{#if:{{{film|}}}|[[Category:DVD covers]]}}{{#if:{{{comic|{{{book|}}}}}}|[[Category:Book covers]]}}{{#ifeq:{{{media|}}}|album|[[Category:Album covers]]}}[[Category:Cover Art Images]] | character=[[Category:Character artwork]] | storyboard=[[Category:Fair use art]] | wallpaper=[[Category:Wallpaper]] | render={{#if:{{{game|}}}|[[Category:Game renders]]}} | logo=[[Category:Logos]] | page={{#if:{{{comic|}}}|[[Category:Comic images]]}} | audio=[[Category:Fair use audio samples]] | real=[[Category:Real world images]] | promo=[[Category:Promotional photos]] | user=[[Category:Personal images]] | wiki=[[Category:Halopedia images]]}}{{#ifeq:{{{media|}}}|nonhalo||{{#if:{{{game|}}}|{{#switch:{{{type|}}}|screenshot={{#switch:{{{subject|character}}}|character=[[Category:Screenshots]]|#default=[[Category:{{{subject}}} Screenshots]]}}|achievement=[[Category:{{{game}}} Achievement Images]]|medal=[[Category:{{{game}}} Multiplayer Medal Images]]|concept=[[Category:{{#if:{{{subgame|}}}|{{{subgame}}}|{{{game}}}}} concept art]]|storyboard=[[Category:{{#if:{{{subgame|}}}|{{{subgame}}}|{{{game}}}}} storyboards]]|#default=[[Category:{{{game}}} Images]]}}}}}}{{#ifeq:{{{source|}}}|unknown|[[Category:Images with unknown source]]}} | ||
}}{{#if:{{{summary|}}}|{{#description2:{{{summary}}}}}}}</includeonly><noinclude> | }}{{#if:{{{summary|}}}|{{#description2:{{{summary}}}}}}}</includeonly><noinclude> | ||
==Info== | ==Info== | ||
Line 85: | Line 85: | ||
*document: Document | *document: Document | ||
*audio: Audio file | *audio: Audio file | ||
*real: Real-world image | |||
*promo: Promotional photo | *promo: Promotional photo | ||
*user: [[Halopedia:Personal Image Policy|Personal user image]] | *user: [[Halopedia:Personal Image Policy|Personal user image]] | ||
*wiki: Halopedia site image | *wiki: Halopedia site image |
Revision as of 22:04, December 15, 2019
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. |
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, merchandise, 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:
|
subject | Subject | Subject of the image for optional screenshot categorization: character, weapon, vehicle, multiplayer, menu. |
artist | Artist | The name of the artist who created the work, if known. |
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). |
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. |