Template:File info: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
!License | !License | ||
| {{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={{#switch:{{{media}}} | |||
|nonhalo=[[Category:Non-Halo screenshots]] | |||
|website=[[Category:Website screenshots]] | |||
|#default={{#if:{{{game|}}}{{{film|}}}||[[Category:Screenshots]]}}}} | |||
|skull=[[Category:Images of skulls]] | |||
|concept={{#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]] | |||
|wallpaper=[[Category:Wallpaper]] | |||
|render={{#if:{{{game|}}}|[[Category:Game renders]]}} | |||
|logo=[[Category:Logos]] | |||
|page={{#if:{{{comic|}}}|[[Category:Comic images]]}} | |||
|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:{{{subject|}}}|[[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]] | |||
|designdoc=[[Category:{{{game}}} design documentation]] | |||
|audio=[[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]]}} | |||
|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]]}}}} | |||
}}}} | |||
}} | |||
{{#ifeq:{{{media|}}}|merch|{{#switch:{{{type|}}} | |||
|audio=[[Category:Merchandise audio files]] | |||
|document=[[Category:Merchandise documents]] | |||
|#default=[[Category:Merchandise images]]}} | |||
}} | |||
{{#ifeq:{{{media|}}}|marketing|{{#switch:{{{type|}}} | |||
|audio=[[Category:Marketing audio files]] | |||
|document=[[Category:Marketing documents]] | |||
|real=[[Category:Promotional photos]] | |||
|#default=[[Category:Marketing images]]}} | |||
}} | |||
{{#ifeq:{{{license|fairuse}}}|fairuse| | |||
{{#switch:{{{type}}} | |||
|screenshot|character|wallpaper|render|logo|page|real|user|wiki= | |||
|artwork|concept|storyboard=[[Category:Fair use art]] | |||
|audio=[[Category:Fair use audio files]] | |||
|document=[[Category:Fair use documents]] | |||
|#default=[[Category:Fair use images]]}} | |||
}} | |||
{{#ifeq:{{{source|}}}|unknown|{{#switch:{{{type|}}} | |||
|audio=[[Category:Audio files with unknown source]] | |||
|document=[[Category:Documents with unknown source]] | |||
|#default=[[Category:Images with unknown source]]}} | |||
}} | |||
{{#if:{{{title|}}}|{{#ifexist:Category:{{{title}}} images|[[Category:{{{title}}} images]]}}}} | |||
{{#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}}]]}}}} | |||
{{#if:{{{summary|}}}|{{#seo:description={{{summary}}}}}|[[Category:Images needing a summary]]}} | |||
}}</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. |
Revision as of 20:34, March 21, 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 | 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 images 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:
|
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. |