|
|
| (3 intermediate revisions by one other user not shown) |
| Line 1: |
Line 1: |
| <includeonly> | | <includeonly>{{#ifexist:Template:Destination affiliate/{{{destination|}}} |
| {{#ifexist:Template:Destination affiliate/{{{destination|}}} | | |{{Book destination record |
| | | |record={{{destination}}} |
| |<!-- DESTINATION RECORD EXISTS --> | | |name={{{name|}}} |
| | | }} |
| {{#if:
| | |{{#ifexist:Template:Destination affiliate/default |
| {{Destination affiliate/{{{destination}}}|hotel1}}
| | |{{Book destination record |
| {{Destination affiliate/{{{destination}}}|hotel2}}
| | |record=default |
| {{Destination affiliate/{{{destination}}}|activities}}
| | |name={{{name|}}} |
| {{Destination affiliate/{{{destination}}}|cars}}
| | }} |
| | | }} |
| |
| | }}</includeonly> |
| <div class="vw-book-destination">
| |
| | |
| <div class="vw-book-kicker">
| |
| PLAN YOUR VISIT
| |
| </div>
| |
| | |
| <div class="vw-book-title">
| |
| Plan a trip to {{{name|{{Destination affiliate/{{{destination}}}|name}}}}}
| |
| </div>
| |
| | |
| <div class="vw-book-grid">
| |
| | |
| <!-- LODGING -->
| |
| {{#if:
| |
| {{Destination affiliate/{{{destination}}}|hotel1}}
| |
| {{Destination affiliate/{{{destination}}}|hotel2}}
| |
| | |
| |
| |
| <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">
| |
| [{{Destination affiliate/{{{destination}}}|hotel1}}
| |
| {{Destination affiliate/{{{destination}}}|hotel1_label}}] | |
| </div>
| |
| }}
| |
| | |
| {{#if:{{Destination affiliate/{{{destination}}}|hotel2}}| | |
| <div class="vw-commerce-button">
| |
| [{{Destination affiliate/{{{destination}}}|hotel2}}
| |
| {{Destination affiliate/{{{destination}}}|hotel2_label}}]
| |
| </div>
| |
| }}
| |
| | |
| </div>
| |
| }}
| |
| | |
| <!-- ACTIVITIES -->
| |
| {{#if:{{Destination affiliate/{{{destination}}}|activities}}|
| |
| <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-commerce-button">
| |
| [{{Destination affiliate/{{{destination}}}|activities}}
| |
| {{Destination affiliate/{{{destination}}}|activities_label}}]
| |
| </div>
| |
| | |
| </div>
| |
| }}
| |
| | |
| <!-- TRANSPORTATION -->
| |
| {{#if:{{Destination affiliate/{{{destination}}}|cars}}|
| |
| <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-commerce-button">
| |
| [{{Destination affiliate/{{{destination}}}|cars}}
| |
| {{Destination affiliate/{{{destination}}}|cars_label}}]
| |
| </div>
| |
| | |
| </div>
| |
| }} | |
| | |
| </div>
| |
| | |
| {{Affiliate disclosure}}
| |
| | |
| </div>
| |
| | |
| |<!-- DESTINATION EXISTS BUT HAS NO ACTIVE COMMERCIAL LINKS -->
| |
| }} | |
| | |
| |<!-- NO DESTINATION RECORD -->
| |
| }} | |
| </includeonly> | |
|
| |
|
| <noinclude> | | <noinclude> |
| == Usage == | | == Usage == |
|
| |
| Articles use only the destination ID:
| |
|
| |
| <pre> | | <pre> |
| {{Book destination | | {{Book destination |
| Line 120: |
Line 20: |
| }} | | }} |
| </pre> | | </pre> |
| | | A destination-specific record is preferred. If it does not exist, the sitewide default affiliate record is used. |
| Affiliate URLs are stored separately under destination records such as:
| |
| | |
| <pre>
| |
| Template:Destination affiliate/VA-WILLIAMSBURG
| |
| </pre>
| |
| | |
| The article writer should never insert affiliate URLs directly.
| |
| </noinclude> | | </noinclude> |
Usage
{{Book destination
|destination=VA-WILLIAMSBURG
|name=Williamsburg
}}
A destination-specific record is preferred. If it does not exist, the sitewide default affiliate record is used.