Page MenuHomePhabricator

new magic word {{#ifredirect}}
Open, MediumPublicFeature

Description

Author: hnezumi

Description:
Some ja Wikipedians made a template [[w:ja:Template:仮リンク]] (see URL) to suggest wished articles. It displays red link and additional descriptive texts for non-existing articles; when article has been created, additional texts vanish and normal link is shown. But some redirects might be unexpected synonyms such as names of albums, brands, disambiguation pages etc.

So I propose a new magic word {{#ifredirect}} to distinguish redirect from ordinary article pages.

A patch to trunk is attached.


Version: unspecified
Severity: enhancement
URL: http://ja.wikipedia.org/wiki/Template:%E4%BB%AE%E3%83%AA%E3%83%B3%E3%82%AF

Details

Reference
bz26098

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:19 PM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz26098.
bzimport added a subscriber: Unknown Object (MLST).

hnezumi wrote:

ParserFunctions-svn76542-ifredirect.patch

Attached:

sumanah wrote:

Hatukanezumi, thank you for your patch! It looks like core developer Platonides thinks it's a good patch. It would be great if you took the next step and used developer access to directly suggest it into our Git source control system:

https://www.mediawiki.org/wiki/Developer_access

https://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch

audreyt wrote:

Hi Hatukanezumi, thank you for the patch!

As you may already know, MediaWiki is currently revamping its PHP-based parser
into a "Parsoid" prototype component, to support the rich-text Visual Editor
project:

https://www.mediawiki.org/wiki/Parsoid
https://www.mediawiki.org/wiki/Visual_editor

Folks interested in enhancing the parser's capabilities are very much welcome
to join the Parsoid project, and contribute patches as Git branches:

https://www.mediawiki.org/wiki/Git/Tutorial#How_to_submit_a_patch

Compared to .diff attachments in Bugzilla tickets, Git branches are much easier
for us to review, refine and merge features together.

Each change set has a distinct URL generated by the "git review" tool, which
can be referenced in Bugzilla by pasting its gerrit.wikimedia.org URL as a
comment.

If you run into any issues with the patch process, please feel free to ask on
irc.freenode.net #wikimedia-dev and the wikitext-l mailing list. Thank you!

hnezumi wrote:

Hi all,

Thanks for a number of suggestions. But unfortunately, I had left
all projects related to MediaWiki/WikiMedia a few years ago. So I
am sorry that I am no longer able to push ahead with my patch.

Needless to say, anyone can FREEly knead, blend or commit it.

Thanks again.

    • Hatukanezumi
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.