MediaWiki 1.16:部分嵌入

发布于 2024-11-16 16:23:23 字数 182 浏览 5 评论 0原文

如何将一个维基页面的单个部分包含到另一个维基页面作为参考?

我使用全新的 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 技术交流群。

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

发布评论

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

评论(3

情丝乱 2024-11-23 16:23:23

不完全是你想要的,但有 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.

故事↓在人 2024-11-23 16:23:23

使用
将您想要嵌入到标签中的其他页面上的文本包裹起来。不会影响显示。

Use
Wrap the text you want transcluded on the other page in the tag. It will not affect the display.

萧瑟寒风 2024-11-23 16:23:23

如果您只需要一个部分,那么 标记将产生所需的效果。将它们包裹在有问题的部分周围,然后正常嵌入整个页面 ({{: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.

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