-
2013-02-12
Klap-in
I have a wiki where are used many interwiki links to internal pages. These seems external because the interwiki link color is equal to external links.
I propose adding a class so difference can be made between the internal and external interwiki links.
example:
inc/parser/xhtml.php
//do we stay at the same server? Use local target
if( strpos($url,DOKU_URL) === 0 ){
$link['target'] = $conf['target']['wiki'];
+ $link['class'] .= " internal"; //used for applying local link color
}
css:
+/* interwiki link */
+.dokuwiki a.interwiki.internal {
+ color: __existing__;
+}
-
2013-02-16
ach
Interwiki links are never internal. Even in that one single case where you use one specific interwiki link to pages in your own wiki, they are still technically external links (starting with "http"). It is bad style to use interwiki links to your own wiki, because backlinks and other things don't work with them. So, I don't think this is a good idea as the colour would convey the wrong meaning.
-
2013-02-16
Klap-in
In practice, it is possible to define the interwiki url as a relative url.
On dokuwiki.org internal linking with interwiki urls is done to point to plugintypes, plugintags etc. that kind of use cases i have also for my own wiki.
Would it be better to add a division in the interwiki urls that detect they are relative, and handle then similar to internallinks, so inclusive backlinks?
(what are other things that brokes?)
-
2013-02-16
ach
Hmm, that could make sense. Someone else needs to check if that would work. But from the user's perspective I think it's important to make those kind of "internal wiki links" look different, not just the rendered version of it (like you suggested with changing the colour), but also its *wiki syntax*! Maybe something like [[.doku>]] or [[_plugintype>]] or whatever...
-
2014-02-15
Klap-in
-
2014-02-15
Klap-in
in config:
user :wiki:user:{NAME}
in syntax:
[[user>foobar]]
layouting:
add internallink style
-
2014-03-16
Klap-in
Fixed by PR#527