Difference between revisions of "Template:Subcategory"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>[[Category:{{#titleparts: {{PAGENAME}}|{{#if: {{{2|}}}|{{{2}}}|-1}}}} {{{1}}}|{{#titleparts: {{PAGENAME}}|{{#if: {{{2|}}}|{{{2}}}|-1}}}}]]</includeonly><noinclude...")
 
m (!sort key definition; *more specific category;)
Line 1: Line 1:
<includeonly>[[Category:{{#titleparts: {{PAGENAME}}|{{#if: {{{2|}}}|{{{2}}}|-1}}}} {{{1}}}|{{#titleparts: {{PAGENAME}}|{{#if: {{{2|}}}|{{{2}}}|-1}}}}]]</includeonly><noinclude>Adds the article to a category which begins with the name of article and is sorted with the rest of the name.
+
<includeonly>[[Category:{{#titleparts: {{PAGENAME}}|{{#if: {{{2|}}}|{{{2}}}|-1}}}} {{{1}}}|{{#titleparts: {{PAGENAME}}||{{#if: {{{2|}}}|{{{2}}}|-1}}}}]]</includeonly><noinclude>Adds the article to a category which begins with the name of article and is sorted with the rest of the name.
  
 
== Parameters ==
 
== Parameters ==
Line 12: Line 12:
 
'''Currently only negative values for the second parameter are supported.'''
 
'''Currently only negative values for the second parameter are supported.'''
  
[[Category:Templates]]</noinclude>
+
[[Category:Formatting and function templates]]</noinclude>

Revision as of 18:44, 28 December 2013

Adds the article to a category which begins with the name of article and is sorted with the rest of the name.

Parameters

Template:Parameter Table

Examples

For example in Template:Infobox/Part/ISP this would add it to Category:Infobox/Part {{{1}}} with the sortkey ISP.

Currently only negative values for the second parameter are supported.