Semantic MediaWiki 获取页面链接?

发布于 2025-01-13 17:53:39 字数 272 浏览 3 评论 0原文

我在 Category:Disambiguations 中设置了一个页面作为消歧页面,如下所示:

'''Sword''' may refer to one of the following:

* {{Link|Item|Blue Sword}}
* {{Link|Item|Yellow Sword}}
* {{Link|Item|Green Sword}}

有没有办法使用“#ask”函数来获取该页面上的所有链接?此页面上没有任何属性...

谢谢,

I have a page set up as a disambiguation page inside of Category:Disambiguations that looks like this:

'''Sword''' may refer to one of the following:

* {{Link|Item|Blue Sword}}
* {{Link|Item|Yellow Sword}}
* {{Link|Item|Green Sword}}

Is there a way I can use the '#ask' function to get all of the links on that page? This page has no properties on it...

Thanks,

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暗藏城府 2025-01-20 17:53:39

您可以重新定义 {{Link}} 模板以包含 [[Links to::{{{2}}}]] 并声明 Property:Links to类型页面的。然后您将能够使用 {{#show:Sword|Links to}}{{#ask:[[-Links to::Sword]]}}< 查询链接/代码>。

You could redefine the {{Link}} template to include [[Links to::{{{2}}}]] and declare Property:Links to of the type page. Then you will be able to query the links with {{#show:Sword|Links to}} or {{#ask:[[-Links to::Sword]]}}.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文