This user has autopatrolled rights on the English Wikipedia.
This user has MassMessage sender rights on the English Wikipedia.
This user has page mover rights on the English Wikipedia.
This user has template editor rights on the English Wikipedia.

User talk:Evad37

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
User page: This is a Wikipedia user page, not an encyclopedia article. If you find this page on any site other than Wikipedia, you are viewing a mirror site. Be aware that the page may be outdated and that the user to whom this page belongs may have no personal affiliation with any site other than Wikipedia itself. The original page is located at


My Message Policy

  • If I left you a message:
I would prefer you to answer on your talk page.  You may notify me using {{ping}}, or by placing {{Talkback|your username}} on my talk page.
  • If you leave me a message:
I will answer on my talk page.  If I want you to reply, I may place {{Talkback|Evad37|<section>|<timestamp>}} on your talk page, unless you specifically request otherwise.

JS/WP questions[edit]

I'm writing a user script.

I need to preview a page rather than save (submit).

How do you do that?

(More importantly, how do you find that information? I couldn't find it in the API) (

I look forward to your replies.    — The Transhumanist   23:33, 26 August 2018 (UTC)

@The Transhumanist: API documentation is at mw:API; you can also experiment with the API at Special:APISandbox (but beware that edit actions do still get made on-wiki). As for previewing a page, you can use action:'parse' as described at mw:API:Parsing wikitext. I've got some examples in User:Evad37/rater.js (line 766) and User:Evad37/XFDcloser/v3.js (line 2120). - Evad37 [talk] 02:17, 27 August 2018 (UTC)
Those seem rather complex. So much so, that I can't make heads or tails of them. Isn't there a simple one-line command to make the current page show in preview mode? Making the page save is as simple as:
One would hope there would be something simple like that for previewing.    — The Transhumanist   06:55, 6 September 2018 (UTC)
@The Transhumanist: Assuming you're on a edit page, you could get the script to simulate a click of the show preview button: $('#wpPreviewWidget > input').click();. Which then causes the page to reload, so you can't do anything with the script after that point (or at least not easily) - Evad37 [talk] 07:04, 6 September 2018 (UTC)
Thank you. That sounds perfect for direct editing – I will definitely use it. By this point in the process, the script has already done its thing, leaving just one task left to do for the editor: inspect the page before saving.
As for editing multiple pages, what I'd like to do is be able to Ctrl+click on a bunch of different redlinks and have the script run in each tab that is created by doing so, insert some text, and then show a preview as if the preview button was clicked. That is, each tab should have a preview in it ready and waiting for me to go and look at. Then I could just inspect the page and click "Save". Ctrl+clicking on redlinks works fine for creating new tabs, but the script doesn't run in any of them. Each edit window is empty, with the cursor waiting at the beginning of the editing frame.    — The Transhumanist   07:25, 6 September 2018 (UTC)
So basically you want the script to auto-run if the page does not exist, and is in Portal: namespace, and is not a subpage? - Evad37 [talk] 07:30, 6 September 2018 (UTC)
When a "Creating" page is opened in a tab, and doesn't have a forward slash in its title.
When you click on a redlink regularly, you get a page with a <title> that starts with "Creating", and the page has an empty edit window on it. When you Ctrl+click on that redlink, you get a tab; then, when you go to that tab, there's the same page I just described. So, there appears to be a page that exists as soon as you go there. It looks like a perfectly viable html page to me. The thing I don't understand is, why the script runs in the first instance of that page, and not the second.    — The Transhumanist   07:56, 6 September 2018 (UTC)
What you've got in User:The_Transhumanist/QuickPortal.js is working for me as-is, regardless of whether I click a red link, ctrl-click it, or type it in the url bar - Evad37 [talk] 08:22, 6 September 2018 (UTC)
When you cltrl-click on a redlink, are you switched to the new tab immediately? When I have "When you open a link in a new tab, switch to it immediately" checked marked in preferences (Firefox), the script runs. But I'd like to click on a bunch of redlinks without going to them, so I leave that checkbox unchecked. Have you tried that? What happens?    — The Transhumanist   04:10, 7 September 2018 (UTC)
I just tried ctrl-click on a portal redlink in Chromium (a Chrome clone), with the switch-immediately feature turned off, and the script did not run. Apparently, I must be in the tab for the script to run. What about you? Does the script run when you open a tab that you are not immediately switched to?    — The Transhumanist   04:22, 7 September 2018 (UTC)

After I added your line for previewing the page, it worked, but each tab went into an endless loop, because the script ran again each time a new edit page was presented (which is what happens with preview). So I added a conditional so it would only continue if the page was empty, and a weird thing happened. The tabs went into an endless loop until I looked at them. Meaning they were empty until I actually went there. Bizarre. I have no idea why it is behaving that way. But, on the bright side, I'm further along with this thing than I was. Thank you.

I'll tinker around with it some more, and will let you know how far I get.    — The Transhumanist   05:12, 7 September 2018 (UTC)

The problem went away after turning wikEd off. Works like a charm. Thank you for your help.    — The Transhumanist   05:38, 7 September 2018 (UTC)

Transclude short description[edit]

Hi Evad37, How difficult would it be to write a template that transcludes the short description of an article as an annotation? The usage would be something like {{Transclude short description|Foo}} and should return A metasyntactic variable commonly used in template discussions. It would mainly be useful to annotate a list of article links, so {{Annotated link|Foo}} would return [[Foo]] – A metasyntactic variable commonly used in template discussions which would be useful in list articles like indexes. Part of it should be easy, as manually edited short descriptions are generally near the top of the article and use a consistent and straightforward syntax, {{short description|A metasyntactic variable commonly used in template discussions}}, but some are embedded in infoboxes and disambiguation notice templates. Even just working with the standard short description template would be useful. Cheers, · · · Peter (Southwood) (talk): 10:05, 6 September 2018 (UTC)

For articles using the standard short description template it should be easy enough. But if its within a template then its more difficult and expensive (in terms of Lua usage), and may not be practical. - Evad37 [talk] 00:11, 7 September 2018 (UTC)
Thanks, Could you put the basic case on your list of things to consider doing if you ever have an idle moment? I could probably manage the annotated link from there. Cheers, · · · Peter (Southwood) (talk): 06:50, 8 September 2018 (UTC)
@Pbsouthwood: Actually, {{Template parameter value}} already exists and will work for this, e.g. for Achilles: {{Template parameter value|Achilles|short description|1|1}} → Greek mythological hero - Evad37 [talk] 05:34, 13 September 2018 (UTC)
Seek, and ye shall find, Ask the right person and ye shall be directed to existing stuff, saving a lot of seeking time. Thanks, · · · Peter (Southwood) (talk): 05:42, 13 September 2018 (UTC).

Article assessment advice[edit]

Hello, I noticed you assessed Imaqtpie as Start class. It is one of my first articles I have created, so I was wondering if you would please give me some advice on how to improve it to C class or better? I have already taken a look at Wikipedia:WikiProject_Video_games/Assessment#Quality_scale but I am still confused. Thank you. Derek M (talk) 17:26, 6 September 2018 (UTC)

@Derek M: You'll need to ask Lee Vilenski, since they were the one to actually assess that article [1] - Evad37 [talk] 23:49, 6 September 2018 (UTC)
Wow, I'm so sorry I don't even know how I thought it was you. Derek M (talk) 01:12, 7 September 2018 (UTC)
You are the King of Assessment!    — The Transhumanist   04:15, 7 September 2018 (UTC)

A barnstar for you![edit]

Vitruvian Barnstar Hires.png The Technical Barnstar
XFDcloser is just brilliant. Nothing more to say.. Galobtter (pingó mió) 05:17, 7 September 2018 (UTC)

AWB task request: please help with the backlog[edit]


If you have AWB laying around, please dust it off and crank it up! ;)

We have a growing backlog!

There are now 3,622 portals. Of those, 2,309 are of the new design.

Many of the new portals are orphaned or near orphaned, and need links pointing to them:

  1. A portal link at the bottom of corresponding navigation footer template. E.g., Template:Machines for Portal:Machines. See examples of a portals link at the bottom of Template:Robotics and Template:Forestry.
  2. A {{Portal}} box in the See also section of the corresponding root article for each portal. If there is no See also section, create one and place the portal template in that. (Rather than placing them in an external links section -- they're not external links).
  3. A {{Portal}} template placed at the top of the category page corresponding to each portal.

To make a list of corresponding templates, you can use AWB's make list feature to make a list of the pages in Category:Single-page portals. Then you copy that list to a sandbox, and replace \nPortal: with ]]\n* [[Template:, using WP:wikEd. That will give you a list of templates to work on. Then you set skip in AWB to skip the ones that already have the portal link.

To make a list of corresponding root articles, make a list of portal links, and then remove "Portal:" from the links.

To make a list of category links to process, make sure you use a leading colon (:) in the category links, like this: [[:Category:Blue Öyster Cult]].

All new and revamped portals can be found at Category:Single-page portals.

Thank you.    — The Transhumanist   20:44, 17 September 2018 (UTC)

NPR Newsletter No.13 18 September 2018[edit]

Hello Evad37, thank you for your work reviewing New Pages!

The New Page Feed currently has 2700 unreviewed articles, up from just 500 at the start of July. For a while we were falling behind by an average of about 40 articles per day, but we have stabilised more recently. Please review some articles from the back of the queue if you can (Sort by: 'Oldest' at Special:NewPagesFeed), as we are very close to having articles older than one month.

Project news
As part of this project, the feed will have some larger updates to functionality next month. Specifically, ORES predictions will be built in, which will automatically flag articles for potential issues such as vandalism or spam. Copyright violation detection will also be added to the new page feed. See the projects's talk page for more info.
Moving to Draft and Page Mover
  • Some unsuitable new articles can be best reviewed by moving them to the draft space, but reviewers need to do this carefully and sparingly. It is most useful for topics that look like they might have promise, but where the article as written would be unlikely to survive AfD. If the article can be easily fixed, or if the only issue is a lack of sourcing that is easily accessible, tagging or adding sources yourself is preferable. If sources do not appear to be available and the topic does not appear to be notable, tagging for deletion is preferable (PROD/AfD/CSD as appropriate). See additional guidance at WP:DRAFTIFY.
  • If the user moves the draft back to mainspace, or recreates it in mainspace, please do not re-draftify the article (although swapping it to maintain the page history may be advisable in the case of copy-paste moves). AfC is optional except for editors with a clear conflict of interest.
  • Articles that have been created in contravention of our paid-editing-requirements or written from a blatant NPOV perspective, or by authors with a clear COI might also be draftified at discretion.
  • The best tool for draftification is User:Evad37/MoveToDraft.js(info). Kindly adapt the text in the dialogue-pop-up as necessary (the default can also be changed like this). Note that if you do not have the Page Mover userright, the redirect from main will be automatically tagged as CSD R2, but in some cases it might be better to make this a redirect to a different page instead.
  • The Page Mover userright can be useful for New Page Reviewers; occasionally page swapping is needed during NPR activities, and it helps avoid excessive R2 nominations which must be processed by admins. Note that the Page Mover userright has higher requirements than the NPR userright, and is generally given to users active at Requested Moves. Only reviewers who are very experienced and are also very active reviewers are likely to be granted it solely for NPP activities.
List of other useful scripts for New Page Reviewing

  • Twinkle provides a lot of the same functionality as the page curation tools, and some reviewers prefer to use the Twinkle tools for some/all tasks. It can be activated simply in the gadgets section of 'preferences'. There are also a lot of options available at the Twinkle preferences panel after you install the gadget.
  • In terms of other gadgets for NPR, HotCat is worth turning on. It allows you to easily add, remove, and change categories on a page, with name suggestions.
  • MoreMenu also adds a bunch of very useful links for diagnosing and fixing page issues.
  • User:Equazcion/ScriptInstaller.js(info): Installing scripts doesn't have to be complicated. Go to your common.js and copy importScript( 'User:Equazcion/ScriptInstaller.js' ); into an empty line, now you can install all other scripts with the click of a button from the script page! (Note you need to be at the ".js" page for the script for the install button to appear, not the information page)
  • User:TheJosh/Scripts/NewPagePatrol.js(info): Creates a scrolling new pages list at the left side of the page. You can change the number of pages shown by adding the following to the next line on your common.js page (immediately after the line importing this script): npp_num_pages=20; (Recommended 20, but you can use any number from 1 to 50).
  • User:Primefac/revdel.js(info): Is requesting revdel complicated and time consuming? This script helps simplify the process. Just have the Copyvio source URL and go to the history page and collect your diff IDs and you can drop them into the script Popups and it will create a revdel request for you.
  • User:Lourdes/PageCuration.js(info): Creates a "Page Curation" link to Special:NewPagesFeed up near your sandbox link.
  • User:Writ Keeper/Scripts/deletionFinder.js: Creates links next to the title of each page which show up if it has been previously deleted or nominated for deletion.
  • User:Evad37/rater.js(info): A fantastic tool for adding WikiProject templates to article talk pages. If you add: rater_autostartNamespaces = 0; to the next line on your common.js, the prompt will pop up automatically if a page has no Wikiproject templates on the talk page (note: this can be a bit annoying if you review redirects or dab pages commonly).

Go here to remove your name if you wish to opt-out of future mailings. MediaWiki message delivery (talk) 23:11, 17 September 2018 (UTC)

Signpost update[edit]

The publication date for the Signpost is fast approaching, and your section seems to need some amount of work until it's publishable. Please continue working! Eddie891 Talk Work 15:10, 19 September 2018 (UTC)


next meetup thingoes for next event in perth are a real mess - and you are so good at fixing it up - 16th cancelled till following week - any chance to have a once over of all the points of mistakes etc? if you are able much appreciated. thanks JarrahTree 23:49, 19 September 2018 (UTC)

Precious anniversary[edit]

Cornflower blue Yogo sapphire.jpg
Five years!

--Gerda Arendt (talk) 06:53, 22 September 2018 (UTC)

Portals WikiProject update #019, 22 Sept 2018[edit]

Portals progress report[edit]

Don't blink. You might miss something.

As of a few days ago, portals had doubled in about a month and a half.

Also, there were 98 incompleted portals in Category:Portals under construction. Now there are just 43.

The WikiProject page has been thoroughly revised[edit]

The goals, plans, and task sections have all been updated.

Orphaned portals need a home...[edit]

Many new portals are still orphans, and need links pointing to them:

  1. A portal link at the bottom of corresponding navigation footer template. E.g., Template:Machines for Portal:Machines. See examples of a portals link at the bottom of Template:Robotics and Template:Forestry.
  2. A {{Portal}} box in the See also section of the corresponding root article for each portal. If there is no See also section, create one and place the portal template in that. (Rather than placing them in an external links section -- they're not external links).
  3. A {{Portal}} template placed at the top of the category page corresponding to each portal.

All new and revamped portals can be found at Category:Single-page portals.


This is the main list of portals.

Nearly 2,000 of the new portals need to be listed here.

They can be found at Portal talk:Contents/Portals#These are not listed yet. Instructions are included there.

Customized Portal Rating system is now in place[edit]

Portals now have a new rating system of their own designed specifically to support portal evaluation! We were trying to use the standard assessment system for articles, but that doesn't fit portals very well.

Many thanks to Evad37, Waggers, AfroThundr3007730, SMcCandlish, Tom, BrendonTheWizard, and Pbsouthwood for their work and input on this.

The new system can be found at the top of all portal talk pages, in the WikiProject portals box. Those with "???" ratings need to be assessed, which makes up most of the older portals.

Most of the new portals were started out with an initial "Low" level of importance when their talk pages were created. Those deserving higher importance should be promoted as you come across them.

Improving the new portals[edit]

The starting point for new portals included minimal parameters and content, in the form of default values in the template(s) used for their creation.

Embellishing embedded search strings[edit]

So, for the search strings in the "Did you know..." and "In the news" sections, this was the magic word {{PAGENAME}}, which represents the portal's name. Unfortunately, the resulting term is alway capitalized, which limits its effectiveness as a search string for anything but proper nouns. Results for those two sections can be improved, by replacing the "PAGENAME" magic word with multiple search strings, and search strings that begin with lower case letters. There is no inherent limit as to how many search parameters may be included. Lua search notation is used. The more general the subject, the more subtopic search terms you may want to include. For example, on Portal:Avengers (comics), {{PAGENAME}} turned up nothing. But, when more parameters were added, as in the wikicode below...

{{Transclude selected recent additions | {{PAGENAME}} | Iron Man | Spiderman | Antman | Hawkeye | The Hulk | Incredible Hulk | David Banner | Captain America | Scarlet Witch | Black Widow | Tony Stark | Nick Fury | Age of Ultron | Infinity War | months=36 | header={{Box-header colour|Did you know... }}|max=6}}

... that returned several results in the portal's DYK section.

Be sure you make the improvements to both the DYK section and the "In the news" section, as they both require the search strings.

Expanding the slideshow contents[edit]

The default starting selection for the image slideshow in most new portals is whatever images happen to be in the corresponding root article (via the PAGENAME magic word). You can improve image slideshows by adding more sourcepages and filenames as parameters in the "Selected images" section of portals.

See Template:Transclude files as random slideshow/doc for instructions.

More exciting things are to come...[edit]

Portals used to take about 6 hours or more to create. Now, for subjects that have particular navigation support, we've got that down to about one minute each, with even more content displayed than ever. True, that means the new portals pick you, rather than the other way around. Creating a specific portal that doesn't happen to have the requisite navigation support is still pretty time consuming. But, we are working on extending our reach beyond the low-hanging fruit.

And efforts are ongoing to keep shaving time off of the creation process. Eventually, we may get it down to seconds each.

In addition to improving automation, we're always looking for new features and improvements that we can add to portals, and there is plenty of potential to expand on the standard design so that new portals are even better right out of the starting gate. Additional designs are also possible.

On the horizon, there are many more portals waiting to be created. And we can expect to see at least a few more section types emerge. I never expected slideshows, for example, especially not for excerpts. Who knows where innovation will take us next?

Keep up the great work everyone.

Sincerely,    — The Transhumanist   07:06, 23 September 2018 (UTC)