Add patent selection to Special:Upload
- Patent templates can be selected from a list of radio buttons
- Selected patent will also be previewed, like licenses
- When the file uploaded is not an STL file, the patent selection will be hidden, as it is irrelevant.
Like MediaWiki:Licenses, MediaWiki:Patents can be altered to
add a list of possible patent templates.
Bug: T182683
Depends-On: I0c097442aa557dd90eb5825553ebf892f9af8a01
Change-Id: Iafb1e7e5da4b67f4c5ae7dda511d130ae10f748c