Template:File info: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
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 | 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'' 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, 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 86: 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 215: 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