Template:File info: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
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|}}} | !id="fileinfotpl_aut"{{!}}Artist | {{#if:{{{artist|}}} | !id="fileinfotpl_aut"{{!}}Artist{{#if:{{{artist2|}}}|s}} | ||
{{!}} {{#ifeq:{{{artist}}}|self|File created by the uploader|{{{artist}}}}}{{#if:{{{artist2|}}}|, {{{artist2}}}}}{{#if:{{{artist3|}}}|, {{{artist3}}}}} }} | {{!}} {{#ifeq:{{{artist}}}|self|File created by the uploader|{{{artist}}}}}{{#if:{{{artist2|}}}|, {{{artist2}}}}}{{#if:{{{artist3|}}}|, {{{artist3}}}}} }} | ||
|- | |- | ||
Line 95: | Line 95: | ||
|- | |- | ||
! artist | ! artist | ||
| Artist || The name of the artist who created the work, if known. | | Artist(s) || The name of the artist who created the work, if known. Parameters '''artist2''' and '''artist3''' may be used for additional artists. | ||
|- | |- | ||
! source | ! source |
Revision as of 04:48, January 25, 2021
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(s) | The name of the artist who created the work, if known. Parameters artist2 and artist3 may be used 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). |
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. |