Template:File info: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 6: Line 6:
|-
|-
{{#if:{{{type|}}} | ! Type
{{#if:{{{type|}}} | ! Type
{{!}} {{#switch:{{{type|}}} | screenshot=Screenshot | concept=Concept art | cover=Cover art | render=Render | asset=Asset | logo=Logo | icon=Icon | audio=Audio | document=Document | real=Real-world image | nonhalo=Non-''Halo'' image | user=[[Halopedia:Personal Image Policy|Personal user image]] | wiki=Halopedia site image}} }}
{{!}} {{#switch:{{{type|}}} | screenshot={{#if:{{{comic|}}}|Comic panel|Screenshot}} | concept=Concept art | cover=Cover art | render=Render | asset=Asset | logo=Logo | icon=Icon | audio=Audio | document=Document | real=Real-world image | nonhalo=Non-''Halo'' image | user=[[Halopedia:Personal Image Policy|Personal user image]] | wiki=Halopedia site image}} }}
|-
|-
{{#if:{{{game|}}} | !Game
{{#if:{{{game|}}} | !Game
Line 30: Line 30:
| {{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={{#if:{{{comic|}}}||[[Category:Screenshots]]}} | concept=[[Category:{{#if:{{{game|{{{film|}}}}}}|{{{game|{{{film|}}}}}}}} concept art]] | cover=[[Category:Cover Art Images]] | render={{#if:{{{game|}}}|[[Category:Game renders]]}} | logo=[[Category:Logos]] | real=[[Category:Real world images]] | user=[[Category:Personal images]] | wiki=[[Category:Halopedia images]]}}{{#if:{{{comic|}}}|[[Category:Comic images]]}}
{{#switch:{{{type|}}} | screenshot={{#if:{{{comic|}}}|[[Category:Comic images]]|[[Category:Screenshots]]}} | concept=[[Category:{{#if:{{{game|{{{film|}}}}}}|{{{game|{{{film|}}}}}}}} concept art]] | cover=[[Category:Cover Art Images]] | render={{#if:{{{game|}}}|[[Category:Game renders]]}} | logo=[[Category:Logos]] | real=[[Category:Real world images]] | user=[[Category:Personal images]] | wiki=[[Category:Halopedia images]]}}
}}{{#switch:{{{type|}}} | real | user | wiki | icon = {{#if:{{{license|}}}||[[Category:Files with no license]]}} }}{{#if:{{{summary|}}}|{{#description2:{{{summary}}}}}}}</includeonly><noinclude>
}}{{#switch:{{{type|}}} | real | user | wiki | icon = {{#if:{{{license|}}}||[[Category:Files with no license]]}} }}{{#if:{{{summary|}}}|{{#description2:{{{summary}}}}}}}</includeonly><noinclude>
==Info==
==Info==
Line 44: Line 44:
! type
! type
| Content type || What type of content this is. This will automatically determine some other things. Can be one of the following:
| Content type || What type of content this is. This will automatically determine some other things. Can be one of the following:
*screenshot: Screenshot
*screenshot: Screenshot or comic panel
*concept: Concept art
*concept: Concept art
*cover: Cover art
*cover: Cover art

Revision as of 03:14, December 11, 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:
  • screenshot: Screenshot or comic panel
  • concept: Concept art
  • cover: Cover art
  • render: Render
  • asset: Asset
  • logo: Logo
  • icon: Icon
  • audio: Audio
  • document: Document
  • real: Real-world image
  • nonhalo: Non-Halo image
  • user: Personal user image
  • wiki: Halopedia site image
game Game The game this file is about (if applicable).
film Film/series The film or series this file is about (if applicable).
comic Comic series The comic 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, film, or comic: merchandise, marketing, website, other.
artist Artist 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.
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     = 
|comic    = 
|media    = 
|artist   = 
|source   = 
|license  = 
|nocat    = 
}}