Jump to content

Template:Monthly clean-up category/monthname/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
move documentation from main page
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
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 "&nbsp;from" in the category title.
'''{{tl|{{BASETEMPLATENAME}}}}''' returns the capitalized month name for the 3-letter month prefix (such as "Jan"), as found after the spaced-word "&nbsp;from" in the category title.

== Usage ==
== Usage ==


Example:
Example:
* {{Tlx|Monthly clean up category/monthname|Cleanup pages from February 2009}}


: Result: &nbsp; {{Monthly clean up category/monthname|Cleanup pages from February 2009}}
;{{Tlx|{{BASETEMPLATENAME}}|Cleanup pages from February 2009}}
:Result: &nbsp; {{ {{BASETEMPLATENAME}}|Cleanup pages from February 2009}}
;{{Tlx|{{BASETEMPLATENAME}}|Cleanup_pages_from_july_2021}}
:Result: &nbsp; {{ {{BASETEMPLATENAME}}|Cleanup_pages_from_july_2021}}
;{{Tlx|{{BASETEMPLATENAME}}|Cleanup_pages from 2020}}
:Result: &nbsp; {{ {{BASETEMPLATENAME}}|Cleanup_pages from 2020}}


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.
Line 13: Line 19:
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Wikipedia formatting and function templates]]
[[Category:Wikipedia utility templates]]
}}</includeonly>
}}</includeonly>

Latest revision as of 20:43, 9 June 2024

{{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.

Usage

[edit]

Example:

{{Monthly clean-up category/monthname|Cleanup pages from February 2009}}
Result:   February
{{Monthly clean-up category/monthname|Cleanup_pages_from_july_2021}}
Result:   July
{{Monthly clean-up category/monthname|Cleanup_pages from 2020}}
Result:   00

If there is no recognized month prefix (after the word " from"), then the string "00" is returned.