Feature Proposal: We need some minor InterwikiPlugin enhancements to better support the Github migration


The Foswikiref<nop>:1234 can't easily be migrated to point to git commits. A single svn revision can map to multiple git commits. So a single SVN rev needs to map to multiple URLS.

Description and Documentation

Two enhancements:
  • Expand %MACROS% as part of the Interwiki link expansion. (This is already implemented in Item12819).
  • Allow a custom URL format override for a link. Add an optional 4th column to the InterWikis table. If provided, it replaces INTERWIKIPLUGIN_INTERLINKFORMAT for that one link with the specified text.


<a class="interwikiLink" href="$url" title="$tooltip"><noautolink>$label</noautolink></a>

The optional 4th column, provided with the Foswikirev entry, would override the link url, in this case, replacing it with the expanded contents of the URL: column.

Alias: URL: Tooltip Text: Format override:
Foswiki http://foswiki.org/ '$page' on foswiki.org
Foswikitask http://foswiki.org/Tasks/ '$page' on the 'Foswiki' issue tracking site
Foswikirev %REV2REF{$page}% revision $page of 'Foswiki' on Github $url


Unit tests all pass with this change. It should be transparent, but allow greater flexibility in the rendering of Interwiki links.


-- Contributors: GeorgeClark - 03 Oct 2014


Implemented prior to Foswiki 2.0 release in early InterwikiPlugin release.

-- Main.GeorgeClark - 18 Jul 2015 - 00:55
Topic revision: r2 - 18 Jul 2015, GeorgeClark - This page was cached on 16 Oct 2018 - 06:48.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy