Changes

Jump to navigation Jump to search
== Labeled Section Transclusion (1/25/16) ==
Ed wanted me to look into Labeled Section Transclusions, which would allow two different sections of a single page to be transcluded onto different locations. There's [https://www.mediawiki.org/wiki/Extension%3aLabeled_Section_Transclusion#How_it_works an extension] for that, but the extension download is only compatible with Mediawiki version 1.19 or newer, and our current webserver is on Mediawiki 1.13.3 (check on the [[Special:Version]] page). But I got the LST extension on the test webserver and successfully transcluded different sections. Installing the extension is pretty straightforward: wget the tarball link, untar it, and copy to the /var/lib/mediawiki/extensions directory, and :  $ cd ~/Downloads $ wget https://extdist.wmflabs.org/dist/extensions/LabeledSectionTransclusion-REL1_26-60037a2.tar.gz $ tar -xzvf LabeledSectionTransclusion-REL1_26-60037a2.tar.gz $ cd /var/lib/mediawiki/extensions $ cp -r ~/Downloads/LabeledSectionTransclusion ./LabeledSectionTransclusion Then add a require_once call in this line to LocalSettings.php:  require_once "$IP/extensions/LabeledSectionTransclusion/LabeledSectionTransclusion.php";
[https://en.wikipedia.org/wiki/Wikipedia:Transclusion#Without_using_the_labeled_section_method This Wikipedia page] documents a method for selective transclusion that doesn't require the extension, but I was unable to replicate the results on the test webserver, so I assume that it requires some package or code that is specific to Wikipedia.
Anonymous user

Navigation menu