Mediawiki 将内容从一页获取到另一页

Mediawiki get Content from one page to another

我搜索了太久没有找到这个问题的答案,但我一直在寻找错误的东西。 我的问题是我需要通过在页面B上编写代码来从页面A中提取内容。 因此,例如,我的页面 A 的内容为:

here is some text

在页面 B 上,我的代码是这样的:

getcontent(Page A)

它显示:

here is some text

显然我会使用该输出,但现在,我只需要传输内容。 提前致谢

答案由Tgr in comments and it was Title:getContent()提供。

您可以使用与模板调用相同的语法嵌入页面,只需在页面标题前放置一个 :(代表 "main namespace"):

在页面 B 中:

{{:Page A}}