Hi All--
I'm trying to hack whatever functions produce the "&action=edit" style defaults for broken links, but despite trawling Linker.php and Skin.php (and a couple of less-likely candidates), googling randomly and looking through the list archives here, I can't work out what to change.
Can someone please point me in the right direction, or suggest a better way to go about this? (My intention is to allow a setting in LocalSettings.php to specify where broken links point--which could be onsite or offsite, eg. to the wikipedia page of the same name)? Thanks.
CYa, JEREMY
On 12/20/05, Jeremy G Byrne jeremy@iz.org wrote:
Hi All--
I'm trying to hack whatever functions produce the "&action=edit" style defaults for broken links, but despite trawling Linker.php and Skin.php (and a couple of less-likely candidates), googling randomly and looking through the list archives here, I can't work out what to change.
Can someone please point me in the right direction, or suggest a better way to go about this? (My intention is to allow a setting in LocalSettings.php to specify where broken links point--which could be onsite or offsite, eg. to the wikipedia page of the same name)? Thanks.
So why would you want this to be a global choice on the wiki, as opposed to using the machanisms provided in wikitext markup to give individual control
http://meta.wikimedia.org/wiki/Help:Editor See the section on Referencing
Interwiki links are easy, for example on my wiki a reference like [[w:John Doe|]] produces a link to the John_Doe article on en.wikipedia. The | strips off the w: namespace in the rendered link. This is widely known by wikipedians as the 'pipe trick'.
There is an interwiki map in the database which maps these pseudo-namespaces and the "article name" into a URL. The default installation populates this table with many of the wikimedia sites. But it can be changed, see http://meta.wikimedia.org/wiki/Help:Interwiki_links
To link to arbitrary external url you can use [http://xxx.yyy.zzz/foo/bar Foo Bar] which will appear as Foo Bar followed by a symbol which indicates that it's an external link, all in the valid link color.
If you already know all this and have good reasons for a global switch on broken links then continue your quest in peace! -- Rick DeNatale
Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/
mediawiki-l@lists.wikimedia.org