22,688
edits
No edit summary |
mNo edit summary |
||
(14 intermediate revisions by the same user not shown) | |||
Line 84: | Line 84: | ||
table = document.getElementById("mw-htmlform-description").firstChild; | table = document.getElementById("mw-htmlform-description").firstChild; | ||
if (document.getElementById("wpUploadDescription") && document.getElementById("wpUploadDescription").value | if (document.getElementById("wpUploadDescription") && | ||
//Hold on, there's already text here! Chances are this is the warning page. | document.getElementById("wpUploadDescription").value != "{{file info\n|summary = \n|game = \n|type = \n|source = \n}}") { | ||
//Hold on, there's already custom text here! Chances are this is the warning page. | |||
//Let's just hide the license box and quit. | //Let's just hide the license box and quit. | ||
hide_license(table); | hide_license(table); | ||
Line 157: | Line 158: | ||
add_option("logo", "Logo", type_select); | add_option("logo", "Logo", type_select); | ||
add_option("asset", "Raw asset", type_select); | add_option("asset", "Raw asset", type_select); | ||
add_option("page", " | add_option("page", "Book/comic page", type_select); | ||
add_option("designdoc", "Design documentation", type_select); | add_option("designdoc", "Design documentation", type_select); | ||
add_option("document", "PDF document", type_select); | |||
add_option("audio", "Audio file", type_select); | add_option("audio", "Audio file", type_select); | ||
add_option("real", "Real-world image", type_select); | add_option("real", "Real-world image", type_select); | ||
Line 206: | Line 207: | ||
specific_media_text.size = "46"; | specific_media_text.size = "46"; | ||
specific_media_text.onchange = update_fields; | specific_media_text.onchange = update_fields; | ||
specific_media_text.value = "Halo Encyclopedia (2022 edition)"; // recent big release | |||
specific_media_span.appendChild(document.createTextNode(" Please enter the book title exactly: ")); | specific_media_span.appendChild(document.createTextNode(" Please enter the book title exactly: ")); | ||
specific_media_span.appendChild(specific_media_text); | specific_media_span.appendChild(specific_media_text); | ||
Line 229: | Line 231: | ||
add_media("Halo 4", game_select); | add_media("Halo 4", game_select); | ||
add_media("Halo 5: Guardians", game_select); | add_media("Halo 5: Guardians", game_select); | ||
add_media("Halo Infinite", game_select); | add_media("Halo Infinite", game_select, 'selected'); | ||
add_media("Halo: The Master Chief Collection", game_select); | add_media("Halo: The Master Chief Collection", game_select); | ||
add_media("Halo Wars", game_select); | add_media("Halo Wars", game_select); | ||
Line 281: | Line 283: | ||
add_media("Halo: Nightfall", film_select); | add_media("Halo: Nightfall", film_select); | ||
add_media("Halo: The Fall of Reach - The Animated Series", film_select); | add_media("Halo: The Fall of Reach - The Animated Series", film_select); | ||
add_media("Halo: The Television Series", film_select); | add_media("Halo: The Television Series", film_select, 'selected'); | ||
add_media("Other Halo film/series", film_select); | add_media("Other Halo film/series", film_select); | ||
Line 313: | Line 315: | ||
add_media("Halo: Collateral Damage", comic_select); | add_media("Halo: Collateral Damage", comic_select); | ||
add_media("Halo: Lone Wolf", comic_select); | add_media("Halo: Lone Wolf", comic_select); | ||
add_media("Halo Graphic Novel", comic_select); | add_media("Halo Graphic Novel", comic_select, 'selected'); | ||
add_media("Halo: Tales from Slipspace", comic_select); | add_media("Halo: Tales from Slipspace", comic_select); | ||
add_media("Other Halo comic/graphic novel", comic_select); | add_media("Other Halo comic/graphic novel", comic_select); | ||
Line 334: | Line 336: | ||
screenshot_select.onchange = update_fields; | screenshot_select.onchange = update_fields; | ||
add_option("character", "Character or AI | add_option("character", "Character or AI", screenshot_select); | ||
add_option("multiplayer", "Multiplayer content", screenshot_select); | |||
add_option("weapon", "Weapon", screenshot_select); | add_option("weapon", "Weapon", screenshot_select); | ||
add_option("vehicle", "Vehicle", screenshot_select); | add_option("vehicle", "Vehicle", screenshot_select); | ||
add_option("menu", "Menu", screenshot_select); | add_option("menu", "Menu", screenshot_select); | ||
add_option("other", "Other", screenshot_select); | add_option("other", "Other", screenshot_select); | ||
Line 638: | Line 640: | ||
} | } | ||
if (cur_type == "screenshot") { | if ((cur_media == "game" || cur_media == "film") && cur_type == "screenshot") { | ||
has_screenshot = true; | has_screenshot = true; | ||
} | } | ||
Line 657: | Line 659: | ||
cur_type == "render" || cur_type == "logo" || | cur_type == "render" || cur_type == "logo" || | ||
cur_type == "asset" || cur_type == "page" || | cur_type == "asset" || cur_type == "page" || | ||
cur_type == " | cur_type == "designdoc" || cur_type == "document" || | ||
cur_type == "audio" || cur_type == "wiki" | cur_type == "audio" || cur_type == "wiki" | ||
) { | ) { |