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

Link to sister project if there's a namespace for it in link #2

Closed
mben42 opened this issue Jun 4, 2019 · 3 comments
Closed

Link to sister project if there's a namespace for it in link #2

mben42 opened this issue Jun 4, 2019 · 3 comments

Comments

@mben42
Copy link

mben42 commented Jun 4, 2019

Hi, a suggestion from French Wikimedia Discord. We think it would be a good thing if the link to a sister project could be automatic if the expression between [[]] starts with a sister project-specific namespace (e.g. [[Wiktionary:something]] or [[WT:something]] for Wiktionary), without having to add the project before (e.g. [[wikt:WT:something]]).

Thanks in advance, and by the way, thank you for this great bot!

@stjohann
Copy link
Owner

stjohann commented Jun 6, 2019

Hello! Thank you for taking time to leave this issue.

I don’t think this would be right to do for following reasons:

  1. It will add a difference in how wiki links are handled by MediaWiki and how they are handled by the bot, and I want to minimise them as far as it makes sense.
  2. I don’t think there’s a way to do this without adding hacks into code (there’s no API that says, for example, that Wiktionnaire: is French or Викисловарь: is Russian for Wiktionary).

Can you tell me what was a reason for this suggestion? Do you have a channel for Wiktionary users in which you have to write [[wikt:]] too many times, or did you just think it would be convenient? I think channel-based configuration can be explored, if there’s a need for it.

I would ask for other opinions on this and will wait for your response before closing this issue.

@stjohann stjohann changed the title [Suggestion] Link sister project if project-specific namespace Link to sister project if there's a namespace for it in link Jun 6, 2019
@mben42
Copy link
Author

mben42 commented Jun 6, 2019

Hello, actually we just think it would be convenient, yes. Someone else has also suggested a channel-based configuration, I thought it was harder to do, but it could be even better. Perhaps using config file to set channel names?

@stjohann
Copy link
Owner

stjohann commented Jun 6, 2019

Got it, thank you. Setting and respecting channel-based overrides shouldn’t be hard to do, it will be pretty similar to server configuration as outlined on Meta. I just need to think about the correct implementation (whether or not to allow overriding everything, for example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants