打开/关闭菜单
打开/关闭个人菜单
未登录
登录即可进行编辑

模板:DateSort/doc

模板页面
胡大夫留言 | 贡献2024年6月23日 (日) 13:09的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{DateSort}} — like its sister templates, {{NameSort}} and {{TitleSort}} — allows for apparently automatic sorting of pages. It uses the magic word, DEFAULTSORT, along with a #switch, to convert a day of the year to a number from 1 to 365 (29 February sharing the same number as 28 February), thus allowing day of the year pages to sort numerically.

用法

Usage is super easy. Just type {{日期排序}} at the bottom of a page. Then, when you add categories to the page you no longer have to define the sort key for every individual category. It will automatically sort the person by their numerical ID.

我们为您提供服务需要使用Cookie。使用我们的服务即表示您同意我们使用Cookie。