Template:Infobox venue: Difference between revisions
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) No edit summary |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[Category:Venues]]</includeonly>{{Infobox | <noinclude>{{#cargo_declare:_table=venues | ||
|name = String (mandatory=1) | |||
|former_names = List (,) of Strings | |||
|aliases = List (,) of Strings | |||
|image = File | |||
|address = String | |||
|location = String | |||
|country = String(length=2) | |||
|coords = Coordinates | |||
|type = String | |||
|capacity = Integer | |||
|owner = List (,) of Strings | |||
|opened = Date | |||
|closed = Date | |||
}}</noinclude><includeonly>{{#cargo_store:_table=venues | |||
|name = {{{name|{{PAGENAME}}}}} | |||
|former_names = {{{former_names|}}} | |||
|aliases = {{{aliases|}}} | |||
|image = {{{image|}}} | |||
|address = {{{street_address|}}} | |||
|location = {{{location|}}} | |||
|country = {{#if:{{{location|}}}|{{#sub:{{{location}}}|-2}}}} | |||
|coords = {{#if:{{{lat|}}}|{{#if:{{{lng|}}}|{{{lat}}},{{{lng}}}}}}} | |||
|type = {{{type|}}} | |||
|capacity = {{{capacity|}}} | |||
|owner = {{delink|{{{owner|}}}}} | |||
|opened = {{{opened|}}} | |||
|closed = {{{closed|}}} | |||
}}[[Category:Venues]]</includeonly>{{Infobox | |||
| bodyclass = vcard | | bodyclass = vcard | ||
| 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|}}}}} | ||
| | | 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 | ||
| | | label2 = {{{aliases|}}} | ||
| | | label3 = Address | ||
| | | data3 = {{{address|}}} | ||
| | | label4 = Coordinates | ||
| | | data4 = {{#if:{{{lat|}}}|{{#if:{{{lng|}}}|{{maplink single|{{{lat}}}|{{{lng}}}}}}}}} | ||
| | | label5 = Address | ||
| | | data5 = {{#if:{{{location|}}}|{{#if:{{{street_address|}}}|{{{street_address}}}<br/>}}{{{location}}}}} | ||
| | | label6 = Type | ||
| | | data6 = {{{type|}}} | ||
| | | label7 = Capacity | ||
| | | data7 = {{#if:{{{capacity|}}}|{{FORMATNUM:{{{capacity}}}}}}} | ||
| | | label8 = Owner | ||
| | | data8 = {{{owner|}}} | ||
| label9 = Opened | |||
| data9 = {{{opened|}}} | |||
| label10 = Closed | |||
| data10 = {{{closed|}}} | |||
| label11 = Wikipedia | |||
| data11 = {{#if:{{{wikipedia|}}}|[[w:{{{wikipedia}}}|{{{wikipedia}}}]]}} | |||
| label12 = Website | |||
| data12 = {{{website|}}} | |||
| label13 = Instagram | |||
| data13 = {{#if:{{{instagram|}}}|[https://instagram.com/{{{instagram}}} @{{{instagram}}}]}} | |||
| label14 = Twitter | |||
| data14 = {{#if:{{{twitter|}}}|[https://twitter.com/{{{twitter}}} @{{{twitter}}}]}} | |||
| label15 = Facebook | |||
| data15 = {{#if:{{{facebook|}}}|[https://facebook.com/{{{facebook}}} {{{facebook}}}]}} | |||
}}<noinclude><templatedata> | }}<noinclude><templatedata> | ||
{ | { | ||
Line 34: | Line 77: | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"former_names": { | "former_names": { | ||
"label": "Former names", | "label": "Former names", | ||
Line 41: | Line 83: | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"address": { | "street_address": { | ||
"label": " | "label": "Street address", | ||
"description": " | "description": "Street address, excluding city, state/province, country", | ||
"type": "string", | |||
"suggested": true | |||
}, | |||
"location": { | |||
"label": "City, state/province, country", | |||
"description": "Country must be the official ISO 2-letter country code", | |||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
Line 86: | Line 134: | ||
"description": "Date the venue was closed", | "description": "Date the venue was closed", | ||
"type": "date" | "type": "date" | ||
} | }, | ||
"caption": { | |||
"label": "Image caption", | |||
"type": "string" | |||
}, | |||
"wikipedia": { | |||
"label": "Wikipedia", | |||
"description": "Title of the Wikipedia page", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"website": { | |||
"label": "Website", | |||
"description": "Use the {{URL}} template" | |||
}, | |||
"instagram": { | |||
"label": "Instagram", | |||
"description": "Instagram handle, without the @", | |||
"type": "string" | |||
}, | |||
"twitter": { | |||
"label": "Twitter", | |||
"description": "Twitter handle, without the @", | |||
"type": "string" | |||
}, | |||
"facebook": { | |||
"label": "Facebook", | |||
"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": [ | |||
"image", | |||
"caption", | |||
"name", | |||
"former_names", | |||
"aliases", | |||
"street_address", | |||
"location", | |||
"lat", | |||
"lng", | |||
"type", | |||
"capacity", | |||
"owner", | |||
"opened", | |||
"closed", | |||
"wikipedia", | |||
"website", | |||
"instagram", | |||
"twitter", | |||
"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.
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | no description | File | suggested |
Image caption | caption | no description | String | optional |
Name | name | no description
| String | optional |
Former names | former_names | Comma-separated list | Unknown | suggested |
Also known as | aliases | Other common names that still apply to today's venue | Unknown | suggested |
Street address | street_address | Street address, excluding city, state/province, country | String | suggested |
City, state/province, country | location | Country must be the official ISO 2-letter country code | String | suggested |
Latitude | lat | Decimal latitude of coordinates | Number | suggested |
Longitude | lng | Decimal longitude of coordinates | Number | suggested |
Type | type | Such as 'club', 'theater', 'arena' | String | suggested |
Capacity | capacity | Maximum capacity for concerts (no commas or thousands separators) | Number | suggested |
Owner | owner | Owner(s) of the venue, if notable | String | optional |
Opening date | opened | Date the venue was opened to the public | Date | suggested |
Closing date | closed | Date the venue was closed | Date | optional |
Wikipedia | wikipedia | Title of the Wikipedia page | String | suggested |
Website | website | Use the {{URL}} template | Unknown | optional |
instagram | Instagram handle, without the @ | String | optional | |
twitter | Twitter handle, without the @ | String | optional | |
facebook | no description | String | optional | |
logo_image | logo_image | no description | Unknown | optional |
logo_size | logo_size | no description | Unknown | optional |
logo_alt | logo_alt | no description | Unknown | optional |
image_size | image_size | no description | Unknown | optional |
landscape | landscape | no description | Unknown | optional |