# 为特定日期范围创建排行榜前20名

**URL:** https://meta.discourse.org/t/creating-a-top-20-leaderboard-for-a-specific-date-range/314999
**Category:** Support
**Tags:** gamification
**Created:** [2024年七月2日 15:11 UTC](https://meta.discourse.org/t/creating-a-top-20-leaderboard-for-a-specific-date-range/314999 "2024-07-02T15:11:40Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年七月4日 11:09 UTC](https://meta.discourse.org/t/creating-a-top-20-leaderboard-for-a-specific-date-range/314999/2 "2024-07-04T11:09:38Z")

</div>

我在元（meta）上对此进行了试运行，对我来说似乎运行正常？

我创建了一个名为“month”的新排行榜，并将日期范围设置为 6 月 1 日至 6 月 30 日（并将其限制为 [@team](https://meta.discourse.org/groups/team)），它只抓取了该时间段内累积的欢呼声：

 ![leaderboard for a month](https://global.discourse-cdn.com/meta/original/4X/5/7/e/57e1803dfaa2e37161560a9b946b94b570f8080a.jpeg)

不过，顶部的日期选择器与日期限制的排行榜不太匹配，因为它仍然会尝试告诉您它正在选择一个更大的日期范围：

 ![period picker gaslighting me](https://global.discourse-cdn.com/meta/original/4X/b/b/3/bb3827242f0f2e8959090a6db33bd8b755935a5c.png)

 ![period picker telling me porkies](https://global.discourse-cdn.com/meta/original/4X/9/f/c/9fc016716394c4c17b9dad6f92ac8ce2f2aeb7e8.jpeg)

> [@Giovanni\_Lignarolo](#):
>
> 另外，有没有办法只显示特定范围（季度）的前 20 名？

我认为使用排行榜页面无法做到这一点，但您可以在 [Right Sidebar Blocks](https://meta.discourse.org/t/right-sidebar-blocks/231067) 中创建一个迷你排行榜，可以将其限制为 x 个条目。主题创建者（theme creator）上的预览是 5 个，但这可以在设置中调整 - [https://discourse.theme-creator.io/theme/Discourse/right-sidebar-blocks](https://discourse.theme-creator.io/theme/Discourse/right-sidebar-blocks)

---

_[View the full topic](https://meta.discourse.org/t/creating-a-top-20-leaderboard-for-a-specific-date-range/314999)._
