Template:File info: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|-
|-
{{#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 | rank=Rank insignia | skull=Skull icon | menuicon=Menu icon | artwork=General artwork | concept=Concept art | cover=Cover art | character=Character art | storyboard=Storyboard image | wallpaper=Wallpaper image | render=Render | logo=Logo | asset=Raw asset | page={{#if:{{{comic|}}}|Comic scene|Book page}} | document=Document | designdoc=Design documentation | 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:''' Please remove the <code>type</code> parameter or enter a valid type from [[Template:File info#Parameters|the list]].</span>}} }}
{{!}} {{#switch:{{{type}}} | screenshot=Screenshot {{#if:{{{subject|}}}|of {{{subject}}}}} | icon=Icon image | achievement=Achievement image | medal=Multiplayer medal image | rank=Rank insignia | skull=Skull icon | menuicon=Menu icon | artwork=General artwork | concept=Concept art | cover=Cover art | character=Character art | storyboard=Storyboard image | wallpaper=Wallpaper image | render=Render | logo=Logo | asset=Raw asset | page={{#if:{{{comic|}}}|Comic scene|Book page}} | designdoc=Design documentation | document=PDF 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:''' Please remove the <code>type</code> parameter or enter a valid type from [[Template:File info#Parameters|the list]].</span>}} }}
|-
|-
{{#if:{{{game|}}} | !Game
{{#if:{{{game|}}} | !Game
Line 37: Line 37:
|-
|-
!License
!License
| {{license | {{#if:{{{license|}}}|{{{license}}}|fairuse}} | nocat={{{nocat|<noinclude>y</noinclude>}}} }}
| {{license | {{#if:{{{license|}}}|{{{license}}}|fairuse}} | nocat={{{nocat|}}} }}
|}{{#if:{{{nocat|}}}||
|}{{#if:{{{nocat|}}}||


Line 89: Line 89:
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
{{#if:{{{subgame|}}}|{{#ifexist:Category:{{{subgame}}} screenshots|[[Category:{{{subgame}}} screenshots]]}}}}
|achievement={{#ifexist:Category:{{{game}}} achievement images|
|achievement={{#ifexist:Category:{{{game}}} achievement images|
[[Category:{{{game}}} achievement images]]|[[Category:Achievement images]]}}
[[Category:{{{game}}} achievement images]]|[[Category:Achievement images]]}}
Line 171: Line 172:
-->{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|[[Category:Images by {{#var:value}}]]}}}}}}<!--
-->{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|[[Category:Images by {{#var:value}}]]}}}}}}<!--


-->{{#if:{{{summary|}}}|{{#seo:description={{{summary}}}}}|[[Category:Images needing a summary]]}}
-->{{#if:{{{summary|}}}|{{#seo:description={{{summary}}}}}|[[Category:Files needing a summary]]}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
==Info==
==Info==
Line 181: Line 182:
|-
|-
! summary
! 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 [[:Category:Images needing a summary|images needing a summary]] category.
| 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 [[:Category:Files needing a summary|files needing a summary]] category.
|-
|-
! game
! game
Line 223: Line 224:
*asset: Raw asset
*asset: Raw asset
*page: Comic scene or book page
*page: Comic scene or book page
*document: Document
*designdoc: Design documentation
**designdoc: Design documentation
*document: PDF document
*audio: Audio file
*audio: Audio file
*real: Real-world image
*real: Real-world image
Line 252: Line 253:
|}
|}


[[Category:File notices]]
[[Category:File templates]]
[[Category:Documentation templates]]</noinclude>
[[Category:Documentation templates]]</noinclude>