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 开发者_如何学JAVAhave also used {{:otherPage#sectionName}} but it doesn't work for me too.
Thanks in advance!
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.
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.
精彩评论