Feature Proposal: We need some minor InterwikiPlugin enhancements to better support the Github migration
Motivation
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.
Examples
The
%INTERWIKIPLUGIN_INTERLINKFORMAT%
defaults to:
<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 |
Impact
Unit tests all pass with this change. It should be transparent, but allow greater flexibility in the rendering of Interwiki links.
Implementation
--
Contributors: GeorgeClark - 03 Oct 2014
Discussion
Implemented prior to Foswiki 2.0 release in early
InterwikiPlugin release.
--
Main.GeorgeClark - 18 Jul 2015 - 00:55