Template:File info: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
| {{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=[[Category:Screenshots]] | coverart=[[Category:Cover Art Images]] | concept=[[Category:{{#if:{{{game|}}}|{{{game}}}}} concept art]] | comic=[[Category:Comic images]] | real=[[Category:Real world images]] | user=[[Category:Personal images]] | wiki=[[Category:Halopedia images]] }} | {{#switch:{{{type|}}} | screenshot=[[Category:Screenshots]] | coverart=[[Category:Cover Art Images]] | concept=[[Category:{{#if:{{{game|{{{film|}}}}}}|{{{game|{{{film|}}}}}}}} concept art]] | comic=[[Category:Comic images]] | real=[[Category:Real world images]] | user=[[Category:Personal images]] | wiki=[[Category:Halopedia images]] }} | ||
}}{{#switch:{{{type|}}} | merch | real | map | user | wiki | icon = {{#if:{{{license|}}}||[[Category:Files with no license]]}} }}</includeonly><noinclude> | }}{{#switch:{{{type|}}} | merch | real | map | user | wiki | icon = {{#if:{{{license|}}}||[[Category:Files with no license]]}} }}</includeonly><noinclude> | ||
==Info== | ==Info== |
Revision as of 18:38, December 10, 2019
Info
This template should be used for all files on the "Files" 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 image or sound is; what it contains, and what it is used for. |
type | Content type | What type of content this is. This will automatically determine some other things. Can be one of the following:
|
game | Game | The game this file is about (if applicable). |
film | Film/series | The film or series this file is about (if applicable). |
media | Media type | The type of media the file is from if it's not from a game or film: album, marketing, website, other. |
creator | File creator | The name of the artist who created the work. If this file was created by the user, type "self". |
source | File source | If it was obtained from a website, type its URL here. If this file was created by the user, type "self". |
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. |
Skeleton
{{file info |summary = |type = |game = |film = |media = |creator = |source = |license = |nocat = }}