User:JohnE/bootlegartwork
From The Elvis Costello Wiki
Jump to navigationJump to search
BootlegArtwork Simplification
{{BootlegArtworkStandard}} <<== JohnE by default {{BootlegArtworkStandard|discs=2}} <<== JohnE by default {{BootlegArtworkStandard|creator=Colinb9}} {{BootlegArtworkStandard|creator=Colinb9|discs=2}} ---- * Read "dateCity" parameter from the PAGENAME (for standard pages). * Read "front" parameter from the PAGENAME.
Template:BootlegArtworkStandard:
{{BootlegArtworkDisplay|dateCity = {{#replace:{{#replace:{{#replace:{{PAGENAME}}|Bootleg |}}|.jpg |}}| {{#replace:{{#explode:{{PAGENAME}}| |-1}}|.jpg|}}|}}| creator = {{{creator|JohnE}}} | discs = {{{discs|}}}}}
Template:BootlegArtworkDisplay:
{{Image bar|Artwork by [[:Category:{{{creator|JohnE}}} artwork| {{#ifeq:{{{creator|JohnE}}}|Colinb9|Mr Blue|{{{creator|JohnE}}} }}]] for |Concert {{{dateCity|}}}|{{{dateCity|}}}}} {{BootlegArtwork|Bootleg {{{dateCity|}}}|front|back|disc{{#switch: {{{discs|}}} | 2 | 3 = 1}}|booklet|{{#switch: {{{discs|}}} | 2 | 3 = disc2}}|{{#switch: {{{discs|}}} | 3 = disc3}}}} {{CategoryBootleg|creator={{{creator|JohnE}}}|media={{#switch: {{#replace:{{#explode:{{PAGENAME}}| |-1}}|.jpg|}} | front = front covers | back = back covers | disc1 | disc2 | disc = disc artwork | booklet = booklet artwork }}}}
Test Area
{{BootlegArtworkStandardTest}} <<== JohnE by default {{BootlegArtworkStandardTest|discs=2}} <<== JohnE by default {{BootlegArtworkStandardTest|creator=Colinb9}} {{BootlegArtworkStandardTest|creator=Colinb9|discs=2}} {{BootlegArtworkStandardTest|creator=Colinb9|discs=2|version=2}} <<== version can be anything that is used in jpg naming, e.g. Bootleg 1978-01-20 London (pitch-corrected) front. jpg ---- * Read "dateCity" parameter from the PAGENAME (for standard pages). * Read "front" parameter from the PAGENAME.
Template:BootlegArtworkStandardTest:
{{BootlegArtworkDisplayTest|dateCity = {{#replace:{{#replace:{{#replace:{{#replace:{{PAGENAME}}|Bootleg |}}|.jpg |}}| {{#replace:{{#explode:{{PAGENAME}}| |-1}}|.jpg|}}|}}|{{{version|}}}| }}| creator = {{{creator|JohnE}}} | discs = {{{discs|}}} | version = {{{version|}}}}}
Template:BootlegArtworkDisplayTest:
{{Image bar|Artwork by [[:Category:{{{creator|JohnE}}} artwork| {{#ifeq:{{{creator|JohnE}}}|Colinb9|Mr Blue|{{{creator|JohnE}}} }}]] for |Concert {{{dateCity|}}}|{{{dateCity|}}}}} {{BootlegArtwork|Bootleg {{{dateCity|}}}{{{version|}}}|front|back|disc{{#switch: {{{discs|}}} | 2 | 3 = 1}}|booklet|{{#switch: {{{discs|}}} | 2 | 3 = disc2}}|{{#switch: {{{discs|}}} | 3 = disc3}}}} {{CategoryBootleg|creator={{{creator|JohnE}}}|media={{#switch: {{#replace:{{#explode:{{PAGENAME}}| |-1}}|.jpg|}} | front = front covers | back = back covers | disc1 | disc2 | disc = disc artwork | booklet = booklet artwork }}}}
Working Example
Artwork by JohnE for 1978-01-20 London: |