Template:PartOfTopic/doc
This is a documentation subpage for Template:PartOfTopic. It contains usage information, categories and other content that is not part of the original template page. |
This template is used to define which topic a travel topic article pertains to, to create the breadcrumb at the top of the topic page. It will also add the article to a category of the same name, if such a category exists.
Note that this is only for topic guides. Use {{IsPartOf}} for destination articles and {{PartOfItinerary}} for itinerary articles.
To use it, add {{PartOfTopicname parent topic}}
to the bottom of a travel topic page. The name of the topic should normally be one of the existing categories or subcategories in Category:Travel topics. If you use a different topic name, and no category exists for it, then a small Create category link will be placed at the bottom of the article to assist in its creation.
For example: {{PartOfTopic|Driving}}
Optionally, a second parameter can be added for a region. It does not add a breadcrumb to the page, but it adds the page to the category.
For example: {{PartOfTopic|Travel activities|France}}
If you add a non-region as the second parameter (e.g., {{PartOfTopic|Travel activities|Driving}}
), the page will be added to Category:Travel topic needing category. A travel topic cannot be placed in two breadcrumbs trails. However, it is possible to add the page to multiple categories using this template. Simply repeat the template once for each travel topic. The last (lowest on the page) template's category is where the page will appear in the breadcrumb. The others will only generate a category.
See Wikivoyage:Breadcrumb navigation for more information.
Adds a breadcrumb at the top of the topic page to a parent topic article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Topic parent article name | 1 | Identify the topic parent article of the article that this template is added to
| Page name | suggested |
Only specific region article name | 2 | If the article is specific to only a region, you can specify the article name of the applicable region. No breadcrumb will be added to show this.
| Page name | optional |