Because of the order the page is rendered, Interwiki urls are known too late to be used in an
INCLUDE. Which is a pity, because for INCLUDES we must use absolute urls.
Options:
- Let Interwiki plugin render the variable before INCLUDE is called
- Give INCLUDE an Interwiki parameter
- Give Interwiki plugin an INCLUDE variable
AC
Item3668 apparently uses included Interwiki links without obvious problems, possibly add more detail to this item.
--
TWiki:Main.SteffenPoulsen - 24 Sep 2007
I made a test at
IncludeInterwikiTest. It does not work.
--
TWiki:Main.ArthurClemens - 25 Sep 2007
Thanks - I understand the problem now.
--
SteffenPoulsen - 25 Sep 2007
Option 1 is not possible because
INCLUDE is an internal variable and gets evaluated before plugins.
How about testing in
INCLUDE if an interwiki pattern is present and expand it? We are in code freeze, so not for 4.2.
--
TWiki:Main.PeterThoeny - 30 Sep 2007
Still not working. Test topic:
IncludeAnInterwikiLink
--
AndrewJones - 19 Jul 2010
The
INCLUDE Macro seems to have it own set of Include Handlers. Like doc. Would it be possible to have a handler wich handles unknown handles. So expand the Interwiki and then use the http or https handler?
--
AlexanderKoch - 19 Dec 2012
Item3135 is a duplicate of this task. Marked this proposal required.
--
Main.GeorgeClark - 18 Jul 2015 - 03:21
As I've chased this down several times, not understanding what it's really asking for, this is saying that you cannot
%INCLUDE{"Interwiki:link"}%
as a page include. Interwiki links are expanded in a preRendering handler, which happens after all macros have been expanded.
--
GeorgeClark - 04 May 2018