Template

Difference between revisions of "AddToCategory"

From Lacey Green History

 
Line 14: Line 14:
 
   {{#if: x
 
   {{#if: x
 
     |
 
     |
     test1
+
     {{#if: {{{SortKey|}}}
    [[Category:x]]
+
      |
 +
      [[Category:x|{{{SortKey}}}]]
 +
      |
 +
      [[Category:x]]
 +
    }}
 
     |
 
     |
    test2
 
 
   }}
 
   }}
 
|\s}}  
 
|\s}}  
 
</includeonly>
 
</includeonly>

Latest revision as of 07:52, 22 November 2020

This is the "AddToCategory" template. It should be called in the following format:

{{AddToCategory
|Category=
|SortKey=
}}

Edit the page to see the template text.