Template:Venue: Difference between revisions
Create Venue infobox template with semantic properties (via create-page on MediaWiki MCP Server) |
Modernise the venue schema: typed Has-properties, coordinates, phone, venue type, established year; existing parameter names unchanged (via update-page on MediaWiki MCP Server) |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== Venue Infobox == | == Venue Infobox == | ||
Template for documenting music venues. | Template for documenting music venues — the rooms themselves, as opposed to | ||
what happens in them. What happens in them goes on the pages built with | |||
[[Template:Recurring event]] and [[Template:Jam]], which point back here. | |||
=== Usage === | === Usage === | ||
| Line 8: | Line 10: | ||
|name=Venue Name | |name=Venue Name | ||
|image=Example.jpg | |image=Example.jpg | ||
|type=Saloon | |||
|address=123 Main St | |address=123 Main St | ||
|city=St. Petersburg | |city=St. Petersburg | ||
| Line 13: | Line 16: | ||
|scene=St. Petersburg | |scene=St. Petersburg | ||
|capacity=200 | |capacity=200 | ||
|established=1972 | |||
|phone=(555) 123-4567 | |||
|website=https://example.com | |website=https://example.com | ||
|calendar=https://example.com/events | |calendar=https://example.com/events | ||
|lat=27.7676 | |||
|lon=-82.6403 | |||
}} | }} | ||
</pre> | </pre> | ||
=== Parameters === | === Parameters === | ||
* '''name''' - Venue name | * '''name''' - Venue name. Defaults to the page title. | ||
* '''image''' - Photo | * '''image''' - Photo, without the File: prefix. Commons files work — this wiki reads Commons directly, so a photo uploaded there can be used here without re-uploading it. | ||
* '''address''' - Street address | * '''caption''' - Caption for the image. | ||
* '''city''' | * '''type''' - What kind of room: Saloon, Listening room, Brewery, Theater, Church hall, Coffee house, Festival grounds, Private home. | ||
* '''address''' - Street address, street line only. | |||
* '''scene''' - | * '''city''', '''state''' - Spelled out. South Dakota, not SD. | ||
* '''capacity''' - | * '''scene''' - The local music scene it belongs to. | ||
* '''website''' - Official | * '''capacity''' - A number. Where a venue quotes several figures for several rooms, give the largest and explain the rest in prose. | ||
* '''calendar''' - | * '''established''' - Year it opened, four digits. | ||
* '''phone''' - Public telephone number. | |||
* '''website''' - Official site. | |||
* '''calendar''' - Where the schedule actually gets posted, which is frequently a social account rather than the official site. This is the link an import bot re-reads. | |||
* '''lat''', '''lon''' - Decimal degrees, north and east positive. A venue in the United States has a negative '''lon'''. | |||
* '''description''' - A sentence rendered under the infobox. | |||
=== Notes === | |||
Coordinates are stored as two plain numbers, in [[Property:Has latitude|Has | |||
latitude]] and [[Property:Has longitude|Has longitude]], because this wiki does | |||
not run the Maps extension and has no geographic datatype to put them in. Two | |||
numbers still answer the question that matters — what is within an hour's drive | |||
— through range queries. Where a photograph carries GPS data, that is a | |||
perfectly good source for them. | |||
To list a venue's standing weekly nights on its page, add | |||
<code><nowiki>{{Recurring events}}</nowiki></code> below the prose. With no | |||
parameters it finds the events whose [[Property:Has venue|Has venue]] points at | |||
the page it sits on. | |||
'''On the property names.''' This template used to write untyped, lower-case | |||
annotations — <code>city</code>, <code>capacity</code>, <code>website</code> — | |||
and now writes the typed <code>Has city</code>, <code>Has capacity</code>, | |||
<code>Has website</code> family shared with the rest of the wiki. Typing them | |||
is not cosmetic: an untyped annotation stores a number as a page name, so | |||
capacity would not sort and a website would come back as | |||
<code>Https://example.com</code>. Pages already using this template keep their | |||
old annotations until they are re-parsed; a purge with | |||
<code>forcelinkupdate=1</code> forces that. | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
| Line 36: | Line 71: | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} colspan="2" style="text-align: center; padding: 0.5em;" {{!}} [[File:{{{image}}}|250px]][[profile::File:{{{image}}}| ]] | {{!}} colspan="2" style="text-align: center; padding: 0.5em;" {{!}} [[File:{{{image}}}|250px]][[profile::File:{{{image}}}| ]]{{#if:{{{caption|}}}|<div style="font-size: 0.85em; color: #555; padding-top: 0.3em;">{{{caption}}}</div>}} | ||
}} | |||
{{#if:{{{type|}}}| | |||
{{!}}- | |||
! Type | |||
{{!}} [[Has venue type::{{{type}}}]] | |||
}} | }} | ||
{{#if:{{{address|}}}| | {{#if:{{{address|}}}| | ||
{{!}}- | {{!}}- | ||
! Address | ! Address | ||
{{!}} {{{address}}}[[address::{{{address}}}| ]] | {{!}} {{{address}}}[[Has address::{{{address}}}| ]] | ||
}} | }} | ||
{{#if:{{{city|}}}| | {{#if:{{{city|}}}| | ||
{{!}}- | {{!}}- | ||
! City | ! City | ||
{{! | {{!}} [[Has city::{{{city}}}]] | ||
}} | }} | ||
{{#if:{{{state|}}}| | {{#if:{{{state|}}}| | ||
{{!}}- | {{!}}- | ||
! State | ! State | ||
{{! | {{!}} [[Has state::{{{state}}}]] | ||
}} | }} | ||
{{#if:{{{scene|}}}| | {{#if:{{{scene|}}}| | ||
{{!}}- | {{!}}- | ||
! Scene | ! Scene | ||
{{!}} [[ | {{!}} [[Has scene::{{{scene}}}]] | ||
}} | }} | ||
{{#if:{{{capacity|}}}| | {{#if:{{{capacity|}}}| | ||
{{!}}- | {{!}}- | ||
! Capacity | ! Capacity | ||
{{!}} {{{capacity}}}[[ | {{!}} [[Has capacity::{{{capacity}}}]] | ||
}} | |||
{{#if:{{{established|}}}| | |||
{{!}}- | |||
! Established | |||
{{!}} [[Has established year::{{{established}}}]] | |||
}} | |||
{{#if:{{{phone|}}}| | |||
{{!}}- | |||
! Phone | |||
{{!}} [[Has phone::{{{phone}}}]] | |||
}} | }} | ||
{{#if:{{{website|}}}| | {{#if:{{{website|}}}| | ||
{{!}}- | {{!}}- | ||
! Website | ! Website | ||
{{!}} [{{{website}}} Official site][[website::{{{website}}}| ]] | {{!}} [{{{website}}} Official site][[Has website::{{{website}}}| ]] | ||
}} | }} | ||
{{#if:{{{calendar|}}}| | {{#if:{{{calendar|}}}| | ||
{{!}}- | {{!}}- | ||
! Calendar | ! Calendar | ||
{{!}} [{{{calendar}}} Events][[ | {{!}} [{{{calendar}}} Events][[Has calendar url::{{{calendar}}}| ]] | ||
}} | |||
{{#if:{{{lat|}}}| | |||
{{!}}- | |||
! Coordinates | |||
{{!}} {{{lat}}}, {{{lon}}}[[Has latitude::{{{lat}}}| ]][[Has longitude::{{{lon}}}| ]] | |||
}} | }} | ||
|} | |} | ||
[[Category:Venues]] | {{#if:{{{description|}}}|{{{description}}} | ||
}}[[Category:Venues]] | |||
</includeonly> | </includeonly> | ||
Latest revision as of 19:19, 28 August 2026
Venue Infobox
Template for documenting music venues — the rooms themselves, as opposed to what happens in them. What happens in them goes on the pages built with Template:Recurring event and Template:Jam, which point back here.
Usage
{{Venue
|name=Venue Name
|image=Example.jpg
|type=Saloon
|address=123 Main St
|city=St. Petersburg
|state=Florida
|scene=St. Petersburg
|capacity=200
|established=1972
|phone=(555) 123-4567
|website=https://example.com
|calendar=https://example.com/events
|lat=27.7676
|lon=-82.6403
}}
Parameters
- name - Venue name. Defaults to the page title.
- image - Photo, without the File: prefix. Commons files work — this wiki reads Commons directly, so a photo uploaded there can be used here without re-uploading it.
- caption - Caption for the image.
- type - What kind of room: Saloon, Listening room, Brewery, Theater, Church hall, Coffee house, Festival grounds, Private home.
- address - Street address, street line only.
- city, state - Spelled out. South Dakota, not SD.
- scene - The local music scene it belongs to.
- capacity - A number. Where a venue quotes several figures for several rooms, give the largest and explain the rest in prose.
- established - Year it opened, four digits.
- phone - Public telephone number.
- website - Official site.
- calendar - Where the schedule actually gets posted, which is frequently a social account rather than the official site. This is the link an import bot re-reads.
- lat, lon - Decimal degrees, north and east positive. A venue in the United States has a negative lon.
- description - A sentence rendered under the infobox.
Notes
Coordinates are stored as two plain numbers, in Has latitude and Has longitude, because this wiki does not run the Maps extension and has no geographic datatype to put them in. Two numbers still answer the question that matters — what is within an hour's drive — through range queries. Where a photograph carries GPS data, that is a perfectly good source for them.
To list a venue's standing weekly nights on its page, add
{{Recurring events}} below the prose. With no
parameters it finds the events whose Has venue points at
the page it sits on.
On the property names. This template used to write untyped, lower-case
annotations — city, capacity, website —
and now writes the typed Has city, Has capacity,
Has website family shared with the rest of the wiki. Typing them
is not cosmetic: an untyped annotation stores a number as a page name, so
capacity would not sort and a website would come back as
Https://example.com. Pages already using this template keep their
old annotations until they are re-parsed; a purge with
forcelinkupdate=1 forces that.