Template:PetFriendlyCafesAndRestaurants: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
<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> <htmltag tagname="a" href="{{{ | {{#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 cafe or restaurant. | * '''Address''': The address of the cafe or restaurant. | ||
* ''' | * '''GoogleMapsURL''': URL of the Google Maps link. | ||
* '''Phone''': Contact phone number. | * '''Phone''': Contact phone number. | ||
* '''Line''': Line contact information. | * '''Line''': Line contact information. | ||
| Line 57: | 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 105: | Line 105: | ||
"required": false | "required": false | ||
}, | }, | ||
" | "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 pet-friendly cafes and restaurants in a card format.
Parameters
- Name: The name of the cafe or restaurant.
- Location: The location of the cafe or restaurant.
- Description: A brief description of the cafe or restaurant.
- Image: URL of the image.
- Address: The address of the cafe or restaurant.
- GoogleMapsURL: URL of the Google Maps link.
- Phone: Contact phone number.
- Line: Line contact information.
- Website: Website URL.
- Facebook: Facebook URL.
- Instagram: Instagram URL.
- Hours: Operating hours.
- Menu: Highlights of the menu.
- PetPolicy: Pet policy of the cafe or restaurant.
- Facilities: Available facilities at the location.
To use this template, add the following code to your page and fill in the parameters:
{{PetFriendlyCafesAndRestaurants
| Name = Example Cafe
| Location = Bangkok
| Description = A cozy cafe with a pet-friendly environment and a great menu.
| 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
| Menu = Coffee, pastries, salads
| PetPolicy = Pets must be on a leash
| Facilities = Outdoor seating, water bowls for pets
}}
TemplateData
Template to display information about pet-friendly cafes and restaurants.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | Name | The name of the cafe or restaurant. | String | required |
| Location | Location | The location of the cafe or restaurant. | String | required |
| Description | Description | A brief description of the cafe or restaurant. | String | required |
| Image | Image | URL of the image. | String | optional |
| Address | Address | The address of the cafe or restaurant. | String | optional |
| Google Maps | GoogleMapsURL | URL of the Google Maps link. | String | optional |
| Phone | Phone | Contact phone number. | String | optional |
| Line | Line | Line contact information. | String | optional |
| Website | Website | Website URL. | String | optional |
Facebook | Facebook URL. | String | optional | |
Instagram | Instagram URL. | String | optional | |
| Hours | Hours | Operating hours. | String | optional |
| Menu | Menu | Highlights of the menu. | String | optional |
| Pet Policy | PetPolicy | Pet policy of the cafe or restaurant. | String | optional |
| Facilities | Facilities | Available facilities at the location. | String | optional |