Page MenuHomePhabricator

Enable NaturalLanguageList Extension on WMF wikis
Closed, DeclinedPublic

Description

Author: svippy

Description:
http://www.mediawiki.org/wiki/Extension:NaturalLanguageList

The NaturalLanguageList Extension provides with some almost essential functions for almost any larger wiki out there and helps writing efficiency of templates as well as speed for rendering pages.

While Wiktionary would be an obvious choice for improvement, for anyone who have cried over the following templates:

http://en.wiktionary.org/wiki/Template:also
http://en.wiktionary.org/wiki/Template:list_helper

Wikipedia itself is not excluded from such a use:

http://en.wikipedia.org/wiki/Template:See_also

But in addition to provide easy natural language list features, it also allows to parse data provided in large numbers by other templates, using {{#rawlist:}}, see http://dpaste.org/ezns/ for an example of such a use.

In essence, if you cannot think of an application for this extension, then you have not spend enough time writing templates.


Version: unspecified
Severity: enhancement

Details

Reference
bz22928

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:00 PM
bzimport set Reference to bz22928.
bzimport added a subscriber: Unknown Object (MLST).

happy.melon.wiki wrote:

Extension is in SVN. Now needs security review; CC'ing Tim.

Contents of that dpaste, for when it expires:

(Based on the WP:AN archive list)

[[Template:Archivelist]]

{{#ifexist: /Archive {{{i|}}}1 | Archive {{{i|}}}1 | }} /~/
{{#ifexist: /Archive {{{i|}}}2 | Archive {{{i|}}}2 | }} /~/
...
{{#ifexist: /Archive {{{i|}}}8 | Archive {{{i|}}}8 | }} /~/
{{#ifexist: /Archive {{{i|}}}9 | Archive {{{i|}}}9 | }} /~/

[[Template:Archives]]

{| pretty_box_code

-
...

{{#rawlist: /~/ <!-- SEPARATOR -->

{{archivelist}}
{{archivelist1}}
...
{{archivelist9}}
itemcover=$1
blanks=false

}}

...

}

(Or, using #list, based on [[en:Template:Toolbar]])

[[Template:Links]]

( {{#list: blanks=false | separator= &nbsp;{{!}}&nbsp;

{{{1}}}
{{{2}}}
...
{{{29}}}
{{{30}}}

}} )

sumanah wrote:

Tim wrote on April 4th, "I think it's pretty likely that the Lua feature will be live before NaturalLanguageList gets looked at again."

http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/60320/focus=60355

I apologize for the lengthy delay in response. :(

See https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment for information on what is needed to get an extension reviewed before potentially deploying it on a wikisite.

It seems like the extension is still in SVN and has not been moved to Git which is a potential sign for missing maintenance.

(In reply to comment #3)

It seems like the extension is still in SVN and has not been moved to Git
which
is a potential sign for missing maintenance.

It's in Git already: https://gerrit.wikimedia.org/r/#/q/project:mediawiki/extensions/NaturalLanguageList,n,z

svippy wrote:

(In reply to comment #5)

Then https://www.mediawiki.org/wiki/Extension:NaturalLanguageList needs quite
some updates.

This I will not deny (speaking as the author of the extension). I have not maintained it for over a year now. If there is newfound interest (or necessary changes to be made), I will return. However, so far I have felt the extension to be 'feature complete' and 'working'.

greg added a comment.Aug 22 2013, 10:17 PM

Is this extension still needed now that we have Lua available on all wikis?

In T24928#269474, @greg wrote:

Is this extension still needed now that we have Lua available on all wikis?

I don't think so.

MaxSem closed this task as Declined.Nov 30 2016, 3:13 AM
MaxSem added a subscriber: MaxSem.
In T24928#269474, @greg wrote:

Is this extension still needed now that we have Lua available on all wikis?

I don't think so.

Closing then. Lua templates look way more flexible, it is easier to adapt them to various languages' needs. If the "out of box" aspect of this extension is desired, there's some work being done on shadow namespaces to share Lua modules across wikis.

Meno25 removed a subscriber: Meno25.Nov 30 2016, 1:22 PM