Template:File info: Difference between revisions

m
no edit summary
m (Text replacement - "Category:Image notices" to "Category:File notices")
mNo edit summary
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="margin:10px 0 0"
<includeonly>{| class="wikitable"
! colspan="2" | File information
! colspan="2" | File information
|-
|-
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:'''</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 | 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 21: Line 21:
|-
|-
{{#ifeq:{{{media|other}}}|other|| !Media
{{#ifeq:{{{media|other}}}|other|| !Media
{{!}} {{#switch:{{{media}}} | album=Album | merch=Merchandise | marketing=Marketing material | website=Website | nonhalo={{#if:{{{title|}}}|''{{#ifexist:{{{title}}}|[[{{{title}}}]]|{{{title}}}}}''|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={{#if:{{{title|}}}|''{{#ifexist:{{{title}}}|[[{{{title}}}]]|{{{title}}}}}''|Non-''Halo'' image}} | #default=<span style="color:red">'''Error:''' Please  remove the <code>media</code> parameter or enter one of the following, if applicable: album, merch, marketing, website, nonhalo.</span>}} }}
|-
|-
{{#if:{{{artist|}}} | !id="fileinfotpl_aut"{{!}}Artist{{#if:{{#forargs:artist|key|value|{{#if:{{#var:key}}|{{#var:value}}}}}}|s}}
{{#if:{{{artist|{{{artist1|}}}}}} | !id="fileinfotpl_aut"{{!}}Artist{{#if:{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:key}}|{{#var:value}}}}}}}}|s}}
{{!}} {{#ifeq:{{{artist}}}|self|File created by the uploader|{{#ifeq:{{NAMESPACE:{{{artist}}}}}|User|[[{{{artist}}}]]|{{{artist}}}}}}}{{#forargs:artist|key|value|{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|, {{#var:value}}}}}} }}
{{!}} {{#ifeq:{{{artist|{{{artist1|}}}}}}|self|File created by the uploader|{{#ifeq:{{NAMESPACE:{{{artist|{{{artist1}}}}}}}}|User|[[{{{artist|{{{artist1}}}}}}]]|{{{artist|{{{artist1}}}}}}}}}}{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|, {{#var:value}}}}}}}} | {{#if:{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:key}}|{{#var:value}}}}}}}}|<span style="color:red">'''Error:''' The initial '''artist''' parameter must be set before defining additional artists.</span>}} }}
|-
|-
{{#ifeq:{{{artist|}}}|{{{source|}}}||
{{#ifeq:{{{artist|{{{artist1|}}}}}}|{{{source|}}}||
{{#if:{{{source|}}} | !id="fileinfotpl_src"{{!}}Source
{{#if:{{{source|}}} | !id="fileinfotpl_src"{{!}}Source
{{!}} style="line-break:anywhere" {{!}} {{#switch:{{{source}}}|self=File created by the uploader|direct=File ripped directly from media|unknown=Unknown|#default={{{source}}}}} }} }}
{{!}} style="line-break:anywhere" {{!}} {{#switch:{{{source}}}|self=File created by the uploader|direct=File ripped directly from media|unknown=Unknown|#default={{{source}}}}} }} }}
|-
|-
{{#if:{{{filename|}}} | !Original filename
{{#if:{{{filename|{{{filename1|}}}}}} | !Original filename{{#if:{{#forargs:filename|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:key}}|{{#var:value}}}}}}}}|s}}
{{!}} style="line-break:anywhere" {{!}} <code>{{{filename}}}</code> }}
{{!}} style="line-break:anywhere" {{!}} <code>{{{filename|{{{filename1}}}}}}</code>{{#forargs:filename|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#if:{{#var:key}}|{{#var:value}}}}|<br><code>{{#var:value}}</code>}}}}}} | {{#if:{{#forargs:filename|key|value|{{#ifeq:{{#var:key}}|1||{{#if:{{#var:key}}|{{#var:value}}}}}}}}|<span style="color:red">'''Error:''' The initial '''filename''' parameter must be set before defining additional filenames.</span>}} }}
|-
|-
{{#if:{{{caption|}}} | !Source caption
{{#if:{{{caption|}}} | !Source caption
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 83: Line 83:
|user=[[Category:Personal images]]
|user=[[Category:Personal images]]
|wiki=[[Category:Halopedia images]]
|wiki=[[Category:Halopedia images]]
}}
}}<!--


{{#ifeq:{{{media|}}}|nonhalo|
-->{{#ifeq:{{{media|}}}|nonhalo|
|{{#if:{{{game|}}}|{{#switch:{{{type}}}
|{{#if:{{{game|}}}|{{#switch:{{{type}}}
|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 126: Line 127:
|#default={{#ifexist:Category:{{{book}}} images|[[Category:{{{book}}} images]]|[[Category:Book images]]}}}}
|#default={{#ifexist:Category:{{{book}}} images|[[Category:{{{book}}} images]]|[[Category:Book images]]}}}}
}}}}}}}}
}}}}}}}}
}}
}}<!--


{{#ifeq:{{{type|}}}|screenshot|{{#ifexist:Category:{{{subject}}} screenshots|[[Category:{{{subject}}} screenshots]]}}}}
-->{{#ifeq:{{{type|}}}|screenshot|{{#ifexist:Category:{{{subject}}} screenshots|[[Category:{{{subject}}} screenshots]]}}}}<!--


{{#switch:{{{media|}}}
-->{{#switch:{{{media|}}}
|album={{#switch:{{{type|}}}
|album={{#switch:{{{type|}}}
|cover|audio|document=
|cover|audio|document=
Line 147: Line 148:
|screenshot|audio|document=
|screenshot|audio|document=
|#default=[[Category:Non-Halo images]]}}
|#default=[[Category:Non-Halo images]]}}
}}
}}<!--


{{#ifeq:{{{license|fairuse}}}|fairuse|
-->{{#ifeq:{{{license|fairuse}}}|fairuse|
{{#switch:{{{type}}}
{{#switch:{{{type}}}
|user|wiki=[[Category:Fair use images]]
|user|wiki=[[Category:Fair use images]]
Line 156: Line 157:
|#default=
|#default=
}}
}}
}}
}}<!--


{{#ifeq:{{{source|}}}|unknown|{{#switch:{{{type|}}}
-->{{#ifeq:{{{source|}}}|unknown|{{#switch:{{{type|}}}
|audio=[[Category:Audio files with unknown source]]
|audio=[[Category:Audio files with unknown source]]
|document=[[Category:Documents with unknown source]]
|document=[[Category:Documents with unknown source]]
|#default=[[Category:Images with unknown source]]}}
|#default=[[Category:Images with unknown source]]}}
}}
}}<!--


{{#ifeq:{{{source|}}}|direct|[[Category:Raw assets]]}}
-->{{#ifeq:{{{source|}}}|direct|[[Category:Raw assets]]}}<!--


{{#if:{{{title|}}}|{{#ifexist:Category:{{{title}}} images|[[Category:{{{title}}} images]]}}}}
-->{{#if:{{{title|}}}|{{#ifexist:Category:{{{title}}} images|[[Category:{{{title}}} images]]}}}}<!--


{{#if:{{{artist|}}}|{{#ifeq:{{{artist|}}}|self||{{#ifeq:{{NAMESPACE:{{{artist}}}}}|User||[[Category:Images by {{{artist}}}]]}}}}}}
-->{{#if:{{{artist|{{{artist1|}}}}}}|{{#ifeq:{{{artist|{{{artist1|}}}}}}|self||{{#ifeq:{{NAMESPACE:{{{artist|{{{artist1}}}}}}}}|User||[[Category:Images by {{{artist|{{{artist1}}}}}}]]}}}}}}<!--
{{#forargs:artist|key|value|{{#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 182: 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 224: 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 241: Line 241:
|-
|-
! filename
! filename
| Original filename || The original filename before it was uploaded to the wiki (if applicable).
| Original filename(s) || The original filename before it was uploaded to the wiki (if applicable). Parameters '''filename2''', '''filename3''', '''filename4'''... may be added for additional filenames.
|-
|-
! caption
! caption
Line 253: Line 253:
|}
|}


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