Template:File info: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
 
(One intermediate revision 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 | 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>}} }}
{{!}} {{#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}}