Difference between revisions of "Template:Infobox casino/sandbox"
Jump to navigation
Jump to search
imported>Jdaloner m ("{{ifaffirmed|" --> "{{if affirmed|") |
imported>WOSlinker (sync) |
||
| Line 1: | Line 1: | ||
| − | {{if affirmed|{{{embed|}}} |< | + | {{Infobox |
| − | }}{{ | + | | child = {{if affirmed|{{{embed|}}} |yes}} |
| + | | title = {{if affirmed|{{{embed|}}}|<div style{{=}}"width:100%; background:#cfb53b;" class{{=}}"fn">{{{casino|{{{name|{{PAGENAMEBASE}}}}}}}}</div>}} | ||
| class = vcard | | class = vcard | ||
| labelstyle = padding-top:0.225em;line-height:1.15em; padding-right:1.0em; | | labelstyle = padding-top:0.225em;line-height:1.15em; padding-right:1.0em; | ||
| Line 7: | Line 8: | ||
| aboveclass = fn | | aboveclass = fn | ||
| abovestyle = background:#cfb53b;font-size:135%;padding-bottom:0.2em; | | abovestyle = background:#cfb53b;font-size:135%;padding-bottom:0.2em; | ||
| − | | above = <includeonly>{{{casino|{{{name|{{ | + | | above = <includeonly>{{{casino|{{{name|{{PAGENAMEBASE}}}}}}}}</includeonly> |
| image1 = {{#invoke:InfoboxImage|InfoboxImage |image={{{logo|}}} |size={{{logo_size|}}} |sizedefault=200px |alt={{{logo_alt|}}} }} | | image1 = {{#invoke:InfoboxImage|InfoboxImage |image={{{logo|}}} |size={{{logo_size|}}} |sizedefault=200px |alt={{{logo_alt|}}} }} | ||
| Line 17: | Line 18: | ||
| image3 = {{#if:{{{pushpin_map|}}} | | | image3 = {{#if:{{{pushpin_map|}}} | | ||
{{Location map |{{{pushpin_map|}}} | {{Location map |{{{pushpin_map|}}} | ||
| + | | coordinates = {{{coordinates|}}} | ||
| label = {{#ifeq:{{lc:{{{pushpin_label_position|}}}}}|none | |{{{casino|{{{name}}}}}} }} | | label = {{#ifeq:{{lc:{{{pushpin_label_position|}}}}}|none | |{{{casino|{{{name}}}}}} }} | ||
| alt = {{{pushpin_map_alt|}}} | | alt = {{{pushpin_map_alt|}}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| float = center | | float = center | ||
| mark = Red pog.svg | | mark = Red pog.svg | ||
| Line 60: | Line 52: | ||
| rowclass6 = note | | rowclass6 = note | ||
| − | | label6 = Number of rooms | + | | label6 = {{abbr|No.|Number}} of rooms |
| data6 = {{{rooms|}}} | | data6 = {{{rooms|}}} | ||
| Line 99: | Line 91: | ||
| label17 = [[Geographic coordinate system|Coordinates]] | | label17 = [[Geographic coordinate system|Coordinates]] | ||
| − | | data17 = {{#if:{{{coordinates|}}} | + | | data17 = {{#if:{{{coordinates|}}} |{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}} |
| − | + | {{#if:{{{coordinates_footnotes|}}} |{{{coordinates_footnotes}}} }} | |
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| label18 = Website | | label18 = Website | ||
| Line 116: | Line 102: | ||
| data21 = {{{nrhp|{{{embedded|{{{module|}}}}}}}}} | | data21 = {{{nrhp|{{{embedded|{{{module|}}}}}}}}} | ||
| − | }}<noinclude> | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox casino with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox casino]] with unknown parameter "_VALUE_"|ignoreblank=y| address | architect | attractions | caption | casino | casino_type | coordinates | coordinates_footnotes | date_closed | date_opened | embed | embedded | footnotes | image | image_alt | image_caption | image_size | license_holder | location | logo | logo_alt | logo_caption | logo_size | map_caption | module | name | names_pre | notable_restaurants | nrhp | owner | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_mapsize | renovations | rooms | shows | space_gaming | theme | website }}{{if affirmed|{{{embed|}}} |[[Category:Pages using infobox casino with embed option]]}}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 21:48, 5 June 2017
| This is the template sandbox page for Template:Infobox casino (diff). See also the companion subpage for test cases. |
| This template uses Lua: |
Contents
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 = <!-- {{Coord}} -->
| location =
| address =
| date_opened = <!-- {{start date|yyyy|mm|dd}} -->
| date_closed = <!-- {{End date|yyyy|mm|dd}} -->>
| theme =
| rooms =
| space_gaming = <!-- {{convert}} -->
| 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 | |
|---|---|
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 date | October 15, 1998 |
| Theme | Bellagio, Italy |
| No. of rooms | 3,933 |
| Total gaming space | 116,000 sq ft (10,800 m2) |
| Permanent shows | O by Cirque du Soleil |
| Signature attractions |
|
| Notable restaurants | |
| Casino type | Land |
| Owner | MGM Mirage |
| Architect | DeRuyter Butler and Atlandia Design |
| Renovated in | Bellagio Spa Tower, 2004, 2006-07 |
| Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
| Website | Template: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.
Map
Mapframe map
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 icon)- either
|mapframe-marker-color=or|mapframe-marker-colour=for the marker colour (hex triplet, default is#5E74F3) - either
|mapframe-stroke-color=or|mapframe-stroke-colour=for the stroke colour (hex triplet, default is#FF0000) |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 casino's coordinates. Specify as a decimal number.
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
- Category:Pages using infobox casino with unknown parameters (0)
- Category:Pages using infobox casino with embed option (0)
See also
| The above documentation is transcluded from Template:Infobox casino/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |