Template:PartOf

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
 
(17 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={{?|test={{{noBreadCrumb|}}}||{{Category:{{{1}}}| {{!}} }}}}[[Category:{{{1}}}]]
+
         |then={{if
-
        |else=[{{fullurl:Category:{{{1}}}|action=edit&preload=Template:PartOf/preload&editintro=Template:PartOf/editintro&section=new&nosummary=true}} {{red|Create category hierarchy to {{{1}}}}}] [[Category:Articles needing PartOf category]]
+
            | test={{IsNs|Category}}
 +
            | then=__HIDDENCAT__{{if
 +
                | test={{{top|}}}
 +
                | else=Parent is [[:Category:Part of {{{1|}}}]].<br /><br />
 +
                }}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)
Personal tools
advertisement
Friends of Cruisers Wiki