Wikipedia talk:WikiProject Resource Exchange/Resource Request/Archive 2: Difference between revisions

Content deleted Content added
Line 47:
 
Hi! I just made [[User:A. C. Santacruz/Userboxes/RX|a userbox about this page]], in case y'all want to add it to your userpages. [[User:A. C. Santacruz|A. C. Santacruz]] ⁂ [[User talk:A. C. Santacruz|Please ping me!]] 11:03, 6 April 2022 (UTC)
 
== Section headings ==
 
I notice that the instruction to add a heading is now bolded in red. I frequently miss doing this. I shouldn't do, because I am well used to adding a section heading on new posts. Speaking personally, I think the reason that this happens for me is because there is already something written in the heading text box (the instruction to write something!) plus, there are a whole bunch of other instructions that precede it. Anyway, the red shouting worked this time. We'll have to see if I keep that up. [[User:Spinningspark|<b style="background:#FAFAD2;color:#C08000">Spinning</b>]][[User talk:Spinningspark|<b style="color:#4840A0">Spark</b>]] 15:31, 12 December 2021 (UTC)
:I was just about to come here about this issue. I've gotten the section headings fine, but I watchlist this page and a ''lot'' of its edits are people fixing their heading. I think the autofilled text is a negative. [[User:Vaticidalprophet|<b style="color:black">Vaticidal</b>]][[User talk:Vaticidalprophet|<b style="color:#66023C">prophet</b>]] 15:55, 12 December 2021 (UTC)
::I agree. I used this page for the first time a couple of weeks ago, and I was about to hit "Publish changes" when I noticed that the edit reason said {{tq|/* Please replace this subject line with a more meaningful description of the request. */ new section}}. I think the pre-filled heading is the problem. [[User:TompaDompa|TompaDompa]] ([[User talk:TompaDompa|talk]]) 16:08, 12 December 2021 (UTC)
:::Fine with me. Scrolling through the history of the page it does seem to happen a lot so it could be worth a shot. Another option would be a JS form, like the one used at [[WP:RFPP/I]], where you can require certain fields before someone submits a request. [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 16:44, 12 December 2021 (UTC)
::::I came to the talk page to bring this up... it seems like we have consensus here—can someone who knows how to change this do so? Best – [[User:Aza24|Aza24]] ([[User talk:Aza24|talk]]) 08:20, 2 January 2022 (UTC)
:::::{{done}} and I also adjusted the wording in the editnotice [https://en.wikipedia.org/w/index.php?title=Template:Resource_Request_submission/Edit_intro&diff=1063306526&oldid=1014359966], feel free to wordsmith further. [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 08:32, 2 January 2022 (UTC)
:This could cause problems. If the subject line of the new request is populated, it works fine. But if the subject line is left empty, the new request is added to the bottom of the page without a section header. See [https://en.wikipedia.org/w/index.php?title=Wikipedia%3AWikiProject_Resource_Exchange%2FResource_Request&type=revision&diff=1063483094&oldid=1063482891 this edit]. I've also tested this with a copy of the [[WP:RX]] page in my sandbox. —[[User:Bruce1ee|Bruce1ee]][[User talk:Bruce1ee|<sup>''talk''</sup>]] 09:25, 3 January 2022 (UTC)
::It prompts you if you don't fill out the subject line and you have to click "Publish changes" a second time, right? I thought that would be enough of a reminder but I guess not. I still think a MediaWiki JS form may be a good resolution but I think we'd need the help of an interface administrator. [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 14:35, 3 January 2022 (UTC)
:::{{ping|DanCherek}} You're right, it ''does'' prompt you if you leave the subject line blank. I've just tried it on the [[WP:RX]] page. I guess when [https://en.wikipedia.org/w/index.php?title=Wikipedia%3AWikiProject_Resource_Exchange%2FResource_Request&type=revision&diff=1063483094&oldid=1063482891 this edit] was saved earlier, the requester ignored the warning. I had tried it previously in my sandbox, and it didn't prompt me for a subject, which is what led me to my above conclusion. So, I'm sorry, I got it wrong. I take back what I said above. —[[User:Bruce1ee|Bruce1ee]][[User talk:Bruce1ee|<sup>''talk''</sup>]] 15:42, 3 January 2022 (UTC)
:::{{ping|DanCherek}} It happened again today [https://en.wikipedia.org/w/index.php?title=Wikipedia%3AWikiProject_Resource_Exchange%2FResource_Request&type=revision&diff=1064044238&oldid=1064043220 here]. It seems some editors either don't see the warning, or simply ignore it. Maybe this isn't a big deal, but I think we need watch it and see how often it happens. —[[User:Bruce1ee|Bruce1ee]][[User talk:Bruce1ee|<sup>''talk''</sup>]] 08:48, 6 January 2022 (UTC)
::::Yeah, I can see how it could be easy to miss, if they think that it just didn't go through the first time they clicked for some reason and didn't look closely enough. [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 08:50, 6 January 2022 (UTC)
:::::Just an update: there have since been 16 more instances of users not populating the subject line, resulting in new requests with no section headers. Here are the last three occurrences: [https://en.wikipedia.org/w/index.php?title=Wikipedia%3AWikiProject_Resource_Exchange%2FResource_Request&type=revision&diff=1081458298&oldid=1081451401], [https://en.wikipedia.org/w/index.php?title=Wikipedia%3AWikiProject_Resource_Exchange%2FResource_Request&type=revision&diff=1081570980&oldid=1081501655], [https://en.wikipedia.org/w/index.php?title=Wikipedia%3AWikiProject_Resource_Exchange%2FResource_Request&type=revision&diff=1081622619&oldid=1081621066]. In many cases the requester adds the missing section header themselves, but some don't notice it. —[[User:Bruce1ee|Bruce1ee]][[User talk:Bruce1ee|<sup>''talk''</sup>]] 06:52, 10 April 2022 (UTC)
::::::Do you think we should bring the default header back? [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 22:39, 12 April 2022 (UTC)
:::::::My personal feeling is yes, but there was consensus above to remove it, and it works most of the time. I think we need to hear what other regulars feel about it. —[[User:Bruce1ee|Bruce1ee]][[User talk:Bruce1ee|<sup>''talk''</sup>]] 23:42, 12 April 2022 (UTC)
 
=== JavaScript request form ===
[[File:JS request form for Resource Exchange.png|thumb|upright=2|Example]]
I have created a sample JavaScript form for creating a new request at [[User:DanCherek/Resource-Request-form.js]]. The image shows what the interface looks like. This would enable us to require a section heading before the form can be submitted, and it also sets the edit summary accordingly. I based the script on the one implemented at [[Wikipedia:Requests for page protection]]. Thoughts? [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 23:23, 17 April 2022 (UTC)
 
:@[[User:DanCherek|DanCherek]] I like it. My knowledge of JavaScript is dangerous, so I can't comment on the code, but if it works as you describe, it will be great. I assume it will be called when the "Click here to create a new request" button is clicked. Just keep in mind that not all requesters use that button. Some simply add their request to the bottom of the RX page, although they will generally always add a new section header.
:Can you put a copy of the RX page in your sandbox and link your JavaScript so we can test it? —[[User:Bruce1ee|Bruce1ee]][[User talk:Bruce1ee|<sup>''talk''</sup>]] 09:02, 18 April 2022 (UTC)
::Sure. For security reasons, auto-loading the form isn't possible until an interface administrator moves it to the MediaWiki namespace, so '''here are the steps for testing''':
::#Make sure you are comfortably reassured that the code at [[User:DanCherek/Resource-Request-form.js]] is safe. (It should be, and is set up to run on only one particular page, but it's good to double check.)
::#Do one of the following:
::#*Add <code><nowiki>{{subst:lusc|User:DanCherek/Resource-Request-form.js}}</nowiki></code> to [[Special:MyPage/common.js|your common.js file]], then go to [[User:DanCherek/Resource Request]] and click the new request button.
::#*Or, if you don't want to edit your common.js file, go to [[User:DanCherek/Resource Request]] and click the new request button. It will not load the form because it isn't in the MediaWiki namespace. Use your browser's JavaScript console to run the following: <code><nowiki>mw.loader.load('/w/index.php?title=User:DanCherek/Resource-Request-form.js&action=raw&ctype=text/javascript')</nowiki></code>.
::#In both cases you should see the form appear. Clicking "Submit request" will add the request to [[User:DanCherek/Resource Request]].
::[[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 13:17, 18 April 2022 (UTC)
:::@[[User:DanCherek|DanCherek]]: I've played around with it a little, and it appears to be working fine. Just a couple of observations: The header must be entered first, otherwise the "Submit request" button changes to "Add heading" and no request preview shows. Can the "Add heading" button be made more prominent? Currently it looks greyed-out and it might not be clear to the user that a heading is required. Also I see there is an "edit" button next to the section header in the preview, which, if you click it, doesn't behave as expected. Can the "edit" button be removed from the preview? Otherwise it's looking good. —[[User:Bruce1ee|Bruce1ee]][[User talk:Bruce1ee|<sup>''talk''</sup>]] 15:22, 18 April 2022 (UTC)
::::Thanks for the feedback. I will work on those items (not sure how long it will take as I am a JS newbie!). One other thing I forgot to include was the information in {{tl|Resource Request submission/Edit intro}}. [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 15:47, 18 April 2022 (UTC)
:::::Managed to get rid of the "edit" button... [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 23:59, 15 May 2022 (UTC)
:::::{{u|Bruce1ee}}, do you mind giving it another go when you have a chance and let me know what you think? [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 02:40, 16 May 2022 (UTC)
::::::@[[User:DanCherek|DanCherek]]: It looks fine now. I like that the submit button won't work or only appears once something is typed into the header. I haven't been able to find any issues, but perhaps some of the other RX regulars should also try it out. As I said earlier, not all requesters use the "create new request" button. They simply add their request to the bottom of the RX page. —[[User:Bruce1ee|Bruce1ee]][[User talk:Bruce1ee|<sup>''talk''</sup>]] 06:54, 16 May 2022 (UTC)
:::::::Thanks! Yes, anyone who manually adds the request should not be affected by any of this. [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 13:54, 16 May 2022 (UTC)
::::::::{{ping|DanCherek}} I saw your edit summary and I"m a bit confused as to what request form you're wanting to test. ― [[User:Blaze Wolf|<b style="background:#0d1125;color:#51aeff;padding:1q;border-radius:5q;">Blaze&nbsp;Wolf</b>]][[User talk:Blaze Wolf|<sup>Talk</sup>]]<sub title="Discord Username" style="margin-left:-22q;">Blaze&nbsp;Wolf#6545</sub> 13:56, 16 May 2022 (UTC)
:::::::::Hi {{u|Blaze Wolf}}, thanks for the quick response! Sorry for any confusion. We are trying to develop a new form for people to request resources on this page – it looks similar to the screenshot that I displayed above. To test it, just follow the three steps that I posted above on April 18 (I bolded the part where it says "here are the steps for testing"). Let me know if you have any additional questions! [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 13:59, 16 May 2022 (UTC)
::::::::::{{ping|DanCherek}} It looks good, however the issue I have is that it uses the "cite journal" template by default (which is just what's already there). While sometimes that may be helpful, shouldn't it give you the option of different templates (such as "cite web")? Also, when I click the new request button, I get an error in the corner saying "Invalid withJS value Only pages from the MediaWiki namespace are allowed" even with the script installed. ― [[User:Blaze Wolf|<b style="background:#0d1125;color:#51aeff;padding:1q;border-radius:5q;">Blaze&nbsp;Wolf</b>]][[User talk:Blaze Wolf|<sup>Talk</sup>]]<sub title="Discord Username" style="margin-left:-22q;">Blaze&nbsp;Wolf#6545</sub> 14:07, 16 May 2022 (UTC)
:::::::::::Thanks, that's very helpful! The use of {{tlx|cite journal}} was just matching the current [[WP:RX]] default. Changing it to something else is trivial but allowing people to switch between options may be a bit more involved so I'll give it some thought. Yeah, I am seeing that little corner pop-up too – I {{em|think}} it will go away if/when we change the script ___location from my own userspace to the MediaWiki namespace {{smiley}} [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 14:12, 16 May 2022 (UTC)
::::::::::::Ah alright sounds good. The thing that bothers me is without that I can just use my citation tool to use a template other than "cite journal", but with the script I have to use cite journal (which might not work if I'm trying to get info from a paywalled source) ― [[User:Blaze Wolf|<b style="background:#0d1125;color:#51aeff;padding:1q;border-radius:5q;">Blaze&nbsp;Wolf</b>]][[User talk:Blaze Wolf|<sup>Talk</sup>]]<sub title="Discord Username" style="margin-left:-22q;">Blaze&nbsp;Wolf#6545</sub> 14:14, 16 May 2022 (UTC)
:::::::::::::Oh, that's a really good point. I use the citation toolbar quite a lot when editing too, and I forgot that that's not there in the form. Hmm, that probably needs to be resolved somehow before deploying this. [[User:DanCherek|DanCherek]] ([[User talk:DanCherek|talk]]) 14:17, 16 May 2022 (UTC)