Template:SwimmingActivities: Difference between revisions

No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="card" style="width: 18rem; margin-bottom: 1rem;">
<div class="card" style="width: 18rem; margin-bottom: 1rem;">
   <img class="card-img-top" src="{{{Image|/path/to/default_swimming_image.jpg}}}" alt="Image of {{{Name|Unknown}}}">
   <htmltag tagname="img" class="card-img-top" src="{{{Image|https://travel.happypaws.asia/images/1/1e/DefaultSwimmingActivities.jpg}}}" alt="Image of {{{Name|Unknown}}}"></htmltag>
   <div class="card-body">
   <div class="card-body">
     <h5 class="card-title">{{{Name|No Name Provided}}}</h5>
     <h5 class="card-title">{{{Name|No Name Provided}}}</h5>
     <h6 class="card-subtitle mb-2 text-muted">{{{Location|No Location Provided}}}</h6>
     <h6 class="card-subtitle mb-2 text-muted">{{{Location|No Location Provided}}}</h6>
     <p class="card-text">{{{Description|No Description Available}}}</p>
     <p class="card-text">{{{Description|No Description Available}}}</p>
 
     <htmltag tagname="button" class="btn btn-primary places-button" type="button" data-toggle="collapse" data-target="#details-Name" aria-expanded="false" aria-controls="details-Name">
     <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#details-test" aria-expanded="false" aria-controls="details-test">
       Show Details
       Show Details
     </button>
     </htmltag>
     <div class="collapse" id="details-test">
     <div class="collapse" id="details-Name">
       <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> {{{Address}}}</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>}}
         {{#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> <a href="https://line.me/R/ti/p/{{{Line}}}" target="_blank">{{{Line}}}</a></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: {{{Website|}}}|<li class="list-group-item"><i class="fas fa-globe"></i> <strong>Website:</strong> <a href="{{{Website}}}" target="_blank">{{{Website}}}</a></li>}}
         {{#if: {{{Website|}}}|<li class="list-group-item"><i class="fas fa-globe"></i> <strong>Website:</strong> <htmltag tagname="a" href="{{{Website}}}" target="_blank">{{{Website}}}</htmltag></li>}}
         {{#if: {{{Facebook|}}}|<li class="list-group-item"><i class="fab fa-facebook"></i> <strong>Facebook:</strong> <a href="{{{Facebook}}}" target="_blank">{{{Facebook}}}</a></li>}}
         {{#if: {{{Facebook|}}}|<li class="list-group-item"><i class="fab fa-facebook"></i> <strong>Facebook:</strong> <htmltag tagname="a" href="{{{Facebook}}}" target="_blank">{{{Facebook}}}</htmltag></li>}}
         {{#if: {{{Instagram|}}}|<li class="list-group-item"><i class="fab fa-instagram"></i> <strong>Instagram:</strong> <a href="{{{Instagram}}}" target="_blank">{{{Instagram}}}</a></li>}}
         {{#if: {{{Instagram|}}}|<li class="list-group-item"><i class="fab fa-instagram"></i> <strong>Instagram:</strong> <htmltag tagname="a" href="{{{Instagram}}}" target="_blank">{{{Instagram}}}</htmltag></li>}}
         {{#if: {{{Hours|}}}|<li class="list-group-item"><i class="fas fa-clock"></i> <strong>Hours:</strong> {{{Hours}}}</li>}}
         {{#if: {{{Hours|}}}|<li class="list-group-item"><i class="fas fa-clock"></i> <strong>Hours:</strong> {{{Hours}}}</li>}}
         {{#if: {{{Fees|}}}|<li class="list-group-item"><i class="fas fa-dollar-sign"></i> <strong>Fees:</strong> {{{Fees}}}</li>}}
         {{#if: {{{Fees|}}}|<li class="list-group-item"><i class="fas fa-dollar-sign"></i> <strong>Fees:</strong> {{{Fees}}}</li>}}
Line 26: Line 25:
</div>
</div>
</includeonly>
</includeonly>


<noinclude>
<noinclude>
Line 38: Line 36:
* '''Image''': URL of the image.
* '''Image''': URL of the image.
* '''Address''': The address of the activity location.
* '''Address''': The address of the activity location.
* '''GoogleMapsURL''': URL link to the location on Google Maps.
* '''Phone''': Contact phone number.
* '''Phone''': Contact phone number.
* '''Line''': Line contact information.
* '''Line''': Line contact information.
Line 56: Line 55:
| Image = URL_of_image
| Image = URL_of_image
| Address = 123 Example St, Bangkok
| Address = 123 Example St, Bangkok
| GoogleMapsURL = https://maps.google.com/?q=123+Example+St,+Bangkok
| Phone = 123-456-7890
| Phone = 123-456-7890
| Line = example
| Line = example
Line 99: Line 99:
             "label": "Address",
             "label": "Address",
             "description": "The address of the activity location.",
             "description": "The address of the activity location.",
            "type": "string",
            "required": false
        },
        "GoogleMapsURL": {
            "label": "Google Maps URL",
            "description": "URL link to the location on Google Maps.",
             "type": "string",
             "type": "string",
             "required": false
             "required": false

Latest revision as of 09:35, 29 June 2024


Template Documentation

This template is used to display information about swimming activities in a card format.

Parameters

  • Name: The name of the swimming activity.
  • Location: The location of the swimming activity.
  • Description: A brief description of the activity.
  • Image: URL of the image.
  • Address: The address of the activity location.
  • GoogleMapsURL: URL link to the location on Google Maps.
  • Phone: Contact phone number.
  • Line: Line contact information.
  • Website: Website URL.
  • Facebook: Facebook URL.
  • Instagram: Instagram URL.
  • Hours: Operating hours.
  • Fees: Entry or participation fees, including details.
  • Facilities: Available facilities at the location.

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

{{SwimmingActivities
| Name = Example Swimming Pool
| Location = Bangkok
| Description = A great place for dogs to swim and enjoy.
| Image = URL_of_image
| Address = 123 Example St, Bangkok
| GoogleMapsURL = https://maps.google.com/?q=123+Example+St,+Bangkok
| Phone = 123-456-7890
| Line = example
| Website = example.com
| Facebook = https://www.facebook.com/example
| Instagram = https://www.instagram.com/example
| Hours = 9:00 AM - 6:00 PM
| Fees = Pool: 0-5 kg is 300 Baht, 6-10 kg is 500 Baht
| Facilities = Pool, changing rooms, snack bar
}}

TemplateData

Template to display information about swimming activities for pets.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
NameName

The name of the swimming activity.

Stringrequired
LocationLocation

The location of the swimming activity.

Stringrequired
DescriptionDescription

A brief description of the activity.

Stringrequired
ImageImage

URL of the image.

Stringoptional
AddressAddress

The address of the activity location.

Stringoptional
Google Maps URLGoogleMapsURL

URL link to the location on Google Maps.

Stringoptional
PhonePhone

Contact phone number.

Stringoptional
LineLine

Line contact information.

Stringoptional
WebsiteWebsite

Website URL.

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