Wikipedia talk:WikiProject User scripts

From Wikipedia, the free encyclopedia

To-do list for Wikipedia:WikiProject User scripts: edit · history · watch · refresh
  • Create a "bare bones" monobook script that is standardized, easy to read, well commented, and based on functions.
  • Create a list of functions that will interact well with the standard.


Contents

[edit] AutoAFD

The script don't capture correctly the pagename when there are accentuation on the title. Is there any way to fix it? --Giro720 00:07, 11 October 2006 (UTC)

  • I think it has to do with unescape(). For some odd reason, unescaping when the title contains an accented word causes weird characters to appear. AZ t 16:04, 24 November 2006 (UTC)

[edit] Project directory

Hello. The WikiProject Council has recently updated the Wikipedia:WikiProject Council/Directory. This new directory includes a variety of categories and subcategories which will, with luck, potentially draw new members to the projects who are interested in those specific subjects. Please review the directory and make any changes to the entries for your project that you see fit. There is also a directory of portals, at User:B2T2/Portal, listing all the existing portals. Feel free to add any of them to the portals or comments section of your entries in the directory. The three columns regarding assessment, peer review, and collaboration are included in the directory for both the use of the projects themselves and for that of others. Having such departments will allow a project to more quickly and easily identify its most important articles and its articles in greatest need of improvement. If you have not already done so, please consider whether your project would benefit from having departments which deal in these matters. It is my hope that all the changes to the directory can be finished by the first of next month. Please feel free to make any changes you see fit to the entries for your project before then. If you should have any questions regarding this matter, please do not hesitate to contact me. Thank you. B2T2 14:27, 26 October 2006 (UTC)

[edit] Need a tag for WikiProject Fan Fiction

...I have no idea where else to find someone to help me out with this without going to the main Help Desk, and that's usually a pain to edit. :\ Hopefully one of you can help?

Anyway, all I need is a tag - like most WikiProjects have already - to put on the Talk pages of articles that fall within the scope of WikiProject Fan Fiction. Can anybody here help out with this? Runa27 22:51, 26 October 2006 (UTC)

SON OF TWO STRANGERS. ARGH. >.< I TOLD that admin I was working on reinvigorating the project, and he STILL deleted it for being inactive! RIGHT after I added all those pages and started linking them to the project as the previous project runner had never done ... ARGH.
Give me a few hours and I shall restart it. It'll be at that location, don't worry. (Of course if the original founder still was at all active and had actually gotten all the appropriate articles tagged as being under the project, I wouldn't have to go through all this, but oh well). I have to go to dinner first with the family, but afterwards I shall fix this. Runa27 22:57, 26 October 2006 (UTC)
Actually you mispelled the link, which is why it is red; it still exists at Wikipedia:WikiProject Fan Fiction. As for the tag, look at existing templates like {{WPBooks}}. Create a template page, with a content similar to the following:
{| class="messagebox standard-talk"
|- style="vertical-align:top;"
| rowspan="3" width="50px" | [[Image:Open book 01.svg|60px]]
| colspan="2" style="font-style:italic;text-align: center;" |
This article is within the scope of '''[[Wikipedia:WikiProject Fan Fiction|WikiProject Fan Fiction]]'''. You can discuss the Project at its [[Wikipedia talk:WikiProject Fan Fiction|talk page]].
|}<includeonly></includeonly><noinclude>
[[Category:Fan fiction|*]]
</noinclude>

Take a look at Help:Template for more information AZ t 23:11, 26 October 2006 (UTC)

I've made a template at {{WikiProject Fan Fiction}}. Tra (Talk) 23:20, 26 October 2006 (UTC)

[edit] Help!

I need help with my scripts. Currently, only navigation popups and InstaView are enabled. Howver, there are a lot more scripts, which aren't working. Please look at my monobook.js and then fix it if you can, or leave a suggestion on my talk page. Thanks in advance, ςפקιДИτς 01:17, 31 October 2006 (UTC).

Replied on User talk:SFGiants. --ais523 15:11, 31 October 2006 (UTC)

[edit] Changes to accesskeys and tooltips

Mailing list thread. Apparently some planned changes in Mediawiki might break some user js, but I don't really understand. the wub "?!" 09:51, 6 November 2006 (UTC)

[edit] Replacing text through scripting

I have created a few scripts so that I am able to quickly assess articles of stub or start status for various Wikiprojects I am part of. My problem is that, as of right now, the only way for me to use the scripts is if there is nothing at all in the talk page besides the template in question (which my script then wipes out and replaces). Is there away to search for, say, {{WPBiography}} and replace only that with {{WPBiography|class=start|importance=low}} while keeping everything else intact? here is an example of one of my scripts:

// Code originally by [[User:Raylu|raylu]]
// Modified by [[User:Moeron]]
//
//
// This script adds a "stub,low" tab to the top of Article pages
// when in edit mode.

function docvg() {
  document.editform.wpTextbox1.value = '{{' + 'cvgproj' + '|' + 'class=stub' + '|' + 'importance=low' + '}' + '}';
  document.editform.wpSummary.value = 'Assessed as stub, low importance -- [[Category:Unassessed computer and video game articles|You can help!]]';
  document.editform.wpMinoredit.checked = false;
  document.editform.submit();
}

function addcvg() {
  addTab("javascript:docvg()", "cvg", "ca-cvg", "cvg", "");
  akeytt();
}

addOnloadHook(function() {
  if (document.title.indexOf("Talk:") != -1) {
  addOnloadHook(addcvg);
  }
});

Thanks for any help in advance. -- moe.RON Let's talk | done 22:04, 6 November 2006 (UTC)

You could try doing something similar to this and do a regexp replace on the article. Tra (Talk) 22:44, 6 November 2006 (UTC)
I am not very code literate, so, could you explain how I would use that script or point me where it is explained? -- moe.RON Let's talk | done 18:39, 15 November 2006 (UTC)
Try something like
document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.split("{"+"{WPBiography}}").
  join('{{' + 'WPBiography' + '|' + 'class=start' + '|' + 'importance=low' + '}' + '}';
(for the example given above). --ais523 09:14, 16 November 2006 (UTC)

[edit] Merge

Why merge? Wikipedia:Scripts seems to be about a wholly different sort of scripts. -- Jitse Niesen (talk) 00:47, 10 November 2006 (UTC)

The merge tag was subsequently changed by the same user to aim at Scripts (in article space), so I removed the tag as a WikiProject/article space merge would clearly be improper and lead to chaos. --ais523 16:13, 13 November 2006 (UTC)

On a separate note, someone started Wikipedia:Monobook, changing it from a previous redirect to MediaWiki:Monobook.css. The page is in bad need of cleanup; perhaps it should be merged w/ WP:US, WP:JS, or Wikipedia:WikiProject User scripts/Tutorial? Since there is also Special:Mypage/monobook.css, I don't know if that would be the correct merge to do though. AZ t 17:25, 3 December 2006 (UTC)

I'd support 'adopting' that page and moving it to a WikiProject subpage. --ais523 08:46, 4 December 2006 (UTC)

[edit] Arrows in edit summaries

At the moment, the software places a rightwards-pointing arrow on edit summaries generated by section edits and the contents of MediaWiki space place a leftwards-pointing arrow on autosummaries for redirecting, blanking, and replacing content (see WP:AES). Maybe it would be a good idea to have a standardised symbol on edit summaries generated by scripts and/or bots? --ais523 13:14, 4 December 2006 (UTC)

[edit] Wikipedia:WikiProject User scripts/Scripts/Formatter

Formatter is a nice small script useed by many users, but it doesn't seem to have a 'caretaker'. There are some suggestions on how to improve it on talk, but we don't have anybody to implement them - perhaps a person experienced with scripts could 'adopt' this script?-- Piotr Konieczny aka Prokonsul Piotrus | talk 21:28, 5 December 2006 (UTC)

I had a qick look and most of this script's functionality can be found in the fix buttons of wikEd. I would be happy to add suggestions to wikEd. Cacycle 22:05, 5 December 2006 (UTC)

[edit] Assistance with bureaucrat JS

Some time ago, Voice of All wrote a nifty little bureaucrat script that helps to close RfAs. Unfortunately, over time, it's become rather overfeatured, including several features that makes the job harder, rather than easier. Additionally, several bugs have developed, causing even more problems. At this time, I'm looking for a talented coder who can either adapt the existing code (located in the history of User:Essjay/bureaucrat.js), or write new code to do this, and only this:

  • Provide two tabs on RFA's: Success & Failure.
    • Success should add {{subst:rfap}} at the very top of the page, and {{subst:rfab}} at the very bottom. The link at the top of the page that says something along the line of "Say something here" (it changes rather frequently) should be removed, and replaced by the word "Final." "Ending" (or whatever it says that day) should be changed to "Ended." There should be an auto-edit summary of "Closed, promoted."
    • Failure should add {{subst:rfaf}} at the very top of the page, and {{subst:rfab}} at the very bottom. The link at the top of the page that says something along the line of "Say something here" (it changes rather frequently) should be removed, and replaced by the word "Final." "Ending" (or whatever it says that day) should be changed to "Ended." Auto-edit summary of "Closed, not promoted."
  • Clicking either of those tabs should open up the edit view of RFA. No annoying popups, no javascript to remove the listing, paint a stunningly realistic Monet, or scratch my back, just open the edit view of RFA so I can remove the listing.
  • Clicking success should open the edit view of the current "successful RFA's" page, whatever it is titled (there is a dicsussion about a change). Doesn't need to automatically add it, I can do that, just open the edit view.
  • Clicking failure should open the regular view of the main "unsuccessful RFA's" page; I'll pick the right archive from there.

That's all I need it to do; I don't need it to open up Special:Makesysop, the user's talk page, add comments to the RfA's talk page, check voting records, waive flags, or launch ICBMs at Willy on Wheels. From there, I can take the rest.

Thanks to whomever can take care of this for me. Essjay (Talk) 03:19, 11 December 2006 (UTC)

I've had a go at this; my attempt is currently in my script sandbox (User:ais523/sandbox.js). As you're requesting opening 3 pages, I've told it to open up the RfA mainpage and successful/unsuccessful RfA page in separate windows (it's not clear to me exactly what you're asking for there). Let me know what you think! --ais523 10:21, 11 December 2006 (UTC)
By the way, the script requires the libraries add LI link and add tab to work, both available at WP:US/S. --ais523 10:24, 11 December 2006 (UTC)
Thank you very much, you got it exactly! Thanks! Essjay (Talk) 01:40, 13 December 2006 (UTC)