Template:Infobox hotel/doc

From Wikipedia, the free encyclopedia

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.
{{{hotel_name}}}
[[Image:{{{image}}}|{{{image_width}}}px| {{{caption}}} ]]
{{{caption}}}
Hotel facts and statistics
Location {{{location}}}
coordinates {{{coordinates}}}
Opening date {{{opening_date}}}
Closing date {{{closing_date}}}
Developer {{{developer}}}
Architect {{{architect}}}
Management {{{operator}}}
Owner {{{owner}}}
No. of restaurants {{{number_of_restaurants}}}
No. of rooms {{{number_of_rooms}}}
Total floor area {{{floor_area}}}
Parking {{{parking}}}
No. of floors {{{floors}}}
Website {{{website}}}
Footnotes
{{{footnotes}}}
{{Infobox hotel
  | hotel_name =
  | image              =
  | image_width        =
  | caption            =
  | location           =
  | coordinates        =
  | opening_date       =
  | closing_date       =
  | developer          =
  | architect          =
  | operator           =
  | owner              =
  | number_of_restaurants =
  | number_of_rooms    =
  | number_of_suites   =
  | floor_area         =
  | floors             =
  | parking            =
  | website            =
  | footnotes          =
}}

[edit] Template fields

Field Name Required Description Values
hotel_name yes Name of hotel wikitext (can contain links)
image no Image of the hotel filename
image_width no Width of image as a numerical value (without px on the end)
caption no Caption for image wikitext (can contain links)
location no Location of the hotel wikitext (can contain links) Eg;[[Joondalup, Western Australia]], [[Australia]]
coordinates no Geographic coordinates of location Use {{coord}} with display=inline,title.
opening_date no Date of opening Eg; [[25 January]] [[2007]]
closing_date no Date hotel closed Eg; [[25 January]] [[2007]]
developer no Name of original hotel developer wikitext (can contain links)
architect no Name of original architect wikitext (can contain links)
operator no Name of current hotel operator wikitext (can contain links)
owner no Name(s) of current owner(s) wikitext (can contain links)
number_of_rooms no Number of guest rooms (including suites) expressed as a numerical value
number_of_restaurants no Number of restaurants expressed as a numerical value
floor_area no Gross floor area of the hotel, expressed as a numerical value For best practice, use {{convert}} in this field.
floors no Number of floors expressed as a numerical value
parking no Number of parking bays expressed as a numerical value
website no URL [http://www.url.com.au url.com.au]
footnotes no Footnotes and citations for information within infobox wikitext (can contain links)


[edit] Microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article 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.

hCard uses HTML classes including:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "region"
  • "street-address"
  • "vcard"

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

  • "geo"
  • "latitude"
  • "longitude"

Please do not rename or remove these classes.

When giving coordinates, please don't be overly precise.

Languages