Template:PartOf
From CruisersWiki
(Difference between revisions)
Line 6: | Line 6: | ||
|test={{hasText|Category:{{{1}}}}} | |test={{hasText|Category:{{{1}}}}} | ||
|then={{if | |then={{if | ||
- | |test={{IsNs|Category}} | + | | test={{IsNs|Category}} |
- | |then={{if | + | | then={{if |
| test={{{top|}}} | | test={{{top|}}} | ||
| else=Parent is [[:Category:{{{1|}}}]].<br /><br /> | | else=Parent is [[:Category:{{{1|}}}]].<br /><br /> | ||
}}Main article is [[{{PAGENAME}}]]. | }}Main article is [[{{PAGENAME}}]]. | ||
- | |else={{PartOf bar|{{{1}}}}} | + | | else={{PartOf bar|{{{1}}}}} |
- | }}{?|test={{{top|}}}||[[Category:{{{1}}}]]}} | + | }}{{?|test={{{top|}}}||[[Category:{{{1}}}]]}} |
- | |else={{CreateCatPartOf/link|{{{1}}}}}[[Category:Articles needing PartOf category]] | + | | else={{CreateCatPartOf/link|{{{1}}}}}[[Category:Articles needing PartOf category]] |
}} | }} | ||
}} | }} |
Revision as of 17:59, 14 February 2016
- Parameters
- 1 - name of an upper level region