Forum:How to .. pre-select a license when using Special:UploadWindow



I am fairly sure uberfuzzy once told me that Special:UploadWindow is an infrequently used special page however if you should ever decide to use the Semantic Forms extension then you will discover that it can be used often. An example link is the bold emphasis is what the semantic forms  extension automatically appends to ensure that the uploaded file names are entered as a comma-separated list into the form input field that is associated with this "upload file" link. (see image at right for an example)

It would be convenient if a suggested license selection could be specified in the link calling this special page. Something like
 * where Template:Cc-by-nc-nd-3.0 exists ... or perhaps
 * to specify the 13th line item in the list created at MediaWiki:Licenses

I did search mw:Manual:Parameters_to_index.php but found nothing relevant but I suspect that was not the right place to be looking.

Of course a couple of alternative approaches might be:
 * 1) to mention the name of a recommended license in the form itself
 * 2) use MediaWiki:Uploadtext to provide a link to a licensing guide wiki article
 * 3) any other ideas?

With regard to alternative 2, I find that when this is used the linked page is opened within the tiny upload window.
 * Is it possible to attach some CGI parameter to the URL to force the link to open in a new window?
 * At mw:Manual:Guide_to_setting_up_interwiki_linking I read about using   however that is for external links and only applies after some tweaking of PHP that configures the mediawiki software - well out of my reach.

There may be some other idea so I am open to any and all suggestions. I just want to make it easier for contributors to upload files by removing the license selection step for those uploads that I know must be licensed a certain way.

-- najevi 19:06, December 21, 2009 (UTC)


 * Well, I'm not really great with Java, CSS, PHP, etc., but you might be able to use JavaScript Charinsert at MediaWiki:Uploadtext. Mark (Talk) • (Contribs) 19:20, December 21, 2009 (UTC)