Template:File info: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 6: Line 6:
|-
|-
{{#ifeq:{{{type|other}}}|other|| !Type
{{#ifeq:{{{type|other}}}|other|| !Type
{{!}} {{#switch:{{{type}}} | screenshot=Screenshot {{#if:{{{subject|}}}|of {{{subject}}}}} | sprite=Sprite {{#if:{{{subject|}}}|of {{{subject}}} {{#ifeq:{{{subject}}}|menu|object}}|image}} | terminal=Terminal image | 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=Personal user image | wiki={{SITENAME}} 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}}}}} | terminal=Terminal image | manual=Manual image | sprite=Sprite {{#if:{{{subject|}}}|of {{{subject}}} {{#ifeq:{{{subject}}}|menu|object}}|image}} | 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=Personal user image | wiki={{SITENAME}} 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
{{!}} ''{{#ifexist:{{{game}}}|[[{{{game}}}]]|{{{game}}}}}'' }} {{#if:{{{subgame|}}}|(''{{#ifexist:{{{subgame}}}|[[{{{subgame}}}]]|{{{subgame}}}}}'')}}
{{!}} {{#ifexist:{{{game}}}|[[{{{game}}}|''{{PAGETITLE|{{{game}}}}}'' {{get id|{{{game}}}|p=y}}]]|{{{game}}}}} }} {{#if:{{{subgame|}}}|({{#ifexist:{{{subgame}}}|[[{{{subgame}}}|''{{PAGETITLE|{{{subgame}}}}}'' {{get id|{{{subgame}}}|p=y}}]]|{{{subgame}}}}})}}
|-
|-
{{#if:{{{film|}}} | !Film/series
{{#if:{{{film|}}} | !Film/series
{{!}} ''{{#ifexist:{{{film}}}|[[{{{film}}}]]|{{{film}}}}}'' }}
{{!}} {{#ifexist:{{{film}}}|[[{{{film}}}|''{{PAGETITLE|{{{film}}}}}'' {{get id|{{{film}}}|p=y}}]]|{{{film}}}}} }}
|-
|-
{{#if:{{{comic|}}} | !Comic
{{#if:{{{comic|}}} | !Comic
{{!}} ''{{#ifexist:{{{comic}}}|[[{{{comic}}}]]|{{{comic}}}}}'' }}
{{!}} {{#ifexist:{{{comic}}}|[[{{{comic}}}|''{{PAGETITLE|{{{comic}}}}}'' {{get id|{{{comic}}}|p=y}}]]|{{{comic}}}}} }}
|-
|-
{{#if:{{{book|}}} | !Book
{{#if:{{{book|}}} | !Book
{{!}} ''{{#ifexist:{{{book}}}|[[{{{book}}}]]|{{{book}}}}}'' }}
{{!}} {{#ifexist:{{{book}}}|[[{{{book}}}|''{{PAGETITLE|{{{book}}}}}'' {{get id|{{{book}}}|p=y}}]]|{{{book}}}}} }}
|-
|-
{{#ifeq:{{{media|other}}}|other|| !Media
{{#ifeq:{{{media|other}}}|other|| !Media
{{!}} {{#switch:{{{media}}} | album=Album | merch=Merchandise | marketing=Marketing material | website=Website | nonmarathon={{#if:{{{title|}}}|''{{#ifexist:{{{title}}}|[[{{{title}}}]]|{{{title}}}}}''|Non-''Marathon'' 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, nonmarathon.</span>}} }}
{{!}} {{#switch:{{{media}}} | album=Album | merch=Merchandise | marketing=Marketing material | website=Website | podcast=Podcast | nonmarathon={{#if:{{{title|}}}|''{{#ifexist:{{{title}}}|[[{{{title}}}]]|{{{title}}}}}''|Non-''Marathon'' file}} | #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, podcast, nonmarathon.</span>}} }}
|-
|-
{{#if:{{{artist|{{{artist1|}}}}}} | !id="fileinfotpl_aut"{{!}}Artist{{#if:{{#forargs:artist|key|value|{{#ifeq:{{#var:key}}|1||{{#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}}
Line 42: Line 42:
{{#switch:{{{type}}}
{{#switch:{{{type}}}
|screenshot={{#switch:{{{media}}}
|screenshot={{#switch:{{{media}}}
|website=[[Category:Website screenshots]]
|nonmarathon=[[Category:Non-Marathon screenshots]]
|nonmarathon=[[Category:Non-Marathon screenshots]]
|website=[[Category:Website screenshots]]
|#default={{#if:{{{game|}}}{{{film|}}}||[[Category:Screenshots]]}}}}
|#default={{#if:{{{game|}}}{{{film|}}}||[[Category:Screenshots]]}}}}
|terminal={{#if:{{{game|}}}||[[Category:Terminal images]]}}
|manual={{#if:{{{game|}}}||[[Category:Manual images]]}}
|sprite={{#switch:{{{media}}}
|sprite={{#switch:{{{media}}}
|nonmarathon=[[Category:Non-Marathon sprites]]
|nonmarathon=[[Category:Non-Marathon sprites]]
|#default={{#if:{{{game|}}}||[[Category:Sprites]]}}}}
|#default={{#if:{{{game|}}}||[[Category:Sprites]]}}}}
|terminal={{#if:{{{game|}}}||[[Category:Terminal images]]}}
|icon=[[Category:Icons]]
|icon=[[Category:Icons]]
|achievement={{#if:{{{game|}}}||[[Category:Achievement images]]}}
|achievement={{#if:{{{game|}}}||[[Category:Achievement images]]}}
Line 65: Line 66:
|storyboard={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}||[[Category:Storyboards]]}}
|storyboard={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}||[[Category:Storyboards]]}}
|wallpaper=[[Category:Wallpaper]]
|wallpaper=[[Category:Wallpaper]]
|render={{#if:{{{game|}}}|[[Category:Game renders]]|[[Category:Renders]]}}
|render={{#switch:{{{media}}}
|merch=[[Category:Merchandise renders]]
|nonmarathon=[[Category:Non-Marathon renders]]
|#default={{#if:{{{game|}}}{{{film|}}}{{{book|}}}||[[Category:Renders]]}}}}
|logo=[[Category:Logos]]
|logo=[[Category:Logos]]
|asset=[[Category:Raw assets]]
|asset=[[Category:Raw assets]]
Line 82: Line 86:
|marketing=[[Category:Marketing audio files]]
|marketing=[[Category:Marketing audio files]]
|website=[[Category:Website audio files]]
|website=[[Category:Website audio files]]
|podcast=[[Category:Podcast audio files]]
|nonmarathon=[[Category:Non-Marathon audio files]]
|nonmarathon=[[Category:Non-Marathon audio files]]
|#default={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}{{{book|}}}||[[Category:Audio files]]}}}}
|#default={{#if:{{{game|}}}{{{film|}}}{{{comic|}}}{{{book|}}}||[[Category:Audio files]]}}}}
Line 93: Line 98:
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
|screenshot={{#ifexist:Category:{{{game}}} screenshots|
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
[[Category:{{{game}}} screenshots]]|[[Category:Game screenshots]]}}
|terminal={{#ifexist:Category:{{{game}}} terminal images|
[[Category:{{{game}}} terminal images]]|[[Category:Terminal images]]}}
|manual={{#ifexist:Category:{{{game}}} manual images|
[[Category:{{{game}}} manual images]]|[[Category:Manual images]]}}
|sprite={{#ifexist:Category:{{{game}}} sprites|
|sprite={{#ifexist:Category:{{{game}}} sprites|
[[Category:{{{game}}} sprites]]|[[Category:Game sprites]]}}
[[Category:{{{game}}} sprites]]|[[Category:Game sprites]]}}
|terminal={{#ifexist:Category:{{{game}}} terminal images|
[[Category:{{{game}}} terminal images]]|[[Category:Terminal images]]}}
|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 109: Line 116:
|storyboard={{#ifexist:Category:{{{subgame|{{{game}}}}}} storyboards|
|storyboard={{#ifexist:Category:{{{subgame|{{{game}}}}}} storyboards|
[[Category:{{{subgame|{{{game}}}}}} storyboards]]|[[Category:Game storyboards]]}}
[[Category:{{{subgame|{{{game}}}}}} storyboards]]|[[Category:Game storyboards]]}}
|render={{#ifexist:Category:{{{subgame|{{{game}}}}}} renders|
[[Category:{{{subgame|{{{game}}}}}} renders]]|[[Category:Game renders]]}}
|document={{#ifexist:Category:{{{game}}} documents|
|document={{#ifexist:Category:{{{game}}} documents|
[[Category:{{{game}}} documents]]|[[Category:Game documents]]}}
[[Category:{{{game}}} documents]]|[[Category:Game documents]]}}
Line 121: Line 130:
|concept={{#ifexist:Category:{{{film}}} concept art|[[Category:{{{film}}} concept art]]|[[Category:Film concept art]]}}
|concept={{#ifexist:Category:{{{film}}} concept art|[[Category:{{{film}}} concept art]]|[[Category:Film concept art]]}}
|storyboard={{#ifexist:Category:{{{film}}} storyboards|[[Category:{{{film}}} storyboards]]|[[Category:Film storyboards]]}}
|storyboard={{#ifexist:Category:{{{film}}} storyboards|[[Category:{{{film}}} storyboards]]|[[Category:Film storyboards]]}}
|render={{#ifexist:Category:{{{film}}} renders|[[Category:{{{film}}} renders]]|[[Category:Film renders]]}}
|document={{#ifexist:Category:{{{film}}} documents|[[Category:{{{film}}} documents]]|[[Category:Film documents]]}}
|document={{#ifexist:Category:{{{film}}} documents|[[Category:{{{film}}} documents]]|[[Category:Film documents]]}}
|audio={{#ifexist:Category:{{{film}}} audio files|[[Category:{{{film}}} audio files]]|[[Category:Film audio files]]}}
|audio={{#ifexist:Category:{{{film}}} audio files|[[Category:{{{film}}} audio files]]|[[Category:Film audio files]]}}
Line 130: Line 140:
|#default={{#ifexist:Category:{{{comic}}} images|[[Category:{{{comic}}} images]]|[[Category:Comic images]]}}}}
|#default={{#ifexist:Category:{{{comic}}} images|[[Category:{{{comic}}} images]]|[[Category:Comic images]]}}}}
|{{#if:{{{book|}}}|{{#switch:{{{type}}}
|{{#if:{{{book|}}}|{{#switch:{{{type}}}
|render={{#ifexist:Category:{{{book}}} renders|[[Category:{{{book}}} renders]]|[[Category:Book renders]]}}
|document={{#ifexist:Category:{{{book}}} documents|[[Category:{{{book}}} documents]]|[[Category:Book documents]]}}
|document={{#ifexist:Category:{{{book}}} documents|[[Category:{{{book}}} documents]]|[[Category:Book documents]]}}
|audio={{#ifexist:Category:{{{book}}} audio files|[[Category:{{{book}}} audio files]]|[[Category:Book audio files]]}}
|audio={{#ifexist:Category:{{{book}}} audio files|[[Category:{{{book}}} audio files]]|[[Category:Book audio files]]}}
Line 141: Line 152:
-->{{#switch:{{{media|}}}
-->{{#switch:{{{media|}}}
|album={{#switch:{{{type|}}}
|album={{#switch:{{{type|}}}
|cover|audio|document=
|audio|document|cover=
|#default=[[Category:Album images]]}}
|#default=[[Category:Album images]]}}
|merch={{#switch:{{{type|}}}
|merch={{#switch:{{{type|}}}
|audio|document=
|audio|document|render=
|#default=[[Category:Merchandise images]]}}
|#default=[[Category:Merchandise images]]}}
|marketing={{#switch:{{{type|}}}
|marketing={{#switch:{{{type|}}}
Line 151: Line 162:
|#default=[[Category:Marketing images]]}}
|#default=[[Category:Marketing images]]}}
|website={{#switch:{{{type|}}}
|website={{#switch:{{{type|}}}
|screenshot|audio|document=
|audio|document|screenshot=
|#default=[[Category:Website images]]}}
|#default=[[Category:Website images]]}}
|nonmarathon={{#switch:{{{type|}}}
|nonmarathon={{#switch:{{{type|}}}
|screenshot|sprite|audio|document=
|audio|document|screenshot|render|sprite=
|#default=[[Category:Non-Marathon images]]}}
|#default=[[Category:Non-Marathon images]]}}
}}<!--
}}<!--
Line 205: Line 216:
|-
|-
! media
! media
| Media type || The type of media the file is from if it's not from a ''Marathon'' game, film, comic, or book: album, merch, marketing, website, nonmarathon. If none of these apply, don't include the parameter.
| Media type || The type of media the file is from if it's not from a ''Marathon'' game, film, comic, or book: album, merch, marketing, website, podcast, nonmarathon. If none of these apply, don't include the parameter.
|-
|-
! title
! title
Line 213: Line 224:
| 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
*terminal: Terminal image
*manual: Manual image
*sprite: Game sprite
*sprite: Game sprite
*terminal: Terminal image
*icon: Icon image
*icon: Icon image
*artwork: General artwork
*artwork: General artwork
Line 225: Line 237:
*render: Render
*render: Render
*logo: Logo
*logo: Logo
*page: Comic scene or book page
*audio: Audio file
*document: PDF document
*document: PDF document
*audio: Audio file
*real: Real-world image
*real: Real-world image
*user: Personal user image
*user: Personal user image