User:Espyo/PikipediaUpload: Difference between revisions

New ports added and another new Pikmin 4 trailer option
(Created page with "'''PikipediaUpload''' is a script I wrote for the wiki that replaces the Special:Upload page's form with a different one. The old form asked the user for a description and...")
 
(New ports added and another new Pikmin 4 trailer option)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:PikipediaUpload.jpg|thumb|right|400px|The script in action.]]
'''PikipediaUpload''' is a script I wrote for the wiki that replaces the [[Special:Upload]] page's form with a different one. The old form asked the user for a description and a license, which put too much responsibility on the user's side, particularly in terms of knowing what categories to put the image under, and what license the image really belongs to. The new fields ask a lot of questions to the user, but they're simple to follow, and help make sure that the image is categorized and labeled the best way possible.
'''PikipediaUpload''' is a script I wrote for the wiki that replaces the [[Special:Upload]] page's form with a different one. The old form asked the user for a description and a license, which put too much responsibility on the user's side, particularly in terms of knowing what categories to put the image under, and what license the image really belongs to. The new fields ask a lot of questions to the user, but they're simple to follow, and help make sure that the image is categorized and labeled the best way possible.


__TOC__
{{clear}}
==Source==
==Source==
{{see|MediaWiki:PikipediaUpload.js}}
{{see|MediaWiki:PikipediaUpload.js}}
Line 18: Line 21:
As the options get answered, the script writes down the final wikitext result in a textbox. For this, it uses the {{tem|file info}} template, filling in the parameters as the user answers. This textbox is what MediaWiki itself will read to place on the file's page. The script also hides this textbox from the user by default, but a button at the bottom of the form allows the user to show it and manually tweak it, if needed.
As the options get answered, the script writes down the final wikitext result in a textbox. For this, it uses the {{tem|file info}} template, filling in the parameters as the user answers. This textbox is what MediaWiki itself will read to place on the file's page. The script also hides this textbox from the user by default, but a button at the bottom of the form allows the user to show it and manually tweak it, if needed.


To note is that if the player runs into an upload warning after clicking "Upload file", the script's extra fields portion will not run (otherwise it would destroy all of the user's choices, since it has no way of memorizing from the old page), but will still hide the license.
To note is that if the user runs into an upload warning after clicking "Upload file", the script's extra fields portion will not run (otherwise it would destroy all of the user's choices, since it has no way of memorizing from the old page), but will still hide the license. Also to note is that if the script is running, a small box will appear on the top-right corner stating that fact. This is a good way to know if the script is up and running or not.


==History==
==History==
Line 25: Line 28:


===Changelog===
===Changelog===
If there was an update recently and you cannot see the changes on your end, try refreshing the page while bypassing the cache (usually you do this by pressing Ctrl+F5).
* {{date|1|May|2016}}
* {{date|1|May|2016}}
** Initial version.
** Initial version.
* {{date|7|May|2016}}
* {{date|7|May|2016}}
** If the user was sent to the upload warning after clicking "Upload file", the script would run and would wipe out all of the final processed info. This was fixed.
** If the user was sent to the upload warning after clicking "Upload file", the script would run and would wipe out all of the final processed info. This was fixed.
** Added a file type for [[:Category:Pikipedia images|Pikipedia images]].
* {{date|18|May|2016}}
** Made it so the script does not run if the current upload is on top of an existing file (i.e. when the user clicks on "Upload a new version of this file").
* {{date|1|September|2016}}
** Added ''Pikmin for Nintendo 3DS'' support.
** Added a notification on the upload page to tell the user that the script is running.
* {{date|13|April|2016}}
** Added {{hp}} support.
* {{date|16|May|2017}}
** Added flexible support for the user to choose where the unreleased game's footage has come from.
* {{date|21|July|2017}}
** Added Merchandise as an option for the type of image.
* {{date|31|July|2017}}
** Updated it on the account of ''Hey! Pikmin''{{'s}} release.
* {{date|20|September|2017}}
** Added cutscene images as a misc. category.
* {{date|5|October|2017}}
** Hopefully forced the "final result" table row to be the last one, instead of it choosing randomly between being the last one or the second one.
* {{date|14|January|2018}}
** Disambiguated the Challenge Mode image categorization between the two games.
* {{date|12|June|2018}}
** Added support for {{ssbu}}.
* {{date|27|October|2018}}
** Corrected instances of "for 3DS" to "for Nintendo 3DS", when referring to the fourth ''Super Smash Bros.'' game.
* {{date|5|August|2020}}
** Added support for {{p3d}}.
* {{date|30|October|2020}}
** Removed the ''Pikmin 3 Deluxe'' prerelease options.
* {{date|18|November|2020}}
** Added Side Stories as a game mode.
* {{date|22|March|2021}}
** Added more licenses.
* {{date|27|October|2021}}
** Added support for {{pb}}.
* {{date|15|January|2022}}
** Added a promotional material type.
* {{date|21|January|2022}}
** Fixed ''Pikmin'' Challenge Mode image categorization.
* {{date|8|April|2022}}
** Added support for promotional images to specify a game.
* {{date|15|May|2022}}
** Added a "version" field.
* {{date|13|September|2022}}
** Added {{p4}} and its reveal trailer.
* {{date|8|February|2023}}
** Added ''Pikmin 4'''s February 2023 trailer as a source option.
* {{date|4|March|2023}}
** Added support for the new format of artwork categorization.
* {{date|6|June|2023}}
** Added ''Pikmin 4'''s first June 2023 trailer as a source option.
* {{date|21|June|2023}}
** Added support for {{p1s}} and {{p2s}}, and added ''Pikmin 4'''s second June 2023 trailer as a source option.


===Future===
===Future===
''Nothing planned.''
''Nothing planned.''
==Known issues==
* If the user picks a main subject, but leaves the subject full name textbox blank, the image will get categorized under "Category: images".