Template:HotelsAndResorts: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
     <div class="collapse" id="details-{{CURRENTTIMESTAMP}}">
     <div class="collapse" id="details-{{CURRENTTIMESTAMP}}">
       <ul class="list-group list-group-flush">
       <ul class="list-group list-group-flush">
         {{#if: {{{Address|}}}|<li class="list-group-item"><i class="fas fa-map-marker-alt"></i> <strong>Address:</strong> <htmltag tagname="a" href="{{{GoogleMaps}}}" target="_blank">{{{Address}}}</htmltag></li>|<li class="list-group-item"><i class="fas fa-map-marker-alt"></i> <strong>Address:</strong> <a href="{{{GoogleMaps}}}" target="_blank">Google Maps</a></li>}}
         {{#if: {{{Address|}}}|<li class="list-group-item"><i class="fas fa-map-marker-alt"></i> <strong>Address:</strong> <htmltag tagname="a" href="{{{GoogleMapsURL}}}" target="_blank">{{{Address}}}</htmltag></li>|<li class="list-group-item"><i class="fas fa-map-marker-alt"></i> <strong>Address:</strong> <a href="{{{GoogleMapsURL}}}" target="_blank">Google Maps</a></li>}}
         {{#if: {{{Phone|}}}|<li class="list-group-item"><i class="fas fa-phone"></i> <strong>Phone:</strong> {{{Phone}}}</li>}}
         {{#if: {{{Phone|}}}|<li class="list-group-item"><i class="fas fa-phone"></i> <strong>Phone:</strong> {{{Phone}}}</li>}}
         {{#if: {{{Line|}}}|<li class="list-group-item"><i class="fab fa-line"></i> <strong>Line:</strong> <htmltag tagname="a" href="https://line.me/R/ti/p/{{{Line}}}" target="_blank">{{{Line}}}</htmltag></li>}}
         {{#if: {{{Line|}}}|<li class="list-group-item"><i class="fab fa-line"></i> <strong>Line:</strong> <htmltag tagname="a" href="https://line.me/R/ti/p/{{{Line}}}" target="_blank">{{{Line}}}</htmltag></li>}}
Line 40: Line 40:
* '''Image''': URL of the image.
* '''Image''': URL of the image.
* '''Address''': The address of the place.
* '''Address''': The address of the place.
* '''GoogleMaps''': URL of the Google Maps link.
* '''GoogleMapsURL''': URL of the Google Maps link.
* '''Phone''': Contact phone number.
* '''Phone''': Contact phone number.
* '''Line''': Line contact information.
* '''Line''': Line contact information.
Line 63: Line 63:
| Image = URL_of_image
| Image = URL_of_image
| Address = 123 Example Rd, Bangkok
| Address = 123 Example Rd, Bangkok
| GoogleMaps = https://maps.google.com/?q=123+Example+Rd,+Bangkok
| GoogleMapsURL = https://maps.google.com/?q=123+Example+Rd,+Bangkok
| Phone = 123-456-7890
| Phone = 123-456-7890
| Line = example
| Line = example
Line 114: Line 114:
             "required": false
             "required": false
         },
         },
         "GoogleMaps": {
         "GoogleMapsURL": {
             "label": "Google Maps",
             "label": "Google Maps",
             "description": "URL of the Google Maps link.",
             "description": "URL of the Google Maps link.",

Latest revision as of 09:37, 29 June 2024


Template Documentation

This template is used to display information about hotels and resorts in a card format.

Parameters

  • Name: The name of the hotel or resort.
  • Location: The location of the hotel or resort.
  • Description: A brief description of the place.
  • Image: URL of the image.
  • Address: The address of the place.
  • GoogleMapsURL: URL of the Google Maps link.
  • Phone: Contact phone number.
  • Line: Line contact information.
  • Website: Website URL.
  • Booking: Link to the Booking.com page.
  • Agoda: Link to the Agoda page.
  • Airbnb: Link to the Airbnb page.
  • Facebook: Facebook URL.
  • Instagram: Instagram URL.
  • Hours: Operating hours.
  • Fees: Entry or participation fees, including details.
  • Facilities: Available facilities at the location.
  • PetLimitations: Limitations regarding pets (amount, types, sizes, breeds).

To use this template, add the following code to your page and fill in the parameters:

{{HotelsAndResorts
| Name = Example Hotel
| Location = Bangkok
| Description = A luxurious hotel with pet-friendly policies.
| Image = URL_of_image
| Address = 123 Example Rd, Bangkok
| GoogleMapsURL = https://maps.google.com/?q=123+Example+Rd,+Bangkok
| Phone = 123-456-7890
| Line = example
| Website = example.com
| Booking = https://www.booking.com/example
| Agoda = https://www.agoda.com/example
| Airbnb = https://www.airbnb.com/example
| Facebook = https://www.facebook.com/example
| Instagram = https://www.instagram.com/example
| Hours = 24/7
| Fees = 1000 Baht per night
| Facilities = Pool, spa, free breakfast
| PetLimitations = Up to 2 dogs, no cats, no large breeds
}}

TemplateData

Template to display information about hotels and resorts.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
NameName

The name of the hotel or resort.

Stringrequired
LocationLocation

The location of the hotel or resort.

Stringrequired
DescriptionDescription

A brief description of the place.

Stringrequired
ImageImage

URL of the image.

Stringoptional
AddressAddress

The address of the place.

Stringoptional
Google MapsGoogleMapsURL

URL of the Google Maps link.

Stringoptional
PhonePhone

Contact phone number.

Stringoptional
LineLine

Line contact information.

Stringoptional
WebsiteWebsite

Website URL.

Stringoptional
BookingBooking

Link to the Booking.com page.

Stringoptional
AgodaAgoda

Link to the Agoda page.

Stringoptional
AirbnbAirbnb

Link to the Airbnb page.

Stringoptional
FacebookFacebook

Facebook URL.

Stringoptional
InstagramInstagram

Instagram URL.

Stringoptional
HoursHours

Operating hours.

Stringoptional
FeesFees

Entry or participation fees, including details.

Stringoptional
FacilitiesFacilities

Available facilities at the location.

Stringoptional
Pet LimitationsPetLimitations

Limitations regarding pets (amount, types, sizes, breeds).

Stringoptional