Template:File info: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 9: Line 9:
|-
|-
{{#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]]}}
|terminal={{#if:{{{game|}}}||[[Category:Terminal images]]}}
Line 66: 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 83: 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 112: 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 124: 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 133: 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 144: 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 154: 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 208: 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 219: Line 227:
*manual: Manual image
*manual: Manual image
*sprite: Game sprite
*sprite: Game sprite
*icon: Icon image
*artwork: General artwork
*artwork: General artwork
**concept: Concept art
**concept: Concept art
Line 228: Line 237:
*render: Render
*render: Render
*logo: Logo
*logo: Logo
*page: Page scan
*audio: Audio file
*audio: Audio file
*document: PDF document
*document: PDF document