Template:Infobox tour: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
No edit summary
No edit summary
 
(11 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}}}" OR shows.featuring_artist = "{{{artist}}}") {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}} AND shows.date__precision=1}} {{#if:{{{festival|}}}|AND shows.festival = "{{{festival}}}"}}
}}}}{{#vardefine:end_date|{{#cargo_query:
tables=shows
|fields=MAX(date)
|where=(shows.artist = "{{{artist}}}" OR shows.featuring_artist = "{{{artist}}}") {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}} AND shows.date__precision=1}} {{#if:{{{festival|}}}|AND shows.festival = "{{{festival}}}"}}
}}}}</includeonly><templatestyles src="Template:Infobox tour/styles.css" />{{Infobox
| bodyclass      = vevent
| bodyclass      = vevent
| title          = {{#if:{{{festival|}}}|{{{festival}}}|{{#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        = {{#if:{{{year|}}}|First|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        = {{#if:{{{year|}}}|Last|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}}}" OR shows.featuring_artist = "{{{artist}}}") {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}}}} {{#if:{{{festival|}}}|AND shows.festival = "{{{festival}}}"}}
|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}}}" OR shows.featuring_artist = "{{{artist}}}") {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}}}} {{#if:{{{festival|}}}|AND shows.festival = "{{{festival}}}"}}
|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}}}" OR shows.featuring_artist = "{{{artist}}}") {{#if:{{{name|}}}|AND shows.tour = "{{{name}}}"|AND YEAR(shows.date) = {{{year}}}}} {{#if:{{{festival|}}}|AND shows.festival = "{{{festival}}}"}}
|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:{{{year|}}}|{{{artist}}} tour history|{{#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|}}}{{{year|}}}|
| data25        = {{#if:{{{prev_tour|}}}{{{next_tour|}}}{{{year|}}}|
*<li style="display: table-cell; width: 33%;">{{#if:{{{prev_year|}}}|{{#if:{{{prev_tour|}}}|[[{{{prev_tour}}} tour|{{{prev_tour}}}]]<br/>({{{prev_year}}})|([[{{{artist}}} {{{prev_year}}} tour history|{{{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%;">{{#if:{{{name|}}}|{{{name}}}<br/>}}({{{this_year|{{{year|}}}}}})
*<li style="display: table-cell; width: 33%;">{{#if:{{{tour|}}}|{{{tour}}}<br/>}}({{{this_year|{{{year|}}}}}})
*<li style="display: table-cell; width: 33%;">{{#if:{{{next_year|}}}|{{#if:{{{next_tour|}}}|[[{{{next_tour}}} tour|{{{next_tour}}}]]<br/>({{{next_year}}})|([[{{{artist}}} {{{next_year}}} tour history|{{{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__<noinclude><templatedata>
}}
| below      = {{{misc|}}}}}__FORCETOC__<noinclude><templatedata>
{
{
"params": {
"params": {
Line 70: Line 63:
"suggested": true
"suggested": true
},
},
"name": {
"tour": {
"label": "Name of tour",
"label": "Name of tour",
"type": "string",
"type": "string",
Line 134: Line 127:
"paramOrder": [
"paramOrder": [
"artist",
"artist",
"name",
"tour",
"image",
"image",
"caption",
"caption",

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