Template:Infobox venue: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
|name = String (mandatory=1)
|name = String (mandatory=1)
|former_names = List (,) of Strings
|former_names = List (,) of Strings
|aliases = List (,) of Strings
|image = File
|image = File
|address = String
|address = String
Line 15: Line 16:
|name = {{{name|{{PAGENAME}}}}}
|name = {{{name|{{PAGENAME}}}}}
|former_names = {{{former_names|}}}
|former_names = {{{former_names|}}}
|aliases = {{{aliases|}}}
|image = {{{image|}}}
|image = {{{image|}}}
|address = {{{street_address|}}}
|address = {{{street_address|}}}
Line 29: Line 31:
| headerstyle = background-color:#ccc
| headerstyle = background-color:#ccc
| title = {{{name|{{PAGENAME}}}}}
| title = {{{name|{{PAGENAME}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|title={{#ifeq:{{{landscape|}}}|yes||upright}}|border={{#if:{{{border|}}}|yes}}|alt={{{alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo_image|}}}|size={{{logo_size|}}}|sizedefault=frameless|upright=1|alt={{{logo_alt|}}}}}
| caption = {{{caption|{{{image_caption|}}}}}}
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|title={{#ifeq:{{{landscape|}}}|yes||upright}}|border={{#if:{{{border|}}}|yes}}|alt={{{alt|}}}}}
| caption2 = {{{caption|{{{image_caption|}}}}}}
| label1 = Former names
| label1 = Former names
| data1 = {{{former_names|}}}
| data1 = {{{former_names|}}}
| label2 = Address
| label2 = Also known as
| data2 = {{{address|}}}
| label2 = {{{aliases|}}}
| label3 = Coordinates
| label3 = Address
| data3 = <!-- {{#if:{{{lat|}}}|{{#if:{{{lng|}}}|{{coord|{{{lat}}}|{{{lng}}}|type:landmark}}}}}} -->
| data3 = {{{address|}}}
| label4 = Address
| label4 = Coordinates
| data4 = {{#if:{{{location|}}}|{{#if:{{{street_address|}}}|{{{street_address}}}<br/>}}{{{location}}}}}
| data4 = {{#if:{{{lat|}}}|{{#if:{{{lng|}}}|{{maplink single|{{{lat}}}|{{{lng}}}}}}}}}
| label5 = Type
| label5 = Address
| data5 = {{{type|}}}
| data5 = {{#if:{{{location|}}}|{{#if:{{{street_address|}}}|{{{street_address}}}<br/>}}{{{location}}}}}
| label6 = Capacity
| label6 = Type
| data6 = {{#if:{{{capacity|}}}|{{FORMATNUM:{{{capacity}}}}}}}
| data6 = {{{type|}}}
| label7 = Owner
| label7 = Capacity
| data7 = {{{owner|}}}
| data7 = {{#if:{{{capacity|}}}|{{FORMATNUM:{{{capacity}}}}}}}
| label8 = Opened
| label8 = Owner
| data8 = {{{opened|}}}
| data8 = {{{owner|}}}
| label9 = Closed
| label9 = Opened
| data9 = {{{closed|}}}
| data9 = {{{opened|}}}
| label10 = Wikipedia
| label10 = Closed
| data10 = {{#if:{{{wikipedia|}}}|[[w:{{{wikipedia}}}|{{{wikipedia}}}]]}}
| data10 = {{{closed|}}}
| label11 = Website
| label11 = Wikipedia
| data11 = {{{website|}}}
| data11 = {{#if:{{{wikipedia|}}}|[[w:{{{wikipedia}}}|{{{wikipedia}}}]]}}
| label12 = Instagram
| label12 = Website
| data12 = {{#if:{{{instagram|}}}|[https://instagram.com/{{{instagram}}} @{{{instagram}}}]}}
| data12 = {{{website|}}}
| label13 = Twitter
| label13 = Instagram
| data13 = {{#if:{{{twitter|}}}|[https://twitter.com/{{{twitter}}} @{{{twitter}}}]}}
| data13 = {{#if:{{{instagram|}}}|[https://instagram.com/{{{instagram}}} @{{{instagram}}}]}}
| label14 = Facebook
| label14 = Twitter
| data14 = {{#if:{{{facebook|}}}|[https://facebook.com/{{{facebook}}} {{{facebook}}}]}}
| data14 = {{#if:{{{twitter|}}}|[https://twitter.com/{{{twitter}}} @{{{twitter}}}]}}
| label15 = Facebook
| data15 = {{#if:{{{facebook|}}}|[https://facebook.com/{{{facebook}}} {{{facebook}}}]}}
}}<noinclude><templatedata>
}}<noinclude><templatedata>
{
{
Line 157: Line 162:
"label": "Facebook",
"label": "Facebook",
"type": "string"
"type": "string"
}
},
"aliases": {
"label": "Also known as",
"description": "Other common names that still apply to today's venue",
"suggested": true
},
"logo_image": {},
"logo_size": {},
"logo_alt": {},
"image_size": {},
"landscape": {}
},
},
"format": "{{_\n| _ = _\n}}\n",
"format": "{{_\n| _ = _\n}}\n",
"paramOrder": [
"paramOrder": [
"image",
"caption",
"name",
"name",
"image",
"former_names",
"aliases",
"street_address",
"street_address",
"former_names",
"location",
"location",
"caption",
"lat",
"lat",
"lng",
"lng",
Line 178: Line 194:
"instagram",
"instagram",
"twitter",
"twitter",
"facebook"
"facebook",
"logo_image",
"logo_size",
"logo_alt",
"image_size",
"landscape"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 06:37, 23 January 2021

This template defines the table "venues". View table.

Infobox venue

No description.

[Edit template data]

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Imageimage

no description

Filesuggested
Image captioncaption

no description

Stringoptional
Namename

no description

Default
{{PAGENAME}}
Stringoptional
Former namesformer_names

Comma-separated list

Unknownsuggested
Also known asaliases

Other common names that still apply to today's venue

Unknownsuggested
Street addressstreet_address

Street address, excluding city, state/province, country

Stringsuggested
City, state/province, countrylocation

Country must be the official ISO 2-letter country code

Stringsuggested
Latitudelat

Decimal latitude of coordinates

Numbersuggested
Longitudelng

Decimal longitude of coordinates

Numbersuggested
Typetype

Such as 'club', 'theater', 'arena'

Stringsuggested
Capacitycapacity

Maximum capacity for concerts (no commas or thousands separators)

Numbersuggested
Ownerowner

Owner(s) of the venue, if notable

Stringoptional
Opening dateopened

Date the venue was opened to the public

Datesuggested
Closing dateclosed

Date the venue was closed

Dateoptional
Wikipediawikipedia

Title of the Wikipedia page

Stringsuggested
Websitewebsite

Use the {{URL}} template

Unknownoptional
Instagraminstagram

Instagram handle, without the @

Stringoptional
Twittertwitter

Twitter handle, without the @

Stringoptional
Facebookfacebook

no description

Stringoptional
logo_imagelogo_image

no description

Unknownoptional
logo_sizelogo_size

no description

Unknownoptional
logo_altlogo_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional
landscapelandscape

no description

Unknownoptional