Last modified: 2014-09-23 19:30:54 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 T28098, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26098 - new magic word {{#ifredirect}}
new magic word {{#ifredirect}}
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ja.wikipedia.org/wiki/Template...
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-24 08:21 UTC by Hatukanezumi
Modified: 2014-09-23 19:30 UTC (History)
3 users (show)

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


Attachments
ParserFunctions-svn76542-ifredirect.patch (2.89 KB, patch)
2010-11-24 08:27 UTC, Hatukanezumi
Details

Description Hatukanezumi 2010-11-24 08:21:06 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.
Comment 1 Hatukanezumi 2010-11-24 08:27:01 UTC
Created attachment 7859 [details]
ParserFunctions-svn76542-ifredirect.patch
Comment 2 Platonides 2012-04-26 19:44:56 UTC
Looks good.
Comment 3 Sumana Harihareswara 2012-05-25 03:21:39 UTC
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
Comment 4 au 2012-06-17 18:41:05 UTC
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!
Comment 5 Hatukanezumi 2012-08-14 16:46:36 UTC
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

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


Navigation
Links