Template

Difference between revisions of "AddToCategory"

From Lacey Green History

Line 12: Line 12:
 
<includeonly>
 
<includeonly>
 
{{#arraymap:{{{Category|}}}|,|x|
 
{{#arraymap:{{{Category|}}}|,|x|
{{#if: {{{x|}}}
+
  {{#if: {{{x|}}}
  |
 
  {{#if: {{{SortKey|}}}
 
 
     |
 
     |
     [[Category:{{{x}}}|{{{SortKey}}}]]
+
     {{#if: {{{SortKey|}}}
 +
      |
 +
      [[Category:{{{x}}}|{{{SortKey}}}]]
 +
      |
 +
      [[Category:{{{x}}}]]
 +
    }}
 
     |
 
     |
    [[Category:{{{x}}}]]
 
 
   }}
 
   }}
  |
+
|\s}}
}}
 
}}
 
 
</includeonly>
 
</includeonly>

Revision as of 07:43, 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.