更多语言
更多操作
删除的内容 添加的内容
小 导入1个版本:导入自英语wiki |
无编辑摘要 |
||
第1行: | 第1行: | ||
{{文档}}{{模板重定向|日期排序}} |
|||
{{tlx|DateSort}} — like its sister templates, {{tlx|NameSort}} and {{tlx|TitleSort}} — allows for ''apparently'' automatic sorting of pages. It uses the [[Help:magic words|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. |
{{tlx|DateSort}} — like its sister templates, {{tlx|NameSort}} and {{tlx|TitleSort}} — allows for ''apparently'' automatic sorting of pages. It uses the [[Help:magic words|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 {{tl| |
Usage is super easy. Just type {{tl|日期排序}} '''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. |
||
<includeonly>[[Category:编码工具模板]]</includeonly> |
|||
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude> |
2024年6月23日 (日) 13:09的最新版本
这是“Template:DateSort”的文档子页面。
它含有用法信息、分类及其他不属于原模板页面的内容。
{{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.