Difference between revisions of "Template:Infobox brewery"

From blackwiki
Jump to navigation Jump to search
imported>Trialpears
(If declined to yesno per TfD)
 
(47 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{{Template:Copyviocore}}<noinclude>{{esoteric}}
+
{{Infobox
</noinclude>{| class="infobox vcard" style="background-color: #F8EABA; width: 22em; font-size: 90%;"
+
| bodyclass  = vcard
|-
+
| titleclass  = fn org
! class="fn org" style="background:#ECC850; font-size: 120%" colspan="2" | ''{{{name}}}''
+
| headerstyle = background-color: #ecc850; font-style: italic
|-
+
| title      = {{{name<includeonly>|{{{company_name|{{PAGENAMEBASE}}}}}</includeonly>}}}
{{#if:{{{image<includeonly>|</includeonly>}}}|
+
 
{{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}
+
| image1  = {{#invoke:InfoboxImage|InfoboxImage |image={{{logo|{{{company_logo|}}}}}} |size={{{logo_size|}}} |sizedefault=220px |maxsize=250px |alt={{{logo_alt|}}} }}
 +
| caption1 = {{{logo_caption|}}}
 +
 
 +
| image2  = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=220px |maxsize=250px |alt={{{image_alt|{{{alt|}}}}}} }}
 +
| caption2 = {{{image_caption|{{{caption|}}}}}}
 +
 
 +
| image3    = {{yesno|{{{mapframe|yes}}}|no=|yes={{Infobox mapframe
 +
|zoom={{{mapframe-zoom|}}}
 +
|frame-width={{{mapframe-width|}}}
 +
|frame-height={{{mapframe-height|}}}
 +
|marker={{{mapframe-marker|}}}
 +
|marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
 +
|frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}
 +
|frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}
 +
}}
 
}}
 
}}
|-
+
| caption3 = {{yesno|{{{mapframe|yes}}}|no=|yes={{{mapframe-caption|}}}}}
{{#if:{{{caption<includeonly>|</includeonly>}}}|
+
 
{{!}} colspan="2" style="text-align:center;line-height:1.2em;" {{!}} <small>{{{caption}}}</small>
+
| label1  = Type
 +
| data1    = {{{type<includeonly>|</includeonly>}}}
 +
 
 +
| label2  = Location
 +
| data2    = {{comma separated entries|{{{location_place|}}}|{{{location_city|}}}|{{{location_state|}}}|{{{location_country|}}}}} {{{location<includeonly>|</includeonly>}}}
 +
 
 +
| label3  = [[Geographic coordinate system|Coordinates]]
 +
| data3    = {{{coordinates<includeonly>|</includeonly>}}}
 +
 
 +
| label4  = Opened
 +
| data4    = {{{opened<includeonly>|</includeonly>}}}
 +
 
 +
| label5  = Closed
 +
| data5    = {{{closed<includeonly>|</includeonly>}}}
 +
 
 +
| label6  = Key people
 +
| data6    = {{{key_people<includeonly>|</includeonly>}}}
 +
 
 +
| label7  = Annual production volume
 +
| data7    = {{{production<includeonly>|</includeonly>}}}
 +
 
 +
| label8  = Other products
 +
| data8    = {{{other_products<includeonly>|</includeonly>}}}
 +
 
 +
| label9  = Revenue
 +
| data9    = {{{revenue<includeonly>|</includeonly>}}}
 +
 
 +
| label10  = [[Earnings before interest and taxes|Operating income]]
 +
| data10  = {{{operating_income<includeonly>|</includeonly>}}}
 +
 
 +
| label11  = {{#ifeq:{{{intl|}}}|yes|[[Net income|Profit]]|[[Net income]]}}
 +
| data11  = {{{net_income<includeonly>|</includeonly>}}}
 +
 
 +
| label12  = [[Asset|Total assets]]
 +
| data12  = {{{assets<includeonly>|</includeonly>}}}
 +
 
 +
| label13  = Owned by
 +
| data13  = {{{owner<includeonly>|</includeonly>}}}
 +
 
 +
| label14  = Employees
 +
| data14  = {{{num_employees<includeonly>|</includeonly>}}}
 +
 
 +
| label15  = [[Holding company|Parent]]
 +
| data15  = {{{parent<includeonly>|</includeonly>}}}
 +
 
 +
| label16  = [[Division (business)|Divisions]]
 +
| data16  = {{{divisions<includeonly>|</includeonly>}}}
 +
 
 +
| label17  = [[Subsidiary|Subsidiaries]]
 +
| data17  = {{{subsid<includeonly>|</includeonly>}}}
 +
 
 +
| label18  = Distribution
 +
| data18  = {{{distribution<includeonly>|</includeonly>}}}
 +
 
 +
| label19  = Tasting
 +
| data19  = {{{tasting<includeonly>|</includeonly>}}}
 +
 
 +
| label20  = Website
 +
| data20  = {{{website<includeonly>|{{{url|}}}</includeonly>}}}
 +
 
 +
| header21 = {{#if:{{{active_beers<includeonly>|</includeonly>}}}|Active beers}}
 +
| data22  = {{#if:{{{active_beers<includeonly>|</includeonly>}}}|
 +
<table style="background-color: transparent; text-align: left" width="100%">
 +
<tr>
 +
<th>Name</th>
 +
<td>Type</td>
 +
</tr>
 +
<noinclude><tr><td colspan="2"></noinclude>{{{active_beers}}}<noinclude></td></tr></noinclude>
 +
</table>
 
}}
 
}}
|-
+
| header23 = {{#if:{{{seasonal_beers<includeonly>|</includeonly>}}}|[[Seasonal beer]]s}}
{{#if:{{{location<includeonly>|</includeonly>}}}|
+
| data24  = {{#if:{{{seasonal_beers<includeonly>|</includeonly>}}}|
! style="text-align: left; font-weight: normal;" {{!}} Location
+
<table style="background-color: transparent; text-align: left" width="100%">
{{!}} <span class="label">{{{location}}}</span>
+
<tr>
 +
<th>Name</th>
 +
<td>Type</td>
 +
</tr>
 +
<noinclude><tr><td colspan="2"></noinclude>{{{seasonal_beers}}}<noinclude></td></tr></noinclude>
 +
</table>
 
}}
 
}}
|-
+
| header25 = {{#if:{{{other_beers<includeonly>|</includeonly>}}}|Other beers}}
{{#if:{{{coordinates<includeonly>|</includeonly>}}}|
+
| data26  = {{#if:{{{other_beers<includeonly>|</includeonly>}}}|
! style="text-align: left; font-weight: normal;" {{!}} [[Geographic coordinate system|Coordinates]]
+
<table style="background-color: transparent; text-align: left" width="100%">
{{!}} {{{coordinates}}}
+
<tr>
 +
<th>Name</th>
 +
<td>Type</td>
 +
</tr>
 +
<noinclude><tr><td colspan="2"></noinclude>{{{other_beers}}}<noinclude></td></tr></noinclude>
 +
</table>
 
}}
 
}}
|-
+
| header27 = {{#if:{{{inactive_beers<includeonly>|</includeonly>}}}|Inactive beers}}
{{#if:{{{owner<includeonly>|</includeonly>}}}|
+
| data28  = {{#if:{{{inactive_beers<includeonly>|</includeonly>}}}|
! class="note" style="text-align: left; font-weight: normal;" {{!}} Owner(s)
+
<table style="background-color: transparent; text-align: left" width="100%">
{{!}} {{{owner}}}
+
<tr>
 +
<th>Name</th>
 +
<td>Type</td>
 +
</tr>
 +
<noinclude><tr><td colspan="2"></noinclude>{{{inactive_beers}}}<noinclude></td></tr></noinclude>
 +
</table>
 
}}
 
}}
|-
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox brewery with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox brewery]] with unknown parameter "_VALUE_"|ignoreblank=y| active_beers | alt | assets | caption | closed | company_logo | company_name | coordinates | distribution | divisions | image | image_alt | image_caption | image_size | inactive_beers | intl | key_people | location | location_city | location_country | location_place | location_state | logo | logo_alt | logo_caption | logo_size | name | net_income | num_employees | opened | operating_income | other_beers | other_products | owner | parent | production | revenue | seasonal_beers | subsid | tasting | type | url | website |mapframe |mapframe-zoom |mapframe-width |mapframe-height |mapframe-marker |mapframe-marker-color |mapframe-marker-colour |mapframe-caption | mapframe-lat | mapframe-latitude | mapframe-long | mapframe-longitude }}<noinclude>
{{#if:{{{opened<includeonly>|</includeonly>}}}|
 
! class="note" style="text-align: left; font-weight: normal;" {{!}} Year opened
 
{{!}} {{{opened}}}
 
}}
 
|-
 
{{#if:{{{closed<includeonly>|</includeonly>}}}|
 
! class="note" style="text-align: left; font-weight: normal;" {{!}} Year production ceased
 
{{!}} {{{closed}}}
 
}}
 
|-
 
{{#if:{{{production<includeonly>|</includeonly>}}}|
 
! style="text-align: left; font-weight: normal;" {{!}} Annual production
 
{{!}} {{{production}}}
 
}}
 
|-
 
{{#if:{{{url<includeonly>|</includeonly>}}}|
 
! class="note" style="text-align: left; font-weight: normal;" {{!}} Website
 
{{!}} {{{url}}}
 
}}
 
|-
 
{{#if:{{{active_beers<includeonly>|</includeonly>}}}|
 
{{brewbox_beers}}
 
{{!}}-
 
<noinclude>{{!}}</noinclude>{{{active_beers}}}
 
}}
 
|-
 
{{#if:{{{seasonal_beers<includeonly>|</includeonly>}}}|
 
{{brewbox_beers|type=Seasonal}}
 
{{!}}-
 
<noinclude>{{!}}</noinclude>{{{seasonal_beers}}}
 
}}
 
|-
 
{{#if:{{{other_beers<includeonly>|</includeonly>}}}|
 
<noinclude>{{!}}</noinclude>{{{other_beers}}}
 
}}
 
|}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
+
<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 
</noinclude>
 
</noinclude>

Latest revision as of 17:44, 2 October 2019

{{{name}}}
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).
Type{{{type}}}
Location{{{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
Name Type
{{{active_beers}}}
Seasonal beers
Name Type
{{{seasonal_beers}}}
Other beers
Name Type
{{{other_beers}}}
Inactive beers
Name Type
{{{inactive_beers}}}

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

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.

Template:Parameter names example

{{Infobox brewery
| name             = 
| logo             = 
| logo_size        = 
| logo_alt         = 
| logo_caption     = 
| image            = 
| image_size       = 
| image_alt        = 
| image_caption    = 
| type             = 
| location         = 
| location_place   = 
| location_city    = 
| location_state   = 
| location_country = 
| coordinates      = 
| opened           = 
| closed           = 
| key_people       = 
| production       = 
| other_products   = 
| revenue          = 
| operating_income = 
| intl             = 
| net_income       = 
| assets           = 
| owner            = 
| num_employees    = 
| parent           = 
| divisions        = 
| subsid           = 
| distribution     = 
| tasting          = 
| website          = 
| active_beers     = 
| seasonal_beers   = 
| other_beers      = 
| inactive_beers   = 
}}

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
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
WebsiteTemplate:URL
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
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox brewery
| name           = Cascade Brewery
| image          = Cascade Brewery 1.jpg
| location       = [[Hobart]], [[Tasmania]], Australia
| coordinates    = {{coord|42|53|45|S|147|17|33|E|region:AU_type:landmark|display=inline,title}}
| owner          = [[SAB Miller]]
| opened         = {{start date|1832}}
| production     = {{convert|360000|hL|usbeerbbl|lk=on}}
| website        = {{URL|cascadebrewery.com.au}}
| active_beers   = 
  {{brewbox beer|name=Premium Lager|style=[[Lager]]}}
  {{brewbox beer|name=Premium Light|style=Low-alcohol [[Lager]]}}
  {{brewbox beer|name=Pale Ale|style=[[Lager]]}}
  {{brewbox beer|name=Blonde|style=[[Lager]]}}
  {{brewbox beer|name=Draught|style=[[Lager]]}}
  {{brewbox beer|name=Lager (Blue)|style=[[Lager]]}}
  {{brewbox beer|name=Bitter (Red)|style=Bitter [[Lager]]}}
  {{brewbox beer|name=Stout|style=[[Stout]]}}
  {{brewbox beer|name=Bright|style=[[Lager]]}}
| seasonal_beers = 
  {{brewbox beer|name=First Harvest|style=Special [[Ale]]}}
}}

Microformat

Template:UF-hcard-geo

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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

Unknownoptional
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