Portal talk:Current events

From Wikipedia, the free encyclopedia
WikiProject Current events    (Inactive)
WikiProject icon This page was within the scope of WikiProject Current events, a project which is currently considered to be inactive.
 
This page has been mentioned by a media organization:
Important pages
Archiving the Portal
News about Wikipedia
About this Page
Suggest a Headline or Main Page In the News Item
Current Portal talk:Current events archives
1
2
3
4
5
6
7
8
Old Talk:Current events archives
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 (last archive up to: 1 Jan 2007)
Other old Talk:Current events archived discussions
Vote on tense
Setting the context
Too much analysis
Ongoing events
Original Current events GFDL
See Portal:Current events/October 2003 (history)
Recent changes
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017

Ongoing maintenance of the Archive pages

I have surveyed the Archive pages and found that the years 2003 and 2004 were not migrated to the one-page-per-day-included format that most all other years have followed. I have begun migrating them, starting with Portal:Current events/January 2003. I will continue to update the remaining ~23 pages over the next few weeks. This work falls under my efforts to make the Current Events portal have a mobile-friendly layout. Anyone who is interested in the work I'm doing can see my notes here: User:RossO/sandbox. Please reach out to me if you have any questions. — RossO (talk) 22:12, 12 September 2017 (UTC)

Noprint edit request

From
<span id="coordinates">[[Portal:Current events/Edit instructions|Edit instructions]]</span>
To
<span id="coordinates" class="noprint">[[Portal:Current events/Edit instructions|Edit instructions]]</span>

This link, like section edit, purge, and other non-content convenience links, should be noprint. Matt Fitzpatrick (talk) 03:45, 20 September 2017 (UTC)

Done — Martin (MSGJ · talk) 06:49, 20 September 2017 (UTC)

"Khoramshahr missile"

Please unlink Khoramshahr missile, it goes to the city with the name, not to anything the viewer would seek from news.--Kintetsubuffalo (talk) 11:55, 23 September 2017 (UTC)

@Kintetsubuffalo: Thank you, I've adjusted the link. Note that although the Portal:Current events page is fully protected, the day-by-day boxes are not - each can be edited using the "edit" link at the top right of each box. -- John of Reading (talk) 12:04, 23 September 2017 (UTC)
@John of Reading: Thanks for the tip, have a nice evening!--Kintetsubuffalo (talk) 14:02, 23 September 2017 (UTC)

Current Events Portal Archive Cleanup

I have continued my efforts to cleanup the portal archives in support of making the pages mobile-friendly. I have just completed day 3 of my second survey of the month pages. I would appreciate comments here on changes and progress I've made.

I'm working on a prototype to replace the hand-coded Month pages with a small Lua script that will generate all of the necessary content for the Month pages in an automated fashion. With such a tool in place it will be easy to migrate the archives to a mobile friendly layout today and support archive-wide changes in the future as well. — RossO (talk) 19:23, 24 September 2017 (UTC)

Survey completed: I finished my survey of the archives for code issues and inconsistencies. See my Day 3 report for details.

Module created: I have created the module and it comprises the following pages:

Currently this module will only fill in the initial paragraph, but I expect to add arguments that will allow it to express the parts needed to support the layout of the page contents. Comments and questions are greatly appreciated. If there are no significant concerns noted in the next 4 days, I will begin replacing the intro paragraphs on the archive pages with this module call. — RossO (talk) 20:09, 29 September 2017 (UTC)

Day Pages Template Overhaul

This branch/thread was broken off of the previous starting paragraph. — RossO (talk)

Things are moving along on the daily page layout template as well. See Template:Current events, which would replace Template:Current events header. Still working on your suggestion to show previous-day, next-day, month navigation on the daily page itself while hiding the same when transcluded. Matt Fitzpatrick (talk) 19:43, 1 October 2017 (UTC)
Actually, I had a thought. If you're working on a module to do the monthly page, maybe it'd be better to have that module format the daily entries. Then, the daily pages themselves could be more or less just raw text, and easy to maintain. Matt Fitzpatrick (talk) 20:05, 1 October 2017 (UTC)
@Matt Fitzpatrick: The idea that I had is that the individual day pages would be able to link to each other, bypassing the month page entirely. It is a nice to have, but my priority is the mobile-friendly layout, which relies on your table-to-div conversions. I would encourage your efforts (near term) in that direction. — RossO (talk) 21:08, 2 October 2017 (UTC)
@RossO: The tableless replacement {{Current events}} seems to be ready to go, other than the navigation links, if you want to start using it. New version might look nicer than the old version in mobile, based on what I see in the testcases. Meanwhile, I'll keep working on the navigation links in Template:Current events/sandbox. Matt Fitzpatrick (talk) 18:49, 4 October 2017 (UTC)
I boldly switched October 1, 2, 3, and 4 to the new template. The before-and-after differences between the September and October entries on the portal page look promising on mobile. I'll keep looking for potential bugs, though. Matt Fitzpatrick (talk) 19:18, 4 October 2017 (UTC)
@Matt Fitzpatrick: I think that this looks great and it produces exactly the kind of output that it needed. I am concerned about the sheer amount of effort that will be required to move all of the day pages to the new format. Is there any way that the code can be restructured to work in the {{Current events header|2017|10|01}} and {{Current events footer}} two tag system? There are literally [5600] pages that will need to be edited to migrate the tags. While that will really boost someone's edit count, I'm thinking that there must be some way to reuse the existing template tags. I'm thinking of this in terms of the next time that some WP editor will think, "We should update these day pages to support all these new VR/AR displays." And they'll have 5600*2 pages to update. The two-tag configuration would seem to be more robust (totally IMHO). — RossO (talk) 23:20, 4 October 2017 (UTC)
Probably a good job for a bot, once the dust starts to settle and no serious errors appear. The old and new template parameters are similar enough, that a single regex replacement should do the job. A header and footer two-template system would be okay for stuff at the beginning and end. The fully enclosed template is also able to do that, though — and tweak the inside as well, and wouldn't require synchronized edits to two templates to maintain. Matt Fitzpatrick (talk) 04:05, 5 October 2017 (UTC)
@Matt Fitzpatrick:(A) I am hesitant to assign a bot to this as these day pages have been written by hand and there will likely be subtle differences and wide variations that the bot may not handle gracefully. I have NO experience with the Bot process or tooling, so my POV here is cautious ignorance. In your comment on Oct 4, you said it was ready "if you want to start using it." but this Bot would be the way that this conversion would be put into motion, correct? — RossO (talk) 06:23, 5 October 2017 (UTC)
(B) I like the idea that of the template being able to modify the content of the pages, though I wonder if YAGNI. Do you have a viable use case to suggest? — RossO (talk) 06:23, 5 October 2017 (UTC)
(A) Caution might be good. I saw some differences in old archives that I didn't notice before. If a bot does it, it should use a strict pattern, even if that means only a portion of the archives gets edited in a run. (B) Already using it! I put in a regex replacement for the ubiquitous ; MOS:PSEUDOHEADs in the content, to improve screen reader output and keyboard navigation. Matt Fitzpatrick (talk) 07:41, 5 October 2017 (UTC)
@Matt Fitzpatrick:(B) Interesting use case. I'm glad to see that; it does sound like something useful. In this particular case it makes sense to clean up the ';' usages in the source code at a later date, but until then this improves the display. Rock on. — RossO (talk) 18:17, 5 October 2017 (UTC)
@RossO: I got partway to adding day-to-day navigation; you might be able to adapt Special:Diff/691672020 to the new scheme. -- John of Reading (talk) 07:00, 5 October 2017 (UTC)
@John of Reading: Nice work on that. I just noticed it was from 2015. Things do take while to come around don't they. — RossO (talk) 18:17, 5 October 2017 (UTC)
Synced to Template:Current events/sandbox. Seems to show up only on the single day page correctly. Matt Fitzpatrick (talk) 07:41, 5 October 2017 (UTC)
@Matt Fitzpatrick: Do you have an example page that shows this in action, or is good to preview this against? I was hoping to see it on Portal:Current events/2017 October 1 but perhaps you've got it visible on a different Sandbox page? — RossO (talk) 18:17, 5 October 2017 (UTC)
@RossO: Got the bugs worked out. It's now live at the bottom of all October 2017 pages. Sorry about the ugly layout, but I was just trying to get the functionality. Matt Fitzpatrick (talk) 08:54, 8 October 2017 (UTC)
@Matt Fitzpatrick: Nice work. I think it can be smaller, but it's looking good. Does it handle month, year and century changes? — RossO (talk) 17:41, 8 October 2017 (UTC)
@RossO: Yup, leap years too. {{Extract}} does a great job with date calculations. Matt Fitzpatrick (talk) 23:46, 8 October 2017 (UTC)
@Matt Fitzpatrick: What are your next steps? (A) I'm hoping that you might add some more testcases so that we can easily see the range of impacts any updates might make to the 5600 day pages. (B) After that, do you want to work on the design? I think you might be able to do something that mirrors the top colored bar, or even integrate the nav links into that top colored bar. (C) Do you have a plan for rolling out the changed markup? Do you have the Bot's code in mind to apply? — RossO (talk) 16:59, 9 October 2017 (UTC)
For now, bug fixing. There's some weird word wrapping going on at mobile screen sizes. As for testcases, I think the current test is sufficient — I've seen no major variations on the day page content sections, aside from newer ones having ; pseudoheads and older ones not. I'll work on the regex for the bot once I've looked through older pages and checked their format, but it shouldn't be hard. Matt Fitzpatrick (talk) 18:55, 9 October 2017 (UTC)

Protected edit request on 2 October 2017

In the Nobel Prize news, change "Americans" for "United States scientists". The United States of America is not the whole of America, and it's a very common mistake for U.S. citizens to use this word to refer to their country, when obviously it refers to the whole of the Continent. 201.224.130.142 (talk) 15:36, 2 October 2017 (UTC)

The individual day pages are not protected, so you could make this change yourself. However, please read our article Americans first. I think you have a valid point that the term should apply to the entire continent, but in practice, in English, it does usually just mean people from the United States.-gadfium 19:35, 2 October 2017 (UTC)

Mobile-friendly layout via HTML constructed in a Module

Module extended: I have updated the Monthly Archive module module to produce the structural code for the flexible layout.

All: Take a look at the source code to compare the sandbox versus the Original. Nearly all of the content is generated and no longer needs to be manually maintained. I would really like to get feedback from anyone familiar with the technical aspects of modules (cough, Mr. Stradivarius‎, cough) specifically the workload that they add to the system and whether the approach I'm prototyping is reasonable, rational, and responsible. — RossO (talk) 18:23, 5 October 2017 (UTC)

@RossO: I had a look at the module, and I thought it might be clearer to have it pass values to a template, and then let the template be in charge of what the final page looks like. That's the opposite way round to how templates and modules usually work on Wikipedia, but templates in other web frameworks are usually used in this way, and in this case I think it works well. By putting the template in charge of the view, you can put all the HTML markup in one place, and you can avoid doing things like splitting opening and closing div tags between different module function calls. I decided to make the template myself to show you what I mean, and the result is at Template:Current events monthly archive/display. To make the template work I also created a sandbox version of the module at Module:Current events monthly archive/sandbox. At first I just changed the module enough to get it working, but then I got carried away and basically rewrote the whole thing. :P Please have a look at it, and take the parts that you like. :) Best — Mr. Stradivarius ♪ talk ♪ 15:05, 7 October 2017 (UTC)
And of course, if you have any questions about why I did any of the things I did, please feel free to ask, and I'll be happy to explain. — Mr. Stradivarius ♪ talk ♪ 15:07, 7 October 2017 (UTC)
One thing to watch out for when transcluding a lot of content via a template is that the page doesn't exceed the post-expand include size, but when I checked on Portal:Current events/September 2011/Sandbox2 it is using 477155/2097152 bytes, which is still quite a lot of room. — Mr. Stradivarius ♪ talk ♪ 15:24, 7 October 2017 (UTC)
@Mr. Stradivarius: Man, you really did run with it. Once you start on something, it's tough to let it go. I can see that. : ) I think your code looks great and I'm happy to have it supercede my code. (I had tried to find an example of how to make a Module bring in and display a template, but had failed. I didn't think to look in the FRAME object.) Do you have a handle on how the testcases would be built for this? As this is going to be displayed on (12 months * 21 years) of pages, I think we should have a single page to make sure all the pieces look good in the variety of months that it will hit. — RossO (talk) 17:55, 9 October 2017 (UTC)
If you want to test it component by component, probably the easiest way is to add a template parameter to the module, to make it render using a different template than Template:Current events monthly archive/display. Then you can make one template that just displays the calendar, one that displays the intro blurb, etc. — Mr. Stradivarius ♪ talk ♪ 13:20, 12 October 2017 (UTC)
@RossO: I added tests for the date data at Module:Current events monthly archive/testcases. This doesn't test any of the other code in the module, but I figured the date data is the thing most likely to go wrong. (And indeed, I had to fix a couple of bugs in the sandbox module after I wrote the tests.) Let me know what you think of this approach, and feel free to add more test data and/or more tests if you want. Best — Mr. Stradivarius ♪ talk ♪ 06:45, 14 October 2017 (UTC)
And one more thing - how about a feature where the module auto-detects the date from the page title? That should be pretty easy to do, and should make things a lot more convenient. — Mr. Stradivarius ♪ talk ♪ 15:25, 7 October 2017 (UTC)
@Mr. Stradivarius: Anything that reduces the possibility of manual entry and manual entry error is a very good thing. As I noted with Modules displaying Templates, I don't have a pattern to follow; if you point me to an example I can probably get it in there. If we can get the template/module call down to a single line that is identical from month to month, we will have simplified everything a great deal. — RossO (talk) 17:55, 9 October 2017 (UTC)
@RossO: Ok, I implemented it in the sandbox module. It only works on pages where the subpage is a well-formed date, though, so it won't work on the portal sandbox pages. If it needs to work on sandboxes too, though, that can be added. — Mr. Stradivarius ♪ talk ♪ 13:20, 12 October 2017 (UTC)

White space between boxes

I'm seeing a lot of white space between the empty "Wednesday 11th" box and yesterday's "Tuesday 10th" box. Usually I can fix this by removing white space from one of the boxes and then purging, but I'm stuck this time. I'm using Firefox 56.0.1. -- John of Reading (talk) 06:34, 11 October 2017 (UTC)

Yes, this has been going on for days. It seems to trace back to a change in the template (coding?). Anyone know how to fix this?... If we don't get an answer here, the next stop is probably WP:AN... --IJBall (contribstalk) 01:13, 15 October 2017 (UTC)
@John of Reading and IJBall: I removed some extra newlines from Portal:Current events/Inclusion, and that seems to have done the trick. Apparently, it was like that since 2013. — Mr. Stradivarius ♪ talk ♪ 05:27, 15 October 2017 (UTC)
Actually, after a closer look at the page history, I see the extra whitespace was added after Wikinews was added in 2008, and it just wasn't removed when Wikinews was removed in 2013. — Mr. Stradivarius ♪ talk ♪ 05:31, 15 October 2017 (UTC)
@Mr. Stradivarius: Thanks! That whitespace has been in the "Inclusion" page for ages, but it's only been visible to readers for the last few days. -- John of Reading (talk) 05:58, 15 October 2017 (UTC)
Retrieved from "https://en.wikipedia.org/w/index.php?title=Portal_talk:Current_events&oldid=805411254"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Portal_talk:Current_events
This page is based on the copyrighted Wikipedia article "Portal talk:Current events"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA