是否可以在类别中使用“页面”...。在没有扩展名的模板中,MediaWiki中的列表?

发布于 2025-02-05 09:20:00 字数 789 浏览 2 评论 0原文

我想将类别页面用作模板,以在另一个页面上显示“类别中的页面...”,但是当我尝试模板类别页面时,它仅显示类别页面本身上写的详细信息。不是类别中的页面列表。

是否有任何方法可以在类别页面本身之外访问此“类别中的页面...”部分?

例如,在DND Wiki上,类中有一类类型的咒语。创建了Druids的每个咒语页面,并且每个咒语页面都有DRUID_SPELLS类别。然后,类别:druid_spells页面上有一个文本,其中添加了一些细节。

我正在尝试制作一个单独的Druid页面,其中包含有关该类详细信息的详细信息,但我不想手动编辑和维护Druid咒语列表。我希望能够将DRUID法术的列表从类别中传递到Druid页面上,并且随着DRUID咒语的添加或更改,类别将处理我更新列表。

但是,当我将其添加到Druid页面时:

= Druid Spells =
{{:Category:Druid_Spells}}

它仅传递Druid_spells类别页面的文本。它没有显示“类别druid_spells中的页面...”,而是像类别页面本身一样在字母上列出所有这些页面。

我宁愿不必使用Druid Spells类别页面本身,因为我想将其他类别页面连接到主要的Druid页面,例如技能和能力。

在Mediawiki中transclude a类别是一个类似的问题,但所有答案都是扩展的。这是否可以没有扩展?

I would like to use a category page as a template to show the "Pages in category..." on another page, but when I attempt to template the category page it only shows the details written on the category page itself. Not the list of pages in the category.

Is there any way to access this "Pages in category..." section outside of the category page itself?

For example, on a DnD wiki there is a category of type of spell in a class. Each of the spell pages for Druids is created and each of those spell pages has the Druid_Spells category. Then, the Category:Druid_Spells page has a text and some details added onto it.

I'm attempting to make a separate Druid page that has details about the class, but I don't want to manually edit and maintain the list of Druid spells. I would like to be able to pass the list of druid spells from the category onto the Druid page and as druid spells are added or changed the category would handle updating the list for me.

However, when I add this to the Druid page:

= Druid Spells =
{{:Category:Druid_Spells}}

It is only passing the text of the Druid_Spells category page. It isn't showing the "Pages in category Druid_Spells..." and listing all of them alphabetically like the category page itself does.

I would prefer not having to use the Druid spells category page itself because I would like to tie other category pages into the main Druid page, like skills and abilities.

Transclude a category in MediaWiki is a similar question, but all of the answers are extensions. Is this possible without an extension?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文