Template:Infobox tour: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
No edit summary
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{year|}}}|[[Category:Live performances by year]]|[[Category:Live performances by tour]]}}{{#vardefine:start_date|{{#cargo_query:
<includeonly>{{#if:{{{year|}}}|[[Category:Live performances by year]]|[[Category:Live performances by tour]]}}</includeonly><templatestyles src="Template:Infobox tour/styles.css" />{{Infobox
tables=shows
|fields=MIN(date)
|where=shows.artist = "{{{artist}}}" {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}} AND shows.date__precision=1}}
}}}}{{#vardefine:end_date|{{#cargo_query:
tables=shows
|fields=MAX(date)
|where=shows.artist = "{{{artist}}}" {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}} AND shows.date__precision=1}}
}}}}</includeonly><templatestyles src="Template:Infobox tour/styles.css" />{{Infobox
| bodyclass      = vevent
| bodyclass      = vevent
| title          = {{#if:{{{year|}}}|{{{artist}}} {{{year}}} tour history|''{{{name}}}'' {{#if:{{#pos:{{{name}}}|residency}}||{{#if:{{#pos:{{{name}}}|Sessions}}||tour}}}}}}
| title          = {{#if:{{{festival|}}}|{{{festival}}}|{{#if:{{{year|}}}|{{#if:{{{artist|}}}|{{{artist}}}}} {{{year}}} tour history|{{#if:{{{tour|}}}|''{{{tour}}} {{#if:{{#pos:{{{tour}}}|residency}}||{{#if:{{#pos:{{{tour}}}|Sessions}}||tour}}}}''|{{#if:{{{artist|}}}|{{{artist}}} tour history|Tour history}}}}}}}}
| titleclass    = summary
| titleclass    = summary
| subheader      = {{#if:{{{name|}}}|[[Tour history|Tour]] by [[{{{artist|}}}]]}}
| subheader      = {{#if:{{{tour|}}}|[[{{{artist}}} tour history|Tour]] by [[{{{artist|}}}]]}}
| subheaderstyle = font-weight: bold;
| subheaderstyle = font-weight: bold;
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{poster|}}}}}}|size={{{image_size|}}}|title={{#ifeq:{{{landscape|}}}|yes||upright}}|border={{#if:{{{border|}}}|yes}}|alt={{{alt|}}}}}
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{poster|}}}}}}|size={{{image_size|}}}|title={{#ifeq:{{{landscape|}}}|yes||upright}}|border={{#if:{{{border|}}}|yes}}|alt={{{alt|}}}}}
Line 17: Line 9:
| label1        = Co-headliners
| label1        = Co-headliners
| data1          = {{{co-headliner|}}}
| data1          = {{{co-headliner|}}}
| label11        = Start date
| label11        = {{#if:{{{tour|}}}|Start|First}} date
| data11        = {{#var:start_date}}<!--<includeonly>[[{{{artist}}} {{#var:start_date}}|{{#var:start_date}}]]</includeonly>-->
| data11        = {{#invoke:infobox tour|firstDate|{{{artist|}}}|{{{tour|}}}|{{{festival|}}}|{{{year|}}}}}
| label12        = End date
| label12        = {{#if:{{{tour|}}}|End|Last}} date
| data12        = {{#var:end_date}}<!--<includeonly>[[{{{artist}}} {{#var:end_date}}|{{#var:end_date}}]]</includeonly>-->
| data12        = {{#invoke:infobox tour|lastDate|{{{artist|}}}|{{{tour|}}}|{{{festival|}}}|{{{year|}}}}}
| label13        = Duration
| label13        = Duration
| data13        = {{{duration|}}}
| data13        = {{{duration|}}}
Line 29: Line 21:
tables=shows
tables=shows
|fields=COUNT(DISTINCT shows._ID)
|fields=COUNT(DISTINCT shows._ID)
|where=shows.artist = "{{{artist}}}" {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}}}}
|where={{#invoke:String|join| AND |{{#if:{{{artist|}}}|(shows.artist = "{{{artist}}}" OR shows.featuring_artist = "{{{artist}}}")}}|{{#if:{{{tour|}}}|shows.tour = "{{{tour}}}"}}|{{#if:{{{festival|}}}|shows.festival = "{{{festival}}}"}}|{{#if:{{{year|}}}|YEAR(shows.date) = {{{year}}}}}}}
}}</includeonly>
}}</includeonly>
| label16        = No. of cities
| label16        = No. of cities
Line 35: Line 27:
tables=shows
tables=shows
|fields=COUNT(DISTINCT location)
|fields=COUNT(DISTINCT location)
|where=shows.artist = "{{{artist}}}" {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}}}}
|where={{#invoke:String|join| AND |{{#if:{{{artist|}}}|(shows.artist = "{{{artist}}}" OR shows.featuring_artist = "{{{artist}}}")}}|{{#if:{{{tour|}}}|shows.tour = "{{{tour}}}"}}|{{#if:{{{festival|}}}|shows.festival = "{{{festival}}}"}}|{{#if:{{{year|}}}|YEAR(shows.date) = {{{year}}}}}}}
}}</includeonly>
}}</includeonly>
| label17        = No. of countries
| label17        = No. of countries
Line 41: Line 33:
tables=shows
tables=shows
|fields=COUNT(DISTINCT country)
|fields=COUNT(DISTINCT country)
|where=shows.artist = "{{{artist}}}" {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}}}}
|where={{#invoke:String|join| AND |{{#if:{{{artist|}}}|(shows.artist = "{{{artist}}}" OR shows.featuring_artist = "{{{artist}}}")}}|{{#if:{{{tour|}}}|shows.tour = "{{{tour}}}"}}|{{#if:{{{festival|}}}|shows.festival = "{{{festival}}}"}}|{{#if:{{{year|}}}|YEAR(shows.date) = {{{year}}}}}}}
}}</includeonly>
}}</includeonly>
| label19        = Supporting artists
| label19        = Supporting artists
Line 47: Line 39:




| header24      = {{#if:{{{prev_tour|}}}{{{next_tour|}}}|{{{artist}}} tour chronology}}
| header24      = {{#if:{{{year|}}}|{{#if:{{{artist|}}}|[[{{{artist}}} tour history]]|[[Tour history]]}}|{{#if:{{{prev_tour|}}}{{{next_tour|}}}|{{#if:{{{artist|}}}|[[{{{artist}}} tour history|{{{artist}}} tour chronology]]|[[Tour history|Tour chronology]]}}}}}}
| rowcellstyle24 = border-top: solid 1px #ccc; padding-top:8px
| rowcellstyle24 = border-top: solid 1px #ccc; padding-top:8px
| class25        = tour-chronology
| class25        = tour-chronology
| data25        = {{#if:{{{prev_tour|}}}{{{next_tour|}}}|
| data25        = {{#if:{{{prev_tour|}}}{{{next_tour|}}}{{{year|}}}|
*<li style="display: table-cell; width: 33%;">{{#if:{{{prev_tour|}}}|[[{{{prev_tour}}} tour|{{{prev_tour}}}]]<br/>({{{prev_year}}})}}
*<li style="display: table-cell; width: 33%;">{{#if:{{{prev_year|}}}|{{#if:{{{prev_tour|}}}|[[{{{prev_tour}}} tour|{{{prev_tour}}}]]<br/>({{{prev_year}}})|([[{{#if:{{{artist|}}}|{{{artist}}}}} {{{prev_year}}} tour history|{{{prev_year}}}]])}}}}
*<li style="display: table-cell; width: 33%;">{{{name}}}<br/>({{{this_year|}}})
*<li style="display: table-cell; width: 33%;">{{#if:{{{tour|}}}|{{{tour}}}<br/>}}({{{this_year|{{{year|}}}}}})
*<li style="display: table-cell; width: 33%;">{{#if:{{{next_tour|}}}|[[{{{next_tour}}} tour|{{{next_tour}}}]]<br/>({{{next_year}}})}}
*<li style="display: table-cell; width: 33%;">{{#if:{{{next_year|}}}|{{#if:{{{next_tour|}}}|[[{{{next_tour}}} tour|{{{next_tour}}}]]<br/>({{{next_year}}})|([[{{#if:{{{artist|}}}|{{{artist}}}}} {{{next_year}}} tour history|{{{next_year}}}]])}}}}
}}}}__FORCETOC__
}}
| below      = {{{misc|}}}}}__FORCETOC__<noinclude><templatedata>
{
"params": {
"year": {
"label": "Year",
"description": "Use this instead of the 'tour' parameter on pages that list shows for a whole year and not a specific tour",
"example": "1996",
"type": "number"
},
"artist": {
"label": "Artist",
"description": "The name of the artist",
"type": "wiki-page-name",
"required": true,
"suggested": true
},
"tour": {
"label": "Name of tour",
"type": "string",
"suggested": true
},
"image": {
"label": "Image",
"type": "wiki-file-name",
"suggested": true
},
"image_size": {
"label": "Image size",
"type": "unknown"
},
"landscape": {},
"border": {},
"alt": {},
"caption": {
"label": "Image caption"
},
"image_caption": {},
"co-headliner": {
"label": "Co-headlers",
"description": "Other artists that co-headlined the tour, such as Marilyn Manson for The End Times tour",
"type": "string"
},
"duration": {},
"number_of_legs": {},
"supporting_artists": {},
"prev_tour": {
"label": "Name of previous tour",
"description": "Previous tour for the this band",
"type": "string",
"suggested": true
},
"next_tour": {
"label": "Name of next tour",
"description": "Next tour by this band",
"suggested": true
},
"prev_year": {
"label": "Year of previous tour",
"description": "Year or year range of the previous tour",
"example": "1996–1997",
"type": "unknown",
"suggested": true
},
"this_year": {
"label": "Year of this tour",
"type": "unknown",
"suggested": true
},
"next_year": {
"label": "Year of next tour",
"description": "Year or year range of the next tour"
},
"festival": {
"label": "Festival",
"description": "Supply field instead of \"name\" or \"year\" to show data on appearances at the given festival",
"type": "string"
}
},
"paramOrder": [
"artist",
"tour",
"image",
"caption",
"year",
"image_size",
"landscape",
"border",
"alt",
"image_caption",
"co-headliner",
"duration",
"number_of_legs",
"supporting_artists",
"prev_tour",
"prev_year",
"next_tour",
"this_year",
"next_year",
"festival"
]
}
</templatedata></noinclude>

Latest revision as of 02:47, 12 May 2022

Tour history
First date1988-07-09
Last date2024-11-16

No description.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Artistartist

The name of the artist

Page namerequired
Name of tourtour

no description

Stringsuggested
Imageimage

no description

Filesuggested
Image captioncaption

no description

Unknownoptional
Yearyear

Use this instead of the 'tour' parameter on pages that list shows for a whole year and not a specific tour

Example
1996
Numberoptional
Image sizeimage_size

no description

Unknownoptional
landscapelandscape

no description

Unknownoptional
borderborder

no description

Unknownoptional
altalt

no description

Unknownoptional
image_captionimage_caption

no description

Unknownoptional
Co-headlersco-headliner

Other artists that co-headlined the tour, such as Marilyn Manson for The End Times tour

Stringoptional
durationduration

no description

Unknownoptional
number_of_legsnumber_of_legs

no description

Unknownoptional
supporting_artistssupporting_artists

no description

Unknownoptional
Name of previous tourprev_tour

Previous tour for the this band

Stringsuggested
Year of previous tourprev_year

Year or year range of the previous tour

Example
1996–1997
Unknownsuggested
Name of next tournext_tour

Next tour by this band

Unknownsuggested
Year of this tourthis_year

no description

Unknownsuggested
Year of next tournext_year

Year or year range of the next tour

Unknownoptional
Festivalfestival

Supply field instead of "name" or "year" to show data on appearances at the given festival

Stringoptional