Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No interwiki links with Wikipedia, ArchWiki; update Gentoo link #21

Open
Anton-Latukha opened this issue Apr 8, 2019 · 6 comments
Open

Comments

@Anton-Latukha
Copy link

Anton-Latukha commented Apr 8, 2019

There are many interwiki links configured:
https://wiki.haskell.org/Special:Interwiki

But there are no major ones:

  • MediaWiki powered:
    • Wikipedia
    • NixOS Wiki
    • ArchWiki
    • Gentoo Wiki
    • Debian Wiki
    • Fedora Project Wiki
    • OpenStack Wiki
  • CLiki (if possible)
  • GHC Wiki (if possible)

I wonder, is there is a particular technical case associated with it.

It would be proper to use interwiki links instead of external links to major MediaWiki resource.

Related information:

@hgolden
Copy link
Collaborator

hgolden commented Apr 8, 2019

I agree with adding an interwiki link to Wikipedia. When I recently upgraded the MediaWiki version I added the Interwiki extension, but I haven't done anything with it. In order to add another interwiki link, a Sysop has to make a change to the table. That's all that is required. Note: I am not a Sysop, though I probably should become one.

There is a default Interwiki table (see https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/interwiki.sql), which includes "wikipedia" as the interwiki link to Wikipedia. I suggest following this convention.

Other interwiki links are welcome, too.

@Anton-Latukha
Copy link
Author

I can not follow this convention at the moment.
Until particular interwiki links are added to the extension - they do not work (I even just tested).

So that is why I would skip linking to Wikipedia for now.

@hgolden
Copy link
Collaborator

hgolden commented Apr 8, 2019 via email

@Anton-Latukha
Copy link
Author

Oops, sorry, I rerolled the message, but you use email.
I believe then it is OK if I as a newcomer to HaskellWiki post a couple observed things to ask about.

@Anton-Latukha
Copy link
Author

Anton-Latukha commented Apr 9, 2019

Just found that that current wiki-monkey converts external links to proper interwiki links.
And it can and does much more.

And it only the beginning of possibilities.

@Anton-Latukha
Copy link
Author

Anton-Latukha commented Apr 9, 2019

List of interlink seems really old.

It can have a way of partial fix.
Or total update:

  1. Get the modern default list, from referenced https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/interwiki.sql.
  2. Match name&adress in HaskellWiki and modern default list.
  3. Unique records to HaskellWiki list match to provided interwiki link counts stats in the engine.
  4. Run shell loop on unique records to HaskellWiki, pinging addresses, getting default webpage with curl, to find what of those are still online. From the knee:
# live impromptu on https://unix.stackexchange.com/a/84820
for line in $(cat ./file.list)
do
  responce=$(echo "$line" | awk '{print $2}' | xargs -L1 curl -Is)
  echo "$responce" | head -n 1
done
# get the list of HTTP/1.1 200 OK
  1. Delete unused/used one-two times links, delete unresponded links - they do not work anyway. Merge new list with unique, used and responsive urls from the old HaskellWiki list.
  2. Save the configuration to the HaskellWiki.

@Anton-Latukha Anton-Latukha changed the title No interwiki links with Wikipedia No interwiki links with Wikipedia, ArchWiki; update Gentoo link Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants