Page MenuHomePhabricator

@link plugin for wm-bot to be able to create wikilinks
Closed, ResolvedPublic

Description

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...


Version: unspecified
Severity: enhancement

Details

Reference
bz53091

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:02 AM
bzimport added a project: WM-Bot.
bzimport set Reference to bz53091.

How do I resolve the wiki prefix?