Template:Infobox casino/doc
{{#ifeq:doc |doc
|
{{#ifeq:show |show
|
| icon | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if:|
|{{#ifexist:Template:Infobox casino
| [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
| File:Lua-Logo.svg | This template uses Lua: |
Usage
| {{{name}}} | |
|---|---|
| {{{native_name}}} | |
| [[File:{{{logo}}}|{{{logo_size}}}|alt={{{logo_alt}}}]] {{{logo_caption}}} | |
| [[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}]] {{{image_caption}}} | |
{{#if:Earth |
Lua error in Module:Location_map at line 411: Malformed coordinates value.
}} | |
| Location | {{{location}}} |
| Address | {{{address}}} |
| Opening date | {{{date_opened}}} |
| Closing date | {{{date_closed}}} |
| Demolished date | {{{demolition_date}}} |
| Theme | {{{theme}}} |
| No. of rooms | {{{rooms}}} |
| Total gaming space | {{{space_gaming}}} |
| Permanent shows | {{{shows}}} |
| Signature attractions | {{{attractions}}} |
| Notable restaurants | {{{notable_restaurants}}} |
| Casino type | {{{casino_type}}} |
| Owner | {{{owner}}} |
| Operating license holder | {{{license_holder}}} |
| Architect | {{{architect}}} |
| Previous names | {{{names_pre}}} |
| Renovated in | {{{renovations}}} |
| Coordinates | {{#if:Lua error: callParserFunction: function "#coordinates" was not found. |Lua error: callParserFunction: function "#coordinates" was not found.
{{#if: |{{{coordinates_footnotes}}} }}
}} |
| Public transit access | {{{publictransit}}} |
| Website | {{{website}}} |
| {{#if:{{{footnotes}}} | {{{footnotes}}} }} | |
| {{{embedded}}} | |
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox casino/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default = }}{{safesubst:#switch:
|no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = |#default =
}}
Copy and paste the following at the start of the casino article:
<syntaxhighlight lang="wikitext" style="overflow:auto;">
| Infobox casino/doc | |
|---|---|
{{#if: |
Lua error in Module:Location_map at line 415: attempt to index field 'wikibase' (a nil value).
}} | |
| Closing date | > |
| Coordinates | {{#if: |
{{#if: |{{{coordinates_footnotes}}} }}
}} |
| {{#if: | | |
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox casino/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default = }}{{safesubst:#switch:
|no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = |#default =
}} </syntaxhighlight>
<templatedata> { "params": { "demolition_date": { "aliases": [ "demolition_date ", "date_demolished", "demolished_date" ], "label": "demolition_date", "type": "string" }, "embed": {}, "casino": {}, "name": {}, "native_name": {}, "logo": {}, "logo_size": {}, "logo_alt": {}, "logo_caption": {}, "image": {}, "image_size": {}, "image_alt": {}, "image_caption": {}, "caption": {}, "pushpin_map": {}, "coordinates": {}, "pushpin_label_position": {}, "pushpin_map_alt": {}, "pushpin_mapsize": {}, "pushpin_map_caption": {}, "map_caption": {}, "location": {}, "address": {}, "date_opened": {}, "date_closed": {}, "theme": {}, "rooms": {}, "space_gaming": {}, "shows": {}, "attractions": {}, "notable_restaurants": {}, "casino_type": {}, "owner": {}, "license_holder": {}, "architect": {}, "names_pre": {}, "renovations": {}, "coordinates_footnotes": {}, "publictransit": {}, "website": {}, "footnotes": {}, "nrhp": {}, "embedded": {}, "module": {} }, "paramOrder": [ "embed", "casino", "name", "native_name", "logo", "logo_size", "logo_alt", "logo_caption", "image", "image_size", "image_alt", "image_caption", "caption", "pushpin_map", "coordinates", "pushpin_label_position", "pushpin_map_alt", "pushpin_mapsize", "pushpin_map_caption", "map_caption", "location", "address", "date_opened", "date_closed", "demolition_date", "theme", "rooms", "space_gaming", "shows", "attractions", "notable_restaurants", "casino_type", "owner", "license_holder", "architect", "names_pre", "renovations", "coordinates_footnotes", "publictransit", "website", "footnotes", "nrhp", "embedded", "module" ] } </templatedata>
Example
| Bellagio | |
|---|---|
| Photograph of the Bellagio casino, Las Vegas | |
{{#if:United States Las Vegas Strip |
Lua error in Module:Location_map at line 411: 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 | {{#if:Lua error: callParserFunction: function "#coordinates" was not found. |Lua error: callParserFunction: function "#coordinates" was not found.
{{#if: |{{{coordinates_footnotes}}} }}
}} |
| Website | Bellagio.com |
| {{#if: | | |
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox casino/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default = }}{{safesubst:#switch:
|no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = |#default =
}} For the Bellagio (resort): <syntaxhighlight lang="wikitext" style="overflow:auto;">
| Bellagio | |
|---|---|
| Photograph of the Bellagio casino, Las Vegas | |
{{#if:United States Las Vegas Strip |
Lua error in Module:Location_map at line 411: 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 | {{#if:Lua error: callParserFunction: function "#coordinates" was not found. |Lua error: callParserFunction: function "#coordinates" was not found.
{{#if: |{{{coordinates_footnotes}}} }}
}} |
| Website | Bellagio.com |
| {{#if: | | |
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox casino/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default = }}{{safesubst:#switch:
|no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = |#default =
}} </syntaxhighlight>
Parameter descriptions
Required parameters are shown in bold italics.
| Field | Description | Values |
| name | Name of the casino | wikitext (can contain links) |
| logo | Image of the shopping centre | filename |
| logo_size | Width of image as a numerical value (omit "px" suffix) | |
| logo_alt | Alternative text for the logo | text |
| logo_caption | Caption for image (usually blank) | wikitext (can contain links) |
| image | Image of the casino | filename |
| image_size | Width of image as a numerical value (omit "px" suffix) | |
| image_alt | Alternative text for the image | text |
| image_caption | Caption for image | wikitext (can contain links) |
| pushpin_map | Name of a {{Location map}} | see note below |
| pushpin_mapsize | Width of Location map as a numerical value (omit "px" suffix) | |
| pushpin_map_alt | Alternative text for Location map | text |
| pushpin_map_caption | Caption for Location map | wikitext (can contain links) |
| pushpin_label_position | Location of the pushpin label | none, left, right, top, bottom |
| coordinates | Geographic coordinates of location | see note below |
| location | Location of the casino | wikitext (can contain links) e.g. [[Joondalup, Western Australia]], [[Australia]] |
| address | Address of the casino | wikitext (can contain links) |
| date_opened | Date of opening | e.g. 25 January 2007 |
| date_closed | Date casino closed | e.g. 25 January 2007 |
| theme | Current theme of casino | wikitext (can contain links) |
| rooms | Number of rooms expressed as a numerical value | |
| space_gaming | Total gaming space of the casino, expressed as a numerical value | (for best practice, use {{convert}}) |
| shows | Names of notable shows at the casino | |
| attractions | Names of notable attractions at the casino | |
| notable_restaurants | Names of notable restaurants at the casino | |
| casino_type | The type of casino, such as "Land-based", "Riverboat", "Racino", etc. | |
| owner | Name/s of current owner/s | wikitext (can contain links) |
| license_holder | Name of license holder if not the owner of the property | wikitext (can contain links) |
| architect | Name/s of current architect/s | wikitext (can contain links) |
| names_pre | Previous names of the casino | e.g. Harrahs, Adelaide Casino |
| renovations | Years of key renovations undertaken on the casino | |
| publictransit | Information on nearby public transit options | |
| website | Casino's website URL | e.g. [http://www.url.com.au url.com.au] |
| footnotes | Footnotes and citations for information within infobox | wikitext (can contain links) |
| embedded | Embed another infobox with such capability like {{designation list}} and {{infobox NRHP}} |
Coordinates
For coordinates, use |{{SAFESUBST:#if:coordinates|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, either in the
|{{SAFESUBST:#if:coordinates|coordinates=}}parameter or on the page's Wikidata item - It has not been turned off by setting
|{{SAFESUBST:#if:mapframe|mapframe=}}no
The following optional parameters can then be used to adjust the map
- Basic {{Infobox mapframe}} parameters:{{#if:||
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no{{#if:yes|, but also modified by onByDefault}}
- Internal onByDefault parameter: yes
- {{#if:||mapframe-coordinates or mapframe-coord or}} coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g.
|{{SAFESUBST:#if:coord|coord=}}. Default: coordinates from Wikidata d:Property:P625{{Coord|12.34|N|56.78|E}} - mapframe-caption – Caption for the map. Default: blank (or if
|{{SAFESUBST:#if:mapframe-geomask|mapframe-geomask=}}is set, "Location in geomask's label") - mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a
{{maplink}}template, or another template that generates a mapframe map, or an image name. If used, most mapframe parameters will be ignored. Default: not specified}} - {{#if:|id|mapframe-id or id or qid}} – Id (Q-number) of Wikidata item to use. Default: item for current page
- {{#if:||mapframe-}}wikidata – Set to <syntaxhighlight lang="text" class="" style="" inline="1">yes</syntaxhighlight> to show all shape/line features from OpenStreetMap. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no{{#if:yes|, but also modified by onByDefault}}
- Customise which features are displayed:
- {{#if:||mapframe-}}point – Turn off display of point feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Force point marker to be displayed by setting to <syntaxhighlight lang="text" class="" style="" inline="1">on</syntaxhighlight>. Default: not specified
- {{#if:||mapframe-}}shape – Turn off display of shape feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Force display of shape by setting to <syntaxhighlight lang="text" class="" style="" inline="1">on</syntaxhighlight>. Use an inverse shape (geomask) instead of a regular shape by setting to <syntaxhighlight lang="text" class="" style="" inline="1">inverse</syntaxhighlight>. Default: not specified
- {{#if:||mapframe-}}line – Turn off display of line feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Force display of line by setting to <syntaxhighlight lang="text" class="" style="" inline="1">on</syntaxhighlight>. Default: not specified
- {{#if:||mapframe-}}geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g.
P17for {{#if:P17
| {{#switch:P
| Q | P = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P17) | #default = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (QP17) }}
| {{#if:Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).
| [[d:Special:EntityPage/Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).)]] | (no entity) }}
}}, P131 for {{#if:P131
| {{#switch:P
| Q | P = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P131) | #default = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (QP131) }}
| {{#if:Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).
| [[d:Special:EntityPage/Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).)]] | (no entity) }}
}}). Default: not specified
- {{#if:||mapframe-}}switcher – set to <syntaxhighlight lang="text" class="" style="" inline="1">auto</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">geomasks</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">zooms</syntaxhighlight> to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
- <syntaxhighlight lang="text" class="" style="" inline="1">auto</syntaxhighlight> – switch geomasks found in {{#if:P276
- {{#if:||mapframe-}}switcher – set to <syntaxhighlight lang="text" class="" style="" inline="1">auto</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">geomasks</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">zooms</syntaxhighlight> to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
| {{#switch:P
| Q | P = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P276) | #default = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (QP276) }}
| {{#if:Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).
| [[d:Special:EntityPage/Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).)]] | (no entity) }}
}} and {{#if:P131 | {{#switch:P
| Q | P = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P131) | #default = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (QP131) }}
| {{#if:Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).
| [[d:Special:EntityPage/Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).)]] | (no entity) }}
}} statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.
- <syntaxhighlight lang="text" class="" style="" inline="1">geomasks</syntaxhighlight> – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the {{#if:||mapframe-}}geomask parameter
- <syntaxhighlight lang="text" class="" style="" inline="1">zooms</syntaxhighlight> – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of <syntaxhighlight lang="text" class="" style="" inline="1">3</syntaxhighlight>), "zoomed out" is <syntaxhighlight lang="text" class="" style="" inline="1">1</syntaxhighlight>, and "zoomed midway" is the average
- Other optional parameters:
- {{#if:||mapframe-}}frame-width or {{#if:||mapframe-}}width – Frame width. Default: 270
- {{#if:||mapframe-}}frame-height or {{#if:||mapframe-}}height – Frame height. Default: 200
- {{#if:||mapframe-}}shape-fill – Color used to fill shape features. Default: #606060
- {{#if:||mapframe-}}shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.1
- {{#if:||mapframe-}}stroke-color or {{#if:||mapframe-}}stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- {{#if:||mapframe-}}line-stroke-color or {{#if:||mapframe-}}line-stroke-colour – Color of line features. Default: #ff0000
- {{#if:||mapframe-}}shape-stroke-color or {{#if:||mapframe-}}shape-stroke-colour – Color of outlines of shape features. Default: #ff0000
- {{#if:||mapframe-}}stroke-width – Width of line features, and outlines of shape features. Default: 2
- {{#if:||mapframe-}}shape-stroke-width – Width of outlines of shape features. Default: 2
- {{#if:||mapframe-}}line-stroke-width – Width of line features. Default: 5
- {{#if:||mapframe-}}marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: casino
- Can also be set to <syntaxhighlight lang="text" class="" style="" inline="1">blank</syntaxhighlight> to override any default marker symbol
- {{#if:||mapframe-}}marker-color or {{#if:||mapframe-}}marker-colour – Background color for the marker. Default: #5E74F3
- {{#if:||mapframe-}}geomask-stroke-color or {{#if:||mapframe-}}geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
- {{#if:||mapframe-}}geomask-stroke-width – Width of outline of geomask shape. Default: 1
- {{#if:||mapframe-}}geomask-fill – Color used to fill outside geomask features. Default: #606060
- {{#if:||mapframe-}}geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.25
- {{#if:||mapframe-}}zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
- {{#if:||mapframe-}}length_km or {{#if:||mapframe-}}length_mi or {{#if:||mapframe-}}area_km2 or {{#if:||mapframe-}}area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified / not specified / not specified / not specified
- {{#if:||mapframe-}}frame-coordinates or {{#if:||mapframe-}}frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
- {{#if:||mapframe-}}type – Set the type of the object, with the same usage as {{coord}}. Default: landmark
- {{#if:||mapframe-}}population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified
{{#if:|
- Deprecated parameters
- Template:Gray – Alternate latitude coordinate for initial placement of map; default is derived from item coordinates
- Template:Gray – Alternate longitude coordinate for initial placement of map; default is derived from item coordinates
}}
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
{{#ifexist: Category:Pages using infobox casino with unknown parameters|
- {{#if:|{{{name}}}|Category:Pages using infobox casino with unknown parameters}} (0)}}{{#ifexist: Category:Pages using infobox casino with deprecated parameters|
- {{#if:|{{{name}}}|Category:Pages using infobox casino with deprecated parameters}} (0)}}{{#ifexist: Category:Pages using infobox casino with conflicting parameters|
- {{#if:|{{{name}}}|Category:Pages using infobox casino with conflicting parameters}} (0)}}
- {{#if:|{{{name}}}|Category:Pages using infobox casino with embed option}} (2)
See also