Difference between revisions of "Template:Lead character category"
Jump to navigation
Jump to search
(Created page with "<includeonly>[[Category:{{#switch:{{#sub:{{PAGENAME}}|0|1}}|0|1|2|3|4|5|6|7|8|9=0|&|!=?|{{#sub:{{PAGENAME}}|0|1}}}}]]</includeonly><noinclude> leadCat...") |
|||
Line 1: | Line 1: | ||
<includeonly>[[Category:{{#switch:{{#sub:{{PAGENAME}}|0|1}}|0|1|2|3|4|5|6|7|8|9=0|&|!=?|{{#sub:{{PAGENAME}}|0|1}}}}]]</includeonly><noinclude> | <includeonly>[[Category:{{#switch:{{#sub:{{PAGENAME}}|0|1}}|0|1|2|3|4|5|6|7|8|9=0|&|!=?|{{#sub:{{PAGENAME}}|0|1}}}}]]</includeonly><noinclude> | ||
− | [[Category: | + | [[Category: Templates|lead]][[Category:Text Expansion Templates|Lead]] |
This template produces the category based upon the leading (first) character in the title. This template is used in the [[:Category: Category templates]] to automatically set the lead character template. | This template produces the category based upon the leading (first) character in the title. This template is used in the [[:Category: Category templates]] to automatically set the lead character template. |
Latest revision as of 12:23, 22 July 2018
This template produces the category based upon the leading (first) character in the title. This template is used in the Category: Category templates to automatically set the lead character template.
There are two exceptions to simply keeping the first character. Numbers are collapsed into Category:0. Non-alphanumeric characters are collapsed into Category:?.