Template:IsPartOf: Difference between revisions

From Dive Atlas
(Add Semantic Mediawiki property indicating parent)
(Simplify more!)
 
(6 intermediate revisions by the same user not shown)
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. -->}}</includeonly>
{{#isin:{{{1}}}}}
 
{{#set: Part of={{{1}}}}}
[[Part of::{{{1}}}]]
</includeonly>
<noinclude>
<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 01:11, 6 January 2025