Difference between revisions of "Template:Infobox casino/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (note use of Lua modules using AWB)
imported>Zyxw
(update example)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Coordinates|Module:Check for unknown parameters}}
+
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Location map|Module:Coordinates|Module:Check for unknown parameters}}
  
 
== Usage ==
 
== Usage ==
{{Generic template demo
+
{{Parameter names example
|name |logo |logo_size |logo_alt |logo_caption
+
| name | logo | logo_size | logo_alt | logo_caption | image | image_size | image_alt | image_caption
|image |image_size |image_alt |image_caption={{{image_caption}}}<br/><nowiki>{{Location map|{{{pushpin_map}}} |...}}</nowiki>
+
| pushpin_map=Earth | pushpin_map_caption | coordinates={{coord|0|0|type:landmark|display=inline}}
|location |address |date_opened |date_closed
+
| location | address | date_opened | date_closed | theme | rooms | space_gaming | shows | attractions
|theme |rooms |space_gaming |shows |attractions |notable_restaurants
+
| notable_restaurants | casino_type | owner | license_holder | architect | names_pre | renovations
|casino_type |owner |license_holder |architect |names_pre |renovations |website
+
| website | footnotes | embedded
|coordinates=''use {{tl|Coord}}''
 
|footnotes |embedded
 
 
}}
 
}}
  
Line 30: Line 28:
 
| pushpin_map_alt =  
 
| pushpin_map_alt =  
 
| pushpin_map_caption =  
 
| pushpin_map_caption =  
| pushpin_label_position = none
+
| pushpin_label_position =  
 
| coordinates =  
 
| coordinates =  
 
| location =  
 
| location =  
Line 84: Line 82:
 
| names_pre =  
 
| names_pre =  
 
| renovations = Bellagio Spa Tower, 2004, 2006-07
 
| renovations = Bellagio Spa Tower, 2004, 2006-07
| website = [http://www.bellagio.com/ bellagio.com]
+
| website = {{URL|www.bellagio.com|Bellagio.com}}
 
| footnotes =  
 
| footnotes =  
 
}}
 
}}
Line 117: Line 115:
 
| names_pre =  
 
| names_pre =  
 
| renovations = Bellagio Spa Tower, 2004, 2006-07
 
| renovations = Bellagio Spa Tower, 2004, 2006-07
| website = [http://www.bellagio.com/ bellagio.com]
+
| website = {{URL|www.bellagio.com|Bellagio.com}}
 
| footnotes =  
 
| footnotes =  
 
}}
 
}}
Line 129: Line 127:
 
{{Aligned table
 
{{Aligned table
 
  |cols=3 |class=wikitable |style=background:white;line-height:1.3em;
 
  |cols=3 |class=wikitable |style=background:white;line-height:1.3em;
  |col1style=font-family:monospace;padding-right:1.5em; |col2style=padding-right:1.5em;
+
  |col1style=font-family:monospace;font-size:10pt;padding-right:1.5em; |col2style=padding-right:1.5em;
 
  |row1style=background:whitesmoke;font-family:sans-serif;font-weight:bold;
 
  |row1style=background:whitesmoke;font-family:sans-serif;font-weight:bold;
 
  | Field | Description | Values
 
  | Field | Description | Values
  | '''''name''''' | Name of the casino                | wikitext (can contain links)
+
  | name           | Name of the casino                | wikitext (can contain links)
 
  | logo          | Image of the shopping centre      | filename
 
  | logo          | Image of the shopping centre      | filename
 
  | logo_size      | Width of image as a numerical value (omit "px" suffix) |  
 
  | logo_size      | Width of image as a numerical value (omit "px" suffix) |  

Revision as of 10:52, 23 February 2017

Usage

Template:Parameter names example

Copy and paste the following at the start of the casino article:

{{Infobox casino
| name = 
| logo = 
| logo_size = 
| logo_alt = 
| logo_caption = 
| image = 
| image_size = 
| image_alt = 
| image_caption = 
| pushpin_map = 
| pushpin_mapsize = 
| pushpin_map_alt = 
| pushpin_map_caption = 
| pushpin_label_position = 
| coordinates = 
| location = 
| address = 
| date_opened = 
| date_closed = 
| theme = 
| rooms = 
| space_gaming = 
| shows = 
| attractions = 
| notable_restaurants = 
| casino_type = 
| owner = 
| license_holder =  <!-- Use only if different from owner -->
| architect = 
| names_pre =       <!-- (previous names) -->
| renovations = 
| website = 
| footnotes = 
| embedded =
}}

Example

Bellagio
Photograph of the Bellagio casino, Las Vegas
Script error: No such module "If empty".
Lua error in Module:Location_map at line 399: Malformed coordinates value.
Location Paradise, Nevada
Address 3600 Las Vegas Boulevard South
Opening dateOctober 15, 1998
ThemeBellagio, Italy
No. of rooms3,933
Total gaming space116,000 sq ft (10,800 m2)
Permanent showsO by Cirque du Soleil
Signature attractions
  • Bellagio Gallery of Fine Art
  • Conservatory
  • The Fountains of Bellagio
  • The Bank Nightclub
Notable restaurants
Casino typeLand
OwnerMGM Mirage
ArchitectDeRuyter Butler and Atlandia Design
Renovated inBellagio Spa Tower, 2004, 2006-07
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
WebsiteTemplate:URL

For the Bellagio (resort):

{{Infobox casino
| name = Bellagio
| logo = | logo_size = | logo_alt = | logo_caption = 
| image = Bellagio2010.JPG
| image_size = 250
| image_alt = Photograph of the Bellagio casino, Las Vegas
| image_caption = 
| pushpin_map = United States Downtown Las Vegas
| pushpin_mapsize = 
| pushpin_map_alt = Map showing location of Bellagio Las Vegas on the Las Vegas Strip
| pushpin_map_caption = Location within Downtown Las Vegas
| pushpin_label_position = right
| coordinates = {{coord|36|06|47|N|115|10|35|W|region:US-NV_type:landmark|display=inline}}
| location = [[Paradise, Nevada|Paradise]], [[Nevada]]
| address = 3600 [[Las Vegas Boulevard]] South
| date_opened = October 15, 1998
| date_closed = 
| theme = [[Bellagio, Italy]]
| rooms = 3,933
| space_gaming = {{convert|116000|sqft|m2|abbr=on}}
| shows = ''[[O (Cirque du Soleil)|O]]'' by [[Cirque du Soleil]]
| attractions = {{hlist |Bellagio Gallery of Fine Art |Conservatory |''The Fountains of Bellagio'' |''The Bank Nightclub''}}
| notable_restaurants = {{hlist |''[[Le Cirque (Las Vegas)|Le Cirque]]'' |''Circo'' |''[[Picasso]]'' |''Michael Mina'' |''Jasmine'' |''Jean-Georges' Prime'' |''Olives'' |''Sensi''}}
| casino_type = Land
| owner = [[MGM Mirage]]
| architect = DeRuyter Butler and Atlandia Design
| names_pre = 
| renovations = Bellagio Spa Tower, 2004, 2006-07
| website = {{URL|www.bellagio.com|Bellagio.com}}
| footnotes = 
}}

Parameter descriptions

Required parameters are shown in bold italics.

Script error: No such module "aligned table".

Coordinates

For coordinates, use |coordinates= with the {{Coord}} template to display linked coordinates. Unless another value for type: is specified, type:landmark is automatically added.

Pushpin map

To add a {{Location map}}, specify which map to use with the pushpin_map = parameter.

To add a label next to the pushpin, use pushpin_label_position =, with a value of top, bottom, left, or right. The default value is none.

Tracking categories

See also