Page MenuHomePhabricator

Make parse.php accept page
Closed, DeclinedPublic

Description

It'd be useful if maintenance/parse.php could be given an article title (already on the wiki) and output the parsed text.

Rather than something like
php getText.php --title=foobar | php parse.php --title=foobar


Version: 1.22.0
Severity: enhancement

Details

Reference
bz54395

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:06 AM
bzimport set Reference to bz54395.
bzimport added a subscriber: Unknown Object (MLST).

Doug McIlroy, then head of the Bell Labs CSRC and contributor to Unix pipes,[1] summarised Unix philosophy as follows:[2]

This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface.

Reference: http://en.wikipedia.org/wiki/Unix_philosophy

Adding a new feature to parse.php would be against that philosophy. I am afraid people will end up making it to accept moaar parameters and eventually rename it server.php :/

Per my previous comment, one script == one thing

So you first get some wikitext with getText.php and then parse it with parse.php