Last modified: 2013-08-21 08:59:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55091, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53091 - @link plugin for wm-bot to be able to create wikilinks
@link plugin for wm-bot to be able to create wikilinks
Status: RESOLVED FIXED
Product: Utilities
Classification: Unclassified
WM-Bot (Other open bugs)
unspecified
All All
: High enhancement (vote)
: ---
Assigned To: Peter Bena
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-20 12:08 UTC by Technical 13
Modified: 2013-08-21 08:59 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Technical 13 2013-08-20 12:08:14 UTC
wm-bot could use a @link command to be able to create wikilinks to pages... It should be able to recognize interwiki prefixes.  It should probably use enwp as a default wiki if not prefix is specified, with a @configure option to set a default wiki.

For examples:
@link [[User:Petrb]]
  Should create - https://en.wikipedia.org/wiki/User:Petrb
@configure default_link_wiki=meta_wikipedia
@link [[User:Petrb]]
  Should create - https://meta.wikimedia.org/wiki/User:Petrb

One last possible feature, because I know it is popular on some other bots is:
@link {{Example}}
  Should create - https://en.wikipedia.org/wiki/Template:Example
@link {{User:Example}}
  Should be an exception if namespace is specified and create - https://en.wikipedia.org/wiki/User:Example

Again, @configure default_link_wiki being set would determine which wiki...
Comment 1 Peter Bena 2013-08-20 13:26:04 UTC
How do I resolve the wiki prefix?
Comment 2 Technical 13 2013-08-20 13:50:21 UTC
(In reply to comment #1)
> How do I resolve the wiki prefix?

https://github.com/Technical-13/helpmebot/blob/master/Helpmebot/Commands/Link.cs uses it's own internal interwiki table https://helpmebot.org.uk/wiki/Special:Interwiki

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links