Last modified: 2014-09-23 19:30:54 UTC
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.
Created attachment 7859 [details] ParserFunctions-svn76542-ifredirect.patch
Looks good.
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
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!
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