Template:Market: Difference between revisions

From Happy Paws Travel Wiki
Jump to navigation Jump to search
No edit summary
m (Protected "Template:Market" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
     <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" type="button" data-toggle="collapse" data-target="#details-{{{Name}}}" aria-expanded="false" aria-controls="details-{{{Name}}}">
     <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}}}">
       Show Details
       Show Details
     </htmltag>
     </htmltag>
     <div class="collapse" id="details-{{{Name}}}">
     <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> <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 37: Line 37:
* '''Image''': URL of the image.
* '''Image''': URL of the image.
* '''Address''': The address of the market.
* '''Address''': The address of the market.
* '''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 57:
| 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 100: Line 102:
             "label": "Address",
             "label": "Address",
             "description": "The address of the market.",
             "description": "The address of the market.",
            "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:33, 29 June 2024


Template Documentation

This template is used to display information about pet-friendly markets in a card format.

Parameters

  • Name: The name of the market.
  • Location: The location of the market.
  • Description: A brief description of the market.
  • Image: URL of the image.
  • Address: The address of the market.
  • 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.
  • PetPolicy: Pet policy of the market.
  • Facilities: Available facilities at the location.

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

{{Markets
| Name = Example Market
| Location = Bangkok
| Description = A large, bustling market known for its pet-friendly environment.
| 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 = 8:00 AM - 10:00 PM
| Fees = Free entry
| PetPolicy = Pets must be on a leash
| Facilities = Parking, restrooms, food stalls
}}

TemplateData

Template to display information about pet-friendly markets.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
NameName

The name of the market.

Stringrequired
LocationLocation

The location of the market.

Stringrequired
DescriptionDescription

A brief description of the market.

Stringrequired
ImageImage

URL of the image.

Stringoptional
AddressAddress

The address of the market.

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
Pet PolicyPetPolicy

Pet policy of the market.

Stringoptional
FacilitiesFacilities

Available facilities at the location.

Stringoptional