Template:File info: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
! colspan="2" | File information | ! colspan="2" | File information | ||
|- | |- | ||
{{#if:{{{summary|}}} | ! Summary | {{#if:{{{summary|}}} | !id="fileinfotpl_desc"{{!}}Summary | ||
{{!}} {{{summary}}} }} | {{!}} {{{summary}}} }} | ||
|- | |- | ||
{{#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 | real=Real-world image | 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]]}} }} | {{!}} {{#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 | 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]]}} }} | ||
|- | |- | ||
Line 23: | Line 23: | ||
{{!}} {{#switch:{{{media}}} | album=Album | merch=Merchandise | marketing=Marketing material | website=Website | nonhalo=Non-''Halo'' image | #default=<span style="color:red">'''Error:'''</span> Please remove the <code>media</code> parameter or enter one of the following, if applicable: album, merch, marketing, website, nonhalo}} }} | {{!}} {{#switch:{{{media}}} | album=Album | merch=Merchandise | marketing=Marketing material | website=Website | nonhalo=Non-''Halo'' image | #default=<span style="color:red">'''Error:'''</span> Please remove the <code>media</code> parameter or enter one of the following, if applicable: album, merch, marketing, website, nonhalo}} }} | ||
|- | |- | ||
{{#if:{{{artist|}}} | !Artist | {{#if:{{{artist|}}} | !id="fileinfotpl_aut"{{!}}Artist | ||
{{!}} {{#ifeq:{{{artist}}}|self|File created by the uploader|{{{artist}}}}} }} | {{!}} {{#ifeq:{{{artist}}}|self|File created by the uploader|{{{artist}}}}} }} | ||
|- | |- | ||
{{#ifeq:{{{artist|}}}|{{{source|}}}|| | {{#ifeq:{{{artist|}}}|{{{source|}}}|| | ||
{{#if:{{{source|}}} | !Source | {{#if:{{{source|}}} | !id="fileinfotpl_src"{{!}}Source | ||
{{!}} {{#switch:{{{source}}}|self=File created by the uploader|direct=File ripped directly from media|unknown=Unknown|#default={{{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 | ||
{{!}} style="line-break:anywhere" {{!}} <code>{{{filename}}}</code> }} | {{!}} style="line-break:anywhere" {{!}} <code>{{{filename}}}</code> }} | ||
|- | |- |
Revision as of 03:49, June 12, 2020
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, merch, 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. |