Template:Book destination: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 23: | Line 23: | ||
<div class="vw-book-grid"> | <div class="vw-book-grid"> | ||
{{#if:{{Destination affiliate/{{{destination}}}|hotel1}}| | <!-- LODGING --> | ||
{{#if: | |||
{{Destination affiliate/{{{destination}}}|hotel1}} | |||
{{Destination affiliate/{{{destination}}}|hotel2}} | |||
| | |||
<div class="vw-book-item"> | <div class="vw-book-item"> | ||
<div class="vw-book-item-title"> | |||
Places to stay | |||
</div> | |||
<div class="vw-book-item-text"> | |||
Compare hotels and other accommodations for your trip. | |||
</div> | |||
{{#if:{{Destination affiliate/{{{destination}}}|hotel1}}| | |||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
[{{Destination affiliate/{{{destination}}}|hotel1}} | [{{Destination affiliate/{{{destination}}}|hotel1}} | ||
{{Destination affiliate/{{{destination}}}|hotel1_label}}] | {{Destination affiliate/{{{destination}}}|hotel1_label}}] | ||
</div> | </div> | ||
}} | |||
{{#if:{{Destination affiliate/{{{destination}}}|hotel2}}| | {{#if:{{Destination affiliate/{{{destination}}}|hotel2}}| | ||
| Line 43: | Line 56: | ||
}} | }} | ||
<!-- ACTIVITIES --> | |||
{{#if:{{Destination affiliate/{{{destination}}}|activities}}| | {{#if:{{Destination affiliate/{{{destination}}}|activities}}| | ||
<div class="vw-book-item"> | <div class="vw-book-item"> | ||
<div class="vw-book-item-title">Things to do</div> | |||
<div class="vw-book-item-text">Find tours, tickets and experiences.</div> | <div class="vw-book-item-title"> | ||
Things to do | |||
</div> | |||
<div class="vw-book-item-text"> | |||
Find tours, tickets and experiences. | |||
</div> | |||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
| Line 56: | Line 76: | ||
}} | }} | ||
<!-- TRANSPORTATION --> | |||
{{#if:{{Destination affiliate/{{{destination}}}|cars}}| | {{#if:{{Destination affiliate/{{{destination}}}|cars}}| | ||
<div class="vw-book-item"> | <div class="vw-book-item"> | ||
<div class="vw-book-item-title">Getting around</div> | |||
<div class="vw-book-item-text">Compare transportation options for your trip.</div> | <div class="vw-book-item-title"> | ||
Getting around | |||
</div> | |||
<div class="vw-book-item-text"> | |||
Compare transportation options for your trip. | |||
</div> | |||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
Revision as of 02:36, 15 October 2026
Usage
Articles use only the destination ID:
{{Book destination
|destination=VA-WILLIAMSBURG
|name=Williamsburg
}}
Affiliate URLs are stored separately under destination records such as:
Template:Destination affiliate/VA-WILLIAMSBURG
The article writer should never insert affiliate URLs directly.