Template:Infobox brewery/doc: Difference between revisions

Coordinates: 42°53′45″S 147°17′33″E / 42.89583°S 147.29250°E / -42.89583; 147.29250
From The Democratikan Wiki
m (syntaxhighlight lang="wikitext")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 03:15, 15 February 2024

The {{Infobox brewery}} template is the one advised for use on brewery articles. See Wikipedia:WikiProject Beer/Guidelines.

Usage

Copy and paste the infobox below into the desired article and fill in the values after the equals (=) sign. All fields are optional.

{{{name}}}
[[File:{{{logo}}}|{{{logo_size}}}|alt={{{logo_alt}}}]]
{{{logo_caption}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}]]
{{{image_caption}}}
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).
Type{{{type}}}
Location{{{location_place}}}, {{{location_city}}}, {{{location_state}}}, {{{location_country}}} {{{location}}}
Coordinates{{{coordinates}}}
Opened{{{opened}}}
Closed{{{closed}}}
Key people{{{key_people}}}
Annual production volume{{{production}}}
Other products{{{other_products}}}
Revenue{{{revenue}}}
Operating income{{{operating_income}}}
Net income{{{net_income}}}
Total assets{{{assets}}}
Owned by{{{owner}}}
Employees{{{num_employees}}}
Parent{{{parent}}}
Divisions{{{divisions}}}
Subsidiaries{{{subsid}}}
Distribution{{{distribution}}}
Tasting{{{tasting}}}
Website{{{website}}}
Active beers
{{{active_beers}}}
Name Type
Seasonal beers
{{{seasonal_beers}}}
Name Type
Other beers
{{{other_beers}}}
Name Type
Inactive beers
{{{inactive_beers}}}
Name Type

<syntaxhighlight lang="wikitext" style="overflow:auto;">

Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).

</syntaxhighlight>

Parameters

name
Name of brewery, displayed at top of the infobbox
logo
Filename for logo
logo_size
Size for logo
logo_alt
Alt text for logo
logo_caption
Caption for logo – normally not needed
image
Filename for image
image_size
Size for image
image_alt
Alt text for image
image_caption
Caption for image
type
Type
location
Location of the brewery.
location_place
One of four fields used in place of location
location city
One of four fields used in place of location
location_state
One of four fields used in place of location
location_country
One of four fields used in place of location
coordinates
Latitude and longitude of the main brewery location. Use {{coord}} template with type:landmark and display=inline,title.
opened
Year the brewery opened. Use {{start date}} template.
closed
Year the brewery ceased production. Use {{end date}} template.
key_people
Key people
production
Production volume per year; use {{convert}} template (e.g. {{convert|1|usbeerbbl|hL|lk=on}}) for unit conversion.
other_products
Other products
revenue
Revenue
operating_income
see Earnings before interest and taxes
intl
if defined, label for next line is Profit; otherwise Net income
net_income
see Net income
assets
see Asset
owner
Owner of the brewery.
num_employees
Employees
parent
see Holding company
divisions
see Division (business)
subsid
see Subsidiary
distribution
Distribution
tasting
Tasting
website or url
Official website. Use {{URL}} template.
active_beers
Use multiple {{Brewbox beer|name=value|style=value}} ex. {{Brewbox beer|name=Loch Down|style=[[Scotch Ale]]}}
seasonal_beers
see above
other_beers
see above
inactive_beers
see above

Mapframe maps

A Mapframe map is automatically included if:

  • There are coordinates specified on the page's Wikidata item
  • It has not be turned off by setting |mapframe=no

The following optional parameters can then be used to adjust the map

  • |mapframe-zoom= zoom level (default is 10)
  • |mapframe-width= and |mapframe-height= for the map size (defaults are 270 and 200)
  • |mapframe-marker= for the marker icon (default is no marker icon)
  • either |mapframe-marker-color= or |mapframe-marker-colour= for the marker colour (hex triplet, default is #5E74F3)
  • |mapframe-caption= caption below the map
  • |mapframe-lat= and |mapframe-long= (or |mapframe-latitude= and |mapframe-longitude=) – alternate initial latitude and longitude for the map, instead of the brewery's coordinates. Specify as a decimal number.

Example

Cascade Brewery
File:Cascade Brewery 1.jpg
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).
LocationHobart, Tasmania, Australia
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Opened1832 (1832)
Annual production volume360,000 hectolitres (310,000 US bbl)
Owned bySABMiller
Websitecascadebrewery.com.au
Active beers
Name Type
Premium Lager Lager
Premium Light Low-alcohol Lager
Pale Ale Lager
Blonde Lager
Draught Lager
Lager (Blue) Lager
Bitter (Red) Bitter Lager
Stout Stout
Bright Lager
Seasonal beers
Name Type
First Harvest Special Ale

<syntaxhighlight lang="wikitext" style="overflow: auto">

Cascade Brewery
File:Cascade Brewery 1.jpg
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).
LocationHobart, Tasmania, Australia
CoordinatesLua error in Module:Coordinates at line 489: attempt to index field 'wikibase' (a nil value).
Opened1832 (1832)
Annual production volume360,000 hectolitres (310,000 US bbl)
Owned bySAB Miller
Websitecascadebrewery.com.au
Active beers
Name Type
Premium Lager Lager
Premium Light Low-alcohol Lager
Pale Ale Lager
Blonde Lager
Draught Lager
Lager (Blue) Lager
Bitter (Red) Bitter Lager
Stout Stout
Bright Lager
Seasonal beers
Name Type
First Harvest Special Ale

</syntaxhighlight>

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox brewery in articles based on its TemplateData.

TemplateData for Infobox brewery

No description.

Template parameters

ParameterDescriptionTypeStatus
namename company_name

no description

Unknownoptional
logologo company_logo

no description

Unknownoptional
logo_sizelogo_size

no description

Unknownoptional
logo_altlogo_alt

no description

Unknownoptional
logo_captionlogo_caption

no description

Unknownoptional
imageimage

no description

Fileoptional
image_sizeimage_size

no description

Unknownoptional
image_altimage_alt alt

no description

Unknownoptional
image_captionimage_caption caption

no description

Unknownoptional
mapframemapframe

no description

Unknownoptional
mapframe-zoommapframe-zoom

no description

Unknownoptional
mapframe-widthmapframe-width

no description

Unknownoptional
mapframe-heightmapframe-height

no description

Unknownoptional
mapframe-markermapframe-marker

no description

Unknownoptional
mapframe-marker-colormapframe-marker-color

no description

Unknownoptional
mapframe-marker-colourmapframe-marker-colour

no description

Unknownoptional
mapframe-latmapframe-lat

no description

Unknownoptional
mapframe-latitudemapframe-latitude

no description

Unknownoptional
mapframe-longmapframe-long

no description

Unknownoptional
mapframe-longitudemapframe-longitude

no description

Unknownoptional
mapframe-captionmapframe-caption

no description

Unknownoptional
typetype

no description

Unknownoptional
location_placelocation_place

no description

Unknownoptional
location_citylocation_city

no description

Unknownoptional
location_statelocation_state

no description

Unknownoptional
location_countrylocation_country

no description

Unknownoptional
locationlocation

no description

Unknownoptional
coordinatescoordinates

no description

Unknownoptional
openedopened

no description

Unknownoptional
closedclosed

no description

Unknownoptional
key_peoplekey_people

no description

Unknownoptional
productionproduction

no description

Unknownoptional
other_productsother_products

no description

Unknownoptional
revenuerevenue

no description

Unknownoptional
operating_incomeoperating_income

no description

Unknownoptional
intlintl

no description

Unknownoptional
net_incomenet_income

no description

Unknownoptional
assetsassets

no description

Unknownoptional
ownerowner

no description

Unknownoptional
num_employeesnum_employees

no description

Unknownoptional
parentparent

no description

Unknownoptional
divisionsdivisions

no description

Unknownoptional
subsidsubsid

no description

Unknownoptional
distributiondistribution

no description

Unknownoptional
tastingtasting

no description

Unknownoptional
websitewebsite url

no description

Unknownoptional
active_beersactive_beers

no description

Unknownoptional
seasonal_beersseasonal_beers

no description

Unknownoptional
other_beersother_beers

no description

Unknownoptional
inactive_beersinactive_beers

no description

Unknownoptional

Tracking category

See also