模板:每月清理分類/月份名稱
模板文件
The Template:每月清理分類/月份名稱 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:
{{每月清理分類/月份名稱|自2019年7月標題暫定的條目}}
- Result: 7月
If there is no recognized month prefix (after the word " from"), then the string "00" is returned.
- Performance considerations
This template searches the text in parameter 1 for the word " from" by using efficient Template:Strfind_short, which runs in 9 levels of expansion depth, plus using {Str_right} for a total of 22 levels, compared to Template:Str_find_long, which runs with 23 levels of depth plus {Str_right} for a total of 35 levels, as used prior to 29 August 2012.
編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 本模板的子頁面。 |