User:Espyo/PikipediaUpload: Difference between revisions
No edit summary |
(New ports added and another new Pikmin 4 trailer option) |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 21: | 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 | 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 43: | Line 43: | ||
* {{date|16|May|2017}} | * {{date|16|May|2017}} | ||
** Added flexible support for the user to choose where the unreleased game's footage has come from. | ** 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". |
Latest revision as of 17:20, June 21, 2023
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.
Source
The new form
Simply put, the new form works like this:
It begins by hiding the old license box, since that won't be used any more. Then, it replaces the instructions at the top with custom (and simpler) ones. The extra fields work as follows, and most of the options can be picked from a list:
- The main field, "Type of file", asks the user for what type of content this is (screenshot, texture, concept art, etc.).
- Depending on the image type, it may ask the user for the game that this belongs to. It can also handle non-Pikmin games.
- Depending on the game and image type, it may ask the user for the game mode and/or area, if any.
- Depending on the game and image type, it may ask the user to specify what the main subject is (a Pikmin, a leader, an obstacle, etc.), if any. It can also ask for specifics (e.g. if it's a Pikmin, what type?).
- Depending on the image type, it may ask if there are any extra properties to the image, like if it shows prerelease content, or a glitch.
- Depending on the image type, it may need to ask the user where they got the image from (or if the user made the image themselves), and ask for a license. It's also possible to pick an option for when the user doesn't know the license.
As the options get answered, the script writes down the final wikitext result in a textbox. For this, it uses the {{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 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
Creation
This script was created during early 2016 with the goal of making the upload process less painful. Mostly in 2014 and 2015, wiki staff tried to push forward a policy where uploaded images should be categorized under a myriad of categories. But this proved too hard to simply follow. In addition, the staff noticed that some users who uploaded images (mostly screenshots) did not pick a license, presumably due to the scary nature of the question. In an effort to fix both problems, and to improve the upload process in general, I wrote this script to change up the fields in the upload form for something more friendly and helpful to the wiki.
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).
- May 1st, 2016
- Initial version.
- May 7th, 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.
- Added a file type for Pikipedia images.
- May 18th, 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").
- September 1st, 2016
- Added Pikmin for Nintendo 3DS support.
- Added a notification on the upload page to tell the user that the script is running.
- April 13th, 2016
- Added Hey! Pikmin support.
- May 16th, 2017
- Added flexible support for the user to choose where the unreleased game's footage has come from.
- July 21st, 2017
- Added Merchandise as an option for the type of image.
- July 31st, 2017
- Updated it on the account of Hey! Pikmin's release.
- September 20th, 2017
- Added cutscene images as a misc. category.
- October 5th, 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.
- January 14th, 2018
- Disambiguated the Challenge Mode image categorization between the two games.
- June 12th, 2018
- Added support for Super Smash Bros. Ultimate.
- October 27th, 2018
- Corrected instances of "for 3DS" to "for Nintendo 3DS", when referring to the fourth Super Smash Bros. game.
- August 5th, 2020
- Added support for Pikmin 3 Deluxe.
- October 30th, 2020
- Removed the Pikmin 3 Deluxe prerelease options.
- November 18th, 2020
- Added Side Stories as a game mode.
- March 22nd, 2021
- Added more licenses.
- October 27th, 2021
- Added support for Pikmin Bloom.
- January 15th, 2022
- Added a promotional material type.
- January 21st, 2022
- Fixed Pikmin Challenge Mode image categorization.
- April 8th, 2022
- Added support for promotional images to specify a game.
- May 15th, 2022
- Added a "version" field.
- September 13th, 2022
- Added Pikmin 4 and its reveal trailer.
- February 8th, 2023
- Added Pikmin 4's February 2023 trailer as a source option.
- March 4th, 2023
- Added support for the new format of artwork categorization.
- June 6th, 2023
- Added Pikmin 4's first June 2023 trailer as a source option.
- June 21st, 2023
- Added support for Pikmin 1 (Nintendo Switch) and Pikmin 2 (Nintendo Switch), and added Pikmin 4's second June 2023 trailer as a source option.
Future
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".