MediaWiki 1.16:部分嵌入
如何将一个维基页面的单个部分包含到另一个维基页面作为参考?
我使用全新的 MediaWiki (1.16.5) 安装,没有任何扩展。我用来解决该任务的语法如下: {{:otherPage|sectionName}} 我也使用过 {{:otherPage#sectionName}} 但它对我来说也不起作用。
提前致谢!
How can I include a single section from one wikipage to another as a reference?
I use a completely new MediaWiki (1.16.5) installation without any extensions. The syntax I use to solve the task is the following: {{:otherPage|sectionName}} I have also used {{:otherPage#sectionName}} but it doesn't work for me too.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不完全是你想要的,但有 Labeled Section Transclusion 扩展。 AFAIK 没有办法只包含任何部分。
Not quite what you want, but there is the Labeled Section Transclusion extension. AFAIK there is no way to include just any section.
使用
将您想要嵌入到标签中的其他页面上的文本包裹起来。不会影响显示。
Use
Wrap the text you want transcluded on the other page in the tag. It will not affect the display.
如果您只需要一个部分,那么
标记将产生所需的效果。将它们包裹在有问题的部分周围,然后正常嵌入整个页面 ({{:otherpage}}
)。仅
标记中的部分会被嵌入。If there's just one section that you want, then
<onlyinclude></onlyinclude>
tags will produce the desired effect. Wrap them around the section in question and then transclude the whole page normally ({{:otherpage}}
). Only the section in<onlyinclude>
tags will be transcluded.