Difference between revisions of "Category:Monthly clean-up category/monthname"
Jump to navigation
Jump to search
test>Jo-Jo Eumerus m (Changed protection level for "Template:Monthly clean-up category/monthname": Highly visible template: Allowing template editors ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (in...) |
test>Train2104 (Update to work in case where "from" is in the name portion) |
||
| Line 1: | Line 1: | ||
| − | {{#Switch:{{lc:{{Str left|{{Str right|{{{1 | + | {{#Switch:{{lc:{{Str left|{{Str right|{{{1}}}|{{#expr: {{#invoke:String|find|{{{1}}}| from|{{#expr: {{Str len|{{{1}}}}} - 21}}}} + 4 }}}}|3}}}} |
|jan=January | |jan=January | ||
|feb=February | |feb=February | ||
| Line 23: | Line 23: | ||
If there is no recognized month prefix (after the word " from"), then the string "00" is returned. | If there is no recognized month prefix (after the word " from"), then the string "00" is returned. | ||
| − | |||
| − | |||
| − | |||
[[Category:Wikipedia formatting and function templates]] | [[Category:Wikipedia formatting and function templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 16:38, 28 February 2017
00
The Template:Monthly_clean-up_category/monthname returns the capitalized month name for the 3-letter month prefix (such as "Jan"), as found after the spaced-word " from" in the category title.
Example:
{{Monthly clean up category/monthname|Cleanup pages from February 2009}}
If there is no recognized month prefix (after the word " from"), then the string "00" is returned.
This category currently contains no pages or media.