(use parserfunction invocation) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{NAMESPACE}}|{{ns:0}}|{{ns:14}}={{#if: {{{1}}} |{{#isin:{{{1}}}}} | <includeonly> | ||
{{#ifexist:Category:{{{1}}}|[[Category:{{{1}}}]]|[[File:Categorisation-hierarchy-top2down.svg|alt=Create category|15px|link=//diveatlas.org/w/index.php?title={{urlencode:Category:{{{1}}}}}&action=edit&preload=Template:IsPartOf/preload]] [[Category:Articles needing IsPartOf category]]}}|[[Category:Articles needing IsPartOf parameter]]}}| #default =<!-- Don't categorize when not in main (article) space or a category. -->}} | {{#switch:{{NAMESPACE}}|{{ns:0}}|{{ns:14}}={{#if: {{{1}}} |{{#isin:{{{1}}}}} | ||
{{#ifexist:Category:{{{1}}}|[[Category:{{{1}}}]]|[[File:Categorisation-hierarchy-top2down.svg|alt=Create category|15px|link=//diveatlas.org/w/index.php?title={{urlencode:Category:{{{1}}}}}&action=edit&preload=Template:IsPartOf/preload]] [[Category:Articles needing IsPartOf category]]}}|[[Category:Articles needing IsPartOf parameter]]}}| #default =<!-- Don't categorize when not in main (article) space or a category. -->}} | |||
{{#set: Part of={{{1}}}]] | {{#set: Part of={{{1}}}]] | ||
</includeonly> | |||
<noinclude> | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 18:59, 17 June 2024
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template is used to define which region a destination is in, to define the breadcrumb at the top of an article page. It will also, if exists, add the article to a category of the same name.
Note that this is only for destination guides. If you use it on other pages, you'll get breadcrumb menus all right, but you'll mess up other software. Please, don't do that.
It is not needed for breadcrumb navigation on district subpages, but it should be used anyway.
If no category exists for the parameter a small Create category link will be placed at the bottom of the article to assist in creation.
To use it, add {{isPartOf|name of other place}} to the bottom of a destination guide. The name of the other place does not have be in URL-encoded format - spaces are OK.
See Project:Breadcrumb navigation for more information. de:Vorlage:IsIn es:Plantilla:EstáEn fr:Modèle:Dans it:Template:IsIn nl:Sjabloon:IsIn pl:Szablon:Jest w pt:Predefinição:Fica em ro:Format:IsIn ru:Шаблон:В sv:Mall:IsIn
Generation of breadcrumbs for destination article, by noting at the top of the article that the article is a subset of another article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Is part of | 1 | Identify a Wikivoyage article that your article is a part of geographically. Choose the article that represents the smallest available next size up that is available.
| Page name | required |