Semantic MediaWiki 获取页面链接?
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以重新定义
{{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 declareProperty: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]]}}
.