1
votes

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!

3

3 Answers

2
votes

Not quite what you want, but there is the Labeled Section Transclusion extension. AFAIK there is no way to include just any section.

0
votes

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

0
votes

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.