Template:File info: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
|- | |- | ||
{{#if:{{{artist|}}} | !Artist | {{#if:{{{artist|}}} | !Artist | ||
{{!}} {{#ifeq:{{{artist | {{!}} {{#ifeq:{{{artist}}}|self|File created by the uploader|{{{artist}}}}} }} | ||
|- | |- | ||
{{#ifeq:{{{artist|}}}|{{{source|}}}|| | {{#ifeq:{{{artist|}}}|{{{source|}}}|| | ||
{{#if:{{{source|}}} | !Source | {{#if:{{{source|}}} | !Source | ||
{{!}} {{#switch:{{{source | {{!}} {{#switch:{{{source}}}|self=File created by the uploader|direct=File ripped directly from media|unknown=Unknown|#default={{{source}}}}} }} }} | ||
|- | |- | ||
{{#if:{{{filename|}}} | ! Original filename | {{#if:{{{filename|}}} | ! Original filename | ||
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 | {{#switch:{{{type}}} | screenshot={{#if:{{{film|}}}|[[Category:Film Screenshots]]}}{{#ifeq:{{{media|}}}|website|[[Category:Web page screenshots]]}} | skull=[[Category:Fair use images]][[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]]|[[Category:Fair use images]]}} | logo=[[Category:Logos]] | page={{#if:{{{comic|}}}|[[Category:Comic images]]}} | audio=[[Category:Fair use audio samples]] | real=[[Category:Real world images]] | user=[[Category:Personal images]] | wiki=[[Category:Halopedia images]] #default=[[Category:Fair use 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:{{{media|}}}|marketing|{{#switch:{{{type|}}}|screenshot=|render=|logo=|asset=|page=|document=|audio=|real=[[Category:Promotional photos]]|user=|wiki=|#default=[[Category:Promotional images]]}}}}{{#ifeq:{{{source|}}}|unknown|[[Category:Images with unknown source]]}} | ||
}}{{#if:{{{summary|}}}|{{#description2:{{{summary}}}}}}}</includeonly><noinclude> | }}{{#if:{{{summary|}}}|{{#description2:{{{summary}}}}}}}</includeonly><noinclude> | ||
==Info== | ==Info== |
Revision as of 22:42, 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. |