Template:IsPartOf: Difference between revisions

Template page
No edit summary
(Add Semantic Mediawiki property indicating parent)
Line 1: Line 1:
<includeonly>{{#switch:{{NAMESPACE}}|{{ns:0}}|{{ns:14}}={{#if: {{{1}}} |{{#isin:{{{1}}}}}
<includeonly>{{#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. -->}}</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. -->}}</includeonly>
[[Part of::{{{1}}}]]
<noinclude>
<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 18:57, 17 June 2024


{{{1}}}

[view] [edit] [history] [purge] Template documentation

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.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Is part of1

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.

Example
North Africa is part of Africa; Egypt is part of North Africa; Sinai is part of Egypt
Page namerequired