Template:Book destination: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 33: | Line 33: | ||
{{#if:{{Destination affiliate/{{{destination}}}|hotel1}}| | {{#if:{{Destination affiliate/{{{destination}}}|hotel1}}| | ||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
{{Commerce button | |||
|url={{Destination affiliate/{{{destination}}}|hotel1}} | |||
|label={{Destination affiliate/{{{destination}}}|hotel1_label}} | |||
}} | |||
</div> | |||
}} | }} | ||
{{#if:{{Destination affiliate/{{{destination}}}|hotel2}}| | {{#if:{{Destination affiliate/{{{destination}}}|hotel2}}| | ||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
{{Commerce button | |||
|url={{Destination affiliate/{{{destination}}}|hotel2}} | |||
|label={{Destination affiliate/{{{destination}}}|hotel2_label}} | |||
}} | |||
</div> | |||
}} | }} | ||
| Line 53: | Line 63: | ||
</div> | </div> | ||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
{{Commerce button | |||
|url={{Destination affiliate/{{{destination}}}|activities}} | |||
|label={{Destination affiliate/{{{destination}}}|activities_label}} | |||
}} | |||
</div> | |||
</div> | </div> | ||
| Line 68: | Line 83: | ||
</div> | </div> | ||
<div class="vw-commerce-button"> | <div class="vw-commerce-button"> | ||
{{Commerce button | |||
|url={{Destination affiliate/{{{destination}}}|cars}} | |||
|label={{Destination affiliate/{{{destination}}}|cars_label}} | |||
}} | |||
</div> | |||
</div> | </div> | ||
Revision as of 02:40, 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.