Not logged in. · Lost password · Register
Forum: General Help and Support Plugins Plugin Wishlist RSS
Automatically linking existing pages (internal cross-linking)?
Avatar
wilbury #1
Member since Sep 2018 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Automatically linking existing pages (internal cross-linking)?
Dear Community,

does a plugin exist, that serves the same functionality like Mediawiki's LinkTitle plugin?

https://www.mediawiki.org/wiki/Extension:LinkTitles

I'm searching for an extension that automaticalIy adds links (cross-references) to existing page titles on saving an edited page. Whenever a page is saved,  this edited page should be scanned about words that correspond to other existing page titles. What I have in mind is an automatic forward-linking. If a word on an edited page is mentioned (e.g. "constructor") an equals to a page name (page about constructors), the word "constructor" on the edited page should be changed into a link to the page about constructors.

Thank you for your attention to my problem. I think, there is much time passing on setting internal links manually.


Greetings,

Peter
Avatar
Michaelsy #2
Member since Jun 2015 · 922 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Here for clarification a more concrete explanation:

What wilbury wants is the following: Suppose he writes an article about George Washington. In this article he mentions his birthplace, the word "President" and that he was one of the "Founding Fathers of the United States". He writes all this in plain text, without wiki code, without adding links to the corresponding pages (these are "virginia", "president" and "founding_fathers_of_the_united_states") . When he saves the article, all these links are automatically inserted in the article "George Washington".

(A yield of the thread: https://forum.dokuwiki.org/thread/16291)

HTH - Michael Sy.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
turnermm (Moderator) #3
Member since Oct 2009 · 4642 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
the extension will look if any existing page titles occur in the text
from the Mediawiki description.  This means that authors would have to write articles which in effect already reference the titles of other pages which they wish to cross-reference, which for me at least doesn't seem much less cumbersome than creating the link.  A suggestion for @wilbury is to look also at the tags plugin.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Michaelsy #4
Member since Jun 2015 · 922 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
which for me at least doesn't seem much less cumbersome than creating the link

Yes, I think so too. For example, the spelling in the article often does not exactly match the title of the article. (eg singular / plural) And often it makes sense to refer to articles that do not exist yet. (This is in a wiki the regular method to create new articles.)

I assume there are a lot of exceptions that can not be handled correctly by an automatic. And to create a wiki link is by writing only four additional brackets.

Only my 5 cents - Michael Sy.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
zioth #5
Member since Jul 2011 · 77 posts
Group memberships: Members
Show profile · Link to this post
DokuWiki automatically links CamelCase text. Beyond that, you could use one of the autolink plugins. I just published one -- https://www.dokuwiki.org/plugin:autolink4 . Unfortunately, the admin has to configure a list of auto-linked text, so the autolink plugins don't work that well for a frequently modified public wiki, but they work great in a more controlled environment.

What you really want is something to intercept DokuWiki during its indexing phase, and automatically link all terms. Or maybe an autolink plugin could build its index from page titles. I'll think about whether this would be a worthwhile enhancement for autolink4.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-06-17, 03:04:02 (UTC +02:00)