Template:IsPartOf: Difference between revisions
From Dive Atlas
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> |