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 | 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}}