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>..." |
Install Virginia.wiki destination-commerce fallback architecture |
||
| (5 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}}} | |||
| | |name={{{name|}}} | ||
}} | |||
|{{#ifexist:Template:Destination affiliate/default | |||
|{{Book destination record | |||
|record=default | |||
|name={{{name|}}} | |||
}} | |||
| | }} | ||
}}</includeonly> | |||
{{# | |||
} | |||
}} | |||
}} | |||
</includeonly> | |||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Book destination | {{Book destination | ||
| Line 76: | Line 20: | ||
}} | }} | ||
</pre> | </pre> | ||
A destination-specific record is preferred. If it does not exist, the sitewide default affiliate record is used. | |||
</noinclude> | </noinclude> | ||
Latest revision as of 06:35, 17 October 2026
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.