Template:Book destination: Difference between revisions
Template page
More actions
Created page with "<includeonly> {{#ifexist:Template:Destination affiliate/{{{destination|}}} |<!-- DESTINATION RECORD EXISTS --> {{#if: {{Destination affiliate/{{{destination}}}|hotels}} {{Destination affiliate/{{{destination}}}|activities}} {{Destination affiliate/{{{destination}}}|cars}} | <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>..." |
No edit summary |
||
| Line 5: | Line 5: | ||
{{#if: | {{#if: | ||
{{Destination affiliate/{{{destination}}}| | {{Destination affiliate/{{{destination}}}|hotel1}} | ||
{{Destination affiliate/{{{destination}}}|hotel2}} | |||
{{Destination affiliate/{{{destination}}}|activities}} | {{Destination affiliate/{{{destination}}}|activities}} | ||
{{Destination affiliate/{{{destination}}}|cars}} | {{Destination affiliate/{{{destination}}}|cars}} | ||
| Line 22: | Line 23: | ||
<div class="vw-book-grid"> | <div class="vw-book-grid"> | ||
{{#if:{{Destination affiliate/{{{destination}}}| | {{#if:{{Destination affiliate/{{{destination}}}|hotel1}}| | ||
<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-title">Places to stay</div> | ||
<div class="vw-book-item-text">Compare | <div class="vw-book-item-text">Compare accommodations for your trip.</div> | ||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
[{{Destination affiliate/{{{destination}}}| | [{{Destination affiliate/{{{destination}}}|hotel1}} | ||
{{Destination affiliate/{{{destination}}}|hotel1_label}}] | |||
</div> | </div> | ||
{{#if:{{Destination affiliate/{{{destination}}}|hotel2}}| | |||
<div class="vw-commerce-button"> | |||
[{{Destination affiliate/{{{destination}}}|hotel2}} | |||
{{Destination affiliate/{{{destination}}}|hotel2_label}}] | |||
</div> | |||
}} | |||
</div> | </div> | ||
}} | }} | ||
| Line 36: | Line 47: | ||
<div class="vw-book-item-title">Things to do</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-book-item-text">Find tours, tickets and experiences.</div> | ||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
[{{Destination affiliate/{{{destination}}}|activities}} | [{{Destination affiliate/{{{destination}}}|activities}} | ||
{{Destination affiliate/{{{destination}}}|activities_label}}] | |||
</div> | </div> | ||
</div> | </div> | ||
}} | }} | ||
| Line 45: | Line 59: | ||
<div class="vw-book-item"> | <div class="vw-book-item"> | ||
<div class="vw-book-item-title">Getting around</div> | <div class="vw-book-item-title">Getting around</div> | ||
<div class="vw-book-item-text">Compare | <div class="vw-book-item-text">Compare transportation options for your trip.</div> | ||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
[{{Destination affiliate/{{{destination}}}|cars}} | [{{Destination affiliate/{{{destination}}}|cars}} | ||
{{Destination affiliate/{{{destination}}}|cars_label}}] | |||
</div> | </div> | ||
</div> | </div> | ||
}} | }} | ||
| Line 61: | Line 78: | ||
}} | }} | ||
|<!-- NO DESTINATION RECORD | |<!-- NO DESTINATION RECORD --> | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
| Line 77: | Line 94: | ||
</pre> | </pre> | ||
Affiliate URLs are stored separately under: | Affiliate URLs are stored separately under destination records such as: | ||
<pre> | <pre> | ||
Revision as of 21:19, 1 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.