Template:PartOf
From CruisersWiki
(Difference between revisions)
(9 intermediate revisions not shown) | |||
Line 4: | Line 4: | ||
|test={{IsNs|0}}{{IsNs|Category}} | |test={{IsNs|0}}{{IsNs|Category}} | ||
|then={{if | |then={{if | ||
- | |test={{hasText|Category:{{{1}}}}} | + | |test={{hasText|Category:Part of {{{1}}}}} |
|then={{if | |then={{if | ||
- | |test={{IsNs|Category}} | + | | test={{IsNs|Category}} |
- | |then=Parent | + | | then=__HIDDENCAT__{{if |
- | |else={{ | + | | test={{{top|}}} |
- | }}[[Category:{{{1}}}]] | + | | else=Parent is [[:Category:Part of {{{1|}}}]].<br /><br /> |
- | |else={{CreateCatPartOf/link|{{{1}}}}}[[Category:Articles needing PartOf category]] | + | }}Main article is [[{{{2|}}}]]. |
+ | | else={{PartOf bar|{{{1}}}}} | ||
+ | }}{{?|test={{{top|}}}||[[Category:Part of {{{1}}}]]}} | ||
+ | | else={{CreateCatPartOf/link|{{{1}}}}}[[Category:Articles needing PartOf category]] | ||
}} | }} | ||
}} | }} | ||
|else=[[Category:Articles needing PartOf parameter]] | |else=[[Category:Articles needing PartOf parameter]] | ||
}}{{?|test={{IsNs|0}}|[[Category:All destination articles]]}}</includeonly><noinclude> | }}{{?|test={{IsNs|0}}|[[Category:All destination articles]]}}</includeonly><noinclude> | ||
+ | |||
+ | TEST DON'T USE | ||
;Parameters | ;Parameters | ||
: 1 - name of an upper level region | : 1 - name of an upper level region | ||
+ | : 2 - name of the main article (only for categories) | ||
</noinclude> | </noinclude> |
Latest revision as of 08:16, 16 February 2016
TEST DON'T USE
- Parameters
- 1 - name of an upper level region
- 2 - name of the main article (only for categories)