Template:HikingAndNatureTrails: Difference between revisions

no edit summary
(Created page with "<includeonly> <div class="card" style="width: 18rem; margin-bottom: 1rem;"> <htmltag tagname="img" class="card-img-top" src="{{{Image|https://travel.happypaws.asia/images/c/ca/DefaultHikingTrails.jpg}}}" alt="Image of {{{Name|Unknown}}}"></htmltag> <div class="card-body"> <h5 class="card-title">{{{Name|No Name Provided}}}</h5> <h6 class="card-subtitle mb-2 text-muted">{{{Location|No Location Provided}}}</h6> <p class="card-text">{{{Description|No Descript...")
 
No edit summary
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: {{{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: {{{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>}}
Line 19: Line 19:
         {{#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>}}
         {{#if: {{{Difficulty|}}}|<li class="list-group-item"><i class="fas fa-hiking"></i> <strong>Difficulty:</strong> {{{Difficulty}}}</li>}}
         {{#if: {{{Difficulty|}}}|<li class="list-group-item"><i class="fas fa-hiking"></i> <strong>Difficulty:</strong> {{{Difficulty}}}</li>}}
         {{#if: {{{Length|}}}|<li class="list-group-item"><i class="fas fa-road"></i> <strong>Length:</strong> {{{Length}}} km</li>}}
         {{#if: {{{Length|}}}|<li class="list-group-item"><i class="fas fa-ruler"></i> <strong>Length:</strong> {{{Length}}} km</li>}}
        {{#if: {{{GoogleMapsURL|}}}|<li class="list-group-item"><i class="fas fa-map-marked-alt"></i> <strong>Google Maps:</strong> <htmltag tagname="a" href="{{{GoogleMapsURL}}}" target="_blank">View on Google Maps</htmltag></li>}}
       </ul>
       </ul>
     </div>
     </div>
Line 36: Line 37:
* '''Image''': URL of the image.
* '''Image''': URL of the image.
* '''Address''': The address of the trailhead or entry point.
* '''Address''': The address of the trailhead or entry point.
* '''GoogleMapsURL''': URL link to the location on Google Maps.
* '''Phone''': Contact phone number.
* '''Phone''': Contact phone number.
* '''Website''': Website URL.
* '''Website''': Website URL.
Line 54: Line 56:
| Image = URL_of_image
| Image = URL_of_image
| Address = 123 Example Rd, Chiang Mai
| Address = 123 Example Rd, Chiang Mai
| GoogleMapsURL = https://maps.google.com/?q=123+Example+Rd,+Chiang+Mai
| Phone = 123-456-7890
| Phone = 123-456-7890
| Website = example.com
| Website = example.com
Line 97: Line 100:
             "label": "Address",
             "label": "Address",
             "description": "The address of the trailhead or entry point.",
             "description": "The address of the trailhead or entry point.",
            "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