Last modified: 2012-03-26 17:33:50 UTC
Page https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Raw describes &action=raw&gen=js parameters. &action=raw&gen=js and gen=css do not work for me and generate empty pages. Examples: * works: https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js& action=raw * does not work: https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js&action=raw&gen=js perhaps an issue of ResourceLoader ?
Examples: * works: https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js&action=raw * does not work: https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js&action=raw&gen=js
gen parameter to action=raw now always returns an empty page since it is superseded by ResourceLoader. Please note the your example link does not achieve what you want since the gen parameter was overriding the title parameter, i.e. it always returned the same content whatever the page was: http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_16/phase3/includes/RawPage.php?view=markup#l160
(In reply to comment #2) > gen parameter to action=raw now always returns an empty page since it is > superseded by ResourceLoader. Please note the your example link does not > achieve what you want since the gen parameter was overriding the title > parameter, i.e. it always returned the same content whatever the page was: > http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_16/phase3/includes/RawPage.php?view=markup#l160 In this case, can you please update (correct) the documentation page https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Raw accordingly ? Will it be possible to render a js or css page as it was possible before ?
I updated the documentation. What you want is the "ctype" parameter and its behaviour did not change: https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js&action=raw&ctype=text/javascript