Wikipedia:Village pump (technical): Difference between revisions
→hide contribs script stopped working?: Reply briefly to SoY; not tested but changes seem visually reasonable Tags: Mobile edit Mobile web edit |
|||
Line 271: | Line 271: | ||
{{od}} Good. I'd prefer to not maintain a fork of that script, though. {{u|Amorymeltzer}}, you were the last one to touch [[User:Markhurd/hidetopcontrib.js]]. What do you think about [[Special:Diff/836240320/933425918|this]] change? I can explain in more detail, if you like. [[User:Suffusion of Yellow|Suffusion of Yellow]] ([[User talk:Suffusion of Yellow|talk]]) 18:49, 1 January 2020 (UTC) |
{{od}} Good. I'd prefer to not maintain a fork of that script, though. {{u|Amorymeltzer}}, you were the last one to touch [[User:Markhurd/hidetopcontrib.js]]. What do you think about [[Special:Diff/836240320/933425918|this]] change? I can explain in more detail, if you like. [[User:Suffusion of Yellow|Suffusion of Yellow]] ([[User talk:Suffusion of Yellow|talk]]) 18:49, 1 January 2020 (UTC) |
||
:Forking is probably better, that user has been inactive for 2+ years so others shouldn't rely on their personal scripts. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 21:09, 1 January 2020 (UTC) |
:Forking is probably better, that user has been inactive for 2+ years so others shouldn't rely on their personal scripts. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 21:09, 1 January 2020 (UTC) |
||
:Haven't tested since I'm on mobile, but changes seem reasonable — it's a new class and would definitely be better to make use of it. I can check it out more tomorrow. As for the fork/no fork, it's been surprisingly fine; I don't mind making minor changes to support other scripts. IIRC a number of folks used this, so YMMV. ~ <span style="color:#F09">Amory</span><small style="color:#555"> ''([[User:Amorymeltzer|u]] • [[User talk:Amorymeltzer|t]] • [[Special:Contributions/Amorymeltzer|c]])''</small> 22:01, 1 January 2020 (UTC) |
|||
==Building infobox how to show map?== |
==Building infobox how to show map?== |
Revision as of 22:01, 1 January 2020
Policy | Technical | Proposals | Idea lab | WMF | Miscellaneous |
Newcomers to the technical village pump are encouraged to read these guidelines prior to posting here. If you want to report a JavaScript error, please follow this guideline. Questions about MediaWiki in general should be posted at the MediaWiki support desk.
Frequently asked questions (see also: Wikipedia:FAQ/Technical) Click "[show]" next to each point to see more details.
|
Old versions in peach?
At home (Microsoft Edge) the warning I am seeing an old version is in pink. At a certain library (Google Chrome) the warning is on a peach background. Should this be the case?— Vchimpanzee • talk • contributions • 17:07, 14 December 2019 (UTC)
- This is likely a misconfigured monitor at the library. --Izno (talk) 17:24, 14 December 2019 (UTC)
- Okay, I'll let them know.— Vchimpanzee • talk • contributions • 17:32, 14 December 2019 (UTC)
- I accidentally tried to edit an old version because I wanted to see why a strange edit was done, and then I was trying to edit the section. The woman at the library asked me to try other browsers. Same thing happened. She said she'd let IT know.— Vchimpanzee • talk • contributions • 15:27, 17 December 2019 (UTC)
- Okay, I'll let them know.— Vchimpanzee • talk • contributions • 17:32, 14 December 2019 (UTC)
- The coloring was changed to default from pink in MediaWiki:Editingold a couple of weeks ago, see this example to compare the colors. — xaosflux Talk 16:19, 17 December 2019 (UTC)
- The second one looks normal on this computer. So what should I tell the librarian?— Vchimpanzee • talk • contributions • 17:21, 17 December 2019 (UTC)
- @Vchimpanzee: The coloring of the "This is an old revision" and the "Your are editing an old revision" boxes should be the same: background-color 254,246,231 (fef6e7) with a border of 255,204,51 (ffcc33) - you should be able to verify if this is what you are getting from us, if not you may have a cached stylesheet stuck somewhere. If you have that color being sent and it is not appearing correctly, your computer may need adjusting. — xaosflux Talk 17:34, 17 December 2019 (UTC)
- They are the same background color but the wrong one.— Vchimpanzee • talk • contributions • 17:52, 17 December 2019 (UTC)
- @Vchimpanzee: if you look at your browser's complied page, exactly what color codes are you seeing there? — xaosflux Talk 14:49, 23 December 2019 (UTC)
- The what? By the way, that library is closed from now until sometime in January. My next time there is January 9.— Vchimpanzee • talk • contributions • 14:51, 23 December 2019 (UTC)
- Wait, I'm at a different library and the warning is also in peach. This example looks the same as it did at the other library.— Vchimpanzee • talk • contributions • 20:59, 23 December 2019 (UTC)
- Can you export the calculated style sheet for the page you think is having a problem? — xaosflux Talk 21:30, 23 December 2019 (UTC)
- Next year. I didn't see this response in time.— Vchimpanzee • talk • contributions • 17:07, 24 December 2019 (UTC)
- Can you export the calculated style sheet for the page you think is having a problem? — xaosflux Talk 21:30, 23 December 2019 (UTC)
- Wait, I'm at a different library and the warning is also in peach. This example looks the same as it did at the other library.— Vchimpanzee • talk • contributions • 20:59, 23 December 2019 (UTC)
- The what? By the way, that library is closed from now until sometime in January. My next time there is January 9.— Vchimpanzee • talk • contributions • 14:51, 23 December 2019 (UTC)
- @Vchimpanzee: if you look at your browser's complied page, exactly what color codes are you seeing there? — xaosflux Talk 14:49, 23 December 2019 (UTC)
- They are the same background color but the wrong one.— Vchimpanzee • talk • contributions • 17:52, 17 December 2019 (UTC)
- @Vchimpanzee: The coloring of the "This is an old revision" and the "Your are editing an old revision" boxes should be the same: background-color 254,246,231 (fef6e7) with a border of 255,204,51 (ffcc33) - you should be able to verify if this is what you are getting from us, if not you may have a cached stylesheet stuck somewhere. If you have that color being sent and it is not appearing correctly, your computer may need adjusting. — xaosflux Talk 17:34, 17 December 2019 (UTC)
- The second one looks normal on this computer. So what should I tell the librarian?— Vchimpanzee • talk • contributions • 17:21, 17 December 2019 (UTC)
Watchlist jumping up and down on iPad, Safari
It just started. I don't have problems on other pages. It's not refreshing, just jumping. Doug Weller talk 20:32, 22 December 2019 (UTC)
- This usually means that there is some JavaScript that is still running when the page is displayed: the JavaScript either adds, removes or otherwise rearranges text on the page, and once the JavaScript completes, the jumping stops. One possible culprit may be this RfA notice - if you dismiss it, the jumping should not occur if you refresh your watchlist. --Redrose64 🌹 (talk) 21:34, 22 December 2019 (UTC)
- @Redrose64: thanks, but that didn't work I really need my watchlist to work! Doug Weller talk 21:39, 22 December 2019 (UTC)
- @Doug Weller: See #Advanced mobile watchlist below. I barely know what that means, but perhaps there is a preference for "Advanced watchlist" and you could temporarily disable it? And/or use en.wikipedia.org rather than en.m.wikipedia.org? Johnuniq (talk) 22:16, 22 December 2019 (UTC)
- @Johnuniq: I never use the mobile version, but thanks. Doug Weller talk 22:25, 22 December 2019 (UTC)
- It happens to me on Samsung as well using Chrome; has happened for a reasonable period of time. Annoying when you click on the wrong link. Happy Festivities! // J947 (c) 22:36, 22 December 2019 (UTC)
- Working ok now. Doug Weller talk 20:34, 23 December 2019 (UTC)
- Had a similar problem once. Something at the top of the page was blinking, which mobile view did not show. Jmar67 (talk) 03:08, 24 December 2019 (UTC)
- Ran Safari 13.0.3 on Responsive Design Mode with iPad (iOS 12.1.3), UA switch enabled/disabled, mobile/desktop, unable to replicate. --qedk (t 桜 c) 09:30, 24 December 2019 (UTC)
File display problem with green on black gadget
I use the green text on a black screen gadget (available in Preferences), as it makes Wikipedia less painful to look at for extended periods of time. The logo File:Lewes Priory School logo.png appears to contain mainly black images on a transparent background, so to me it all looks black, except for a handful of random white lines and blobs. Is it possible for the file to be edited in some way so as to make it visible to users of the gadget? Thanks, DuncanHill (talk) 20:48, 23 December 2019 (UTC)
- @DuncanHill: Yes, it is, but since the issue affects a lot of images with transparent backgrounds it would probably be better to change the gadget so that it doesn't have this issue. Alternatively, if you just want to fix it for yourself, you could add a line of CSS to your common.css page, probably something resembling
.mw-parser-output img { background-color: #fff }
. (Do note that this will introduce a white background for all images with transparency.) Jc86035 (talk) 08:01, 27 December 2019 (UTC)
- @DuncanHill: Choosing appropriate color(s) for a logotype is an important part of a logo design process – see notes at Logo#Logo color. Sometimes companies and other organizations prepare several versions of their logo for use in different color environments (e.g., for black-and-white media with white or with black background; for gray-scale or for multicolor media with light or with dark background). Those versions may have a background added or appropriate contour lines in a color depending on an expected neighborhood. So, there is no simple way to just edit a logo file to make it compatible with an arbitrary environment. The more because a logo is a property of some organization and only they are entitled to choose a new shape, color or contour for their logo. --CiaPan (talk) 16:25, 27 December 2019 (UTC)
- @CiaPan: The version of the logo we have is not what appears on the school website, it appears to be a negative image. DuncanHill (talk) 16:31, 29 December 2019 (UTC)
- @DuncanHill: I see. But maybe eleven years ago, when the file was fetched, the school's website was black on white, like Wikipedia is...?
- Anyway, replacing a black-and-white logo with its inverse everywhere is quite safe (you don't risk a change of meaning) and quite simple (it needs just replacing a file). But adjusting an image to both light and dark theme is another thing: it requires either adding appropriate background in the image itself, which will join smoothly with one theme's background and make an appropriate buffering space in the other one; or keeping two or more versions of a file and dynamic supplying appropriate one for a detected theme. One solution is quite artificial and too simple to be good (what if a third theme appears?), the other one is IMHO next to impossible due to a palette detection needed at the client side and lacking method of identifying required versions of an image.
- Shortly, I think the best solution (short, safe and quite easy) is adding a background to the image in the default Wikipedia background color. Possibly a gadget might add it, as Jc86035 suggests above. --CiaPan (talk) 20:31, 29 December 2019 (UTC)
RefToolbar in MediaWiki 1.34
Guys, I currently have a problem with trying to get RefToolbar to work on one of my wikis, which was updated to MediaWiki 1.34 a few days ago. The console error states that "importScript is not defined". In full detail:
ReferenceError: "importScript is not defined" (load.php:2:567)
initializeRefTools https://nsindex.net/w/load.php?lang=en-gb&modules=ext.gadget.DotsSyntaxHighlighter,HotCat,ReferenceTooltips,edittop,refToolbar&skin=vector&version=pl82e:46
jQuery 4
fire
fireWith
tuple[0]
using
doPropagation https://nsindex.net/w/load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=vector:8
I wish to ask where I can find the code for importScript so I can perhaps mirror the class over to my wiki: it seems importScript works perfectly fine here, but not under the main release of MediaWiki 1.34, so I am not sure what I am missing. The list of imported scripts can be found at https://nsindex.net/wiki/Help:RefToolbar#RefToolbar_components.
Best, --Minoa (talk) 17:54, 24 December 2019 (UTC)
- See this page at mediawiki.org. importScript has been replaced by mw.loader. – Jonesey95 (talk) 20:05, 24 December 2019 (UTC)
- I have refreshed the gadget with the revised code and it works,
but the forms appear large and the background is white instead of bluish grey. Where does the gadget get the CSS rules for the style elements of the form, such asit seems the Wikipedia version of the script needs updating. Edit: the styling issues were solved by adopting the WMF versions of Vector. Best, --Minoa (talk) 21:20, 24 December 2019 (UTC).ui-widget
and.ui-widget-content
? In either case,
- I have refreshed the gadget with the revised code and it works,
Interactive location maps not working?
If I go to any article with geographical coordinates, say Heidelberg, and click on the globe in the upper right for an interactive map, I get "502 Bad Gateway nginx/1.13.6". Where would I report that? Thanks, AxelBoldt (talk) 18:03, 24 December 2019 (UTC)
- OK, I figured it out: it's called WikiMiniAtlas and is hosted at wma.wmflabs.org. The site is down though; I still don't know whom to contact. AxelBoldt (talk) 19:16, 24 December 2019 (UTC)
- I notified irc channels #wikipedia and #wikimedia-cloud and filed a bug report. AxelBoldt (talk) 19:28, 24 December 2019 (UTC)
What would you call this?
This is a stupid question, but I saw someone add this to an article: *𝓐𝓷𝓪𝓰𝓱𝓪 𝓼𝓪𝓷𝓳𝓮𝓮𝓿 𝓪𝓼 𝓶𝓪𝓱𝓲𝓶𝓪(𝓮𝓹𝓲𝓼𝓸𝓭𝓮 182). How would you technical types describe this? Unicode font? ASCII font? How does one generate this sort of thing? Thanks, Cyphoidbomb (talk) 20:19, 24 December 2019 (UTC)
- It's using the Mathematical Alphanumeric Symbols part of Unicode. Although popular on social media, this shouldn't be used outside of the proper mathematical context since it's not accessible to people using screenreaders. the wub "?!" 20:54, 24 December 2019 (UTC)
- Naturally! Thanks for the explanation, wub! Cyphoidbomb (talk) 21:21, 24 December 2019 (UTC)
- Looks like there are editors who have used some of these characters in their sigs, according to a search of Wikipedia namespace for
"𝓮" AND insource:/[𝐀-𝟿]{3}/
. Any idea how to do a search that won't time out to find these in article space? —[AlanM1(talk)]— 14:09, 25 December 2019 (UTC)- Use Quarry, it runs on database dumps. --qedk (t 桜 c) 20:57, 26 December 2019 (UTC)
- Quarry does not have access to page text. * Pppery * it has begun... 22:43, 26 December 2019 (UTC)
- Use Quarry, it runs on database dumps. --qedk (t 桜 c) 20:57, 26 December 2019 (UTC)
- Looks like there are editors who have used some of these characters in their sigs, according to a search of Wikipedia namespace for
- Naturally! Thanks for the explanation, wub! Cyphoidbomb (talk) 21:21, 24 December 2019 (UTC)
Edit box
Hi, Anyone have an idea why my edit box is like this ?,
It all loads as black but then changes to purple (for articles) or grey/big headers (for talkpages),
Thanks, –Davey2010Talk 21:07, 25 December 2019 (UTC)
- @Davey2010: You have syntax highlighting enabled - the pencil button just left of "Advanced" in the toolbar. Click it again to disable, although personally I find it quite helpful. The purple in the article screenshot is marking templates. the wub "?!" 22:35, 25 December 2019 (UTC)
- You're a star the wub thanks so much! :). –Davey2010Talk 22:50, 25 December 2019 (UTC)
Hi all, can someone with template experience please look at this discussion and remove |residence=
? I'm not sure what else needs to happen, but I'd imagine that a bot needs to remove the content somehow? Can someone please look into that. I've no experience with this. Thanks, Cyphoidbomb (talk) 03:08, 26 December 2019 (UTC)
- It has been removed/commented out already from the template. Removing it from articles altogether is a task for Wikipedia:Bot requests. – Ammarpad (talk) 06:25, 26 December 2019 (UTC)
Table column width
Hello, could some kind person please tell me how to make the column widths the same size here? Thank you in advance, SandyGeorgia (Talk) 23:00, 26 December 2019 (UTC)
- Done, thanks Izno! SandyGeorgia (Talk) 23:26, 26 December 2019 (UTC)
"Hide registered users" toggle at Special:NewPages
The toggle "Hide registered users" at Special:NewPages does not seem to be working properly. While it is possible to hide patrolled edits, bots, and redirects, this toggle does not produce the expected effect of hiding registered users and thus displaying only IP creations (i.e. when I click it, there is no visible change to the pages shown in the feed, unlike the other three toggles). To reproduce, go to Special:NewPages and experiment with these four toggles on the bottom—the plainly labeled one on the far left seems not to be working. Purging the page and using different settings elsewhere in the "New Pages" box do not have any effect. Is there a different intended function, or is this a bug? Thanks in advance. ComplexRational (talk) 16:57, 27 December 2019 (UTC)
- @ComplexRational: this appears to be a bug, being tracked at: phab:T241495. Thank you for the report. — xaosflux Talk 17:37, 27 December 2019 (UTC)
- Upmerged to phab:T238483. — xaosflux Talk 17:41, 27 December 2019 (UTC)
Search function errors ... "too busy"
Seems this error has been happening a lot recently: "An error has occurred while searching: Search is currently too busy. Please try again later.
". Any idea what is causing this, and if there is any work happening in the background to resolve this? Steel1943 (talk) 17:54, 27 December 2019 (UTC)
- "High lag on CirrusSearch". Tech Ops is already on it. Whatamidoing (WMF) (talk) 21:38, 27 December 2019 (UTC)
search too busy?
(Attached to existing discussion.) ―Mandruss ☎ 06:28, 28 December 2019 (UTC)
WHy have I been getting the following error from the search bar "An error has occurred while searching: Search is currently too busy. Please try again later."-TonyTheTiger (T / C / WP:FOUR / WP:CHICAGO / WP:WAWARD) 04:10, 28 December 2019 (UTC)
- Tony, see the post a few threads above. --GoneIn60 (talk) 05:58, 28 December 2019 (UTC)
Template: Infobox roller coaster
--qedk (t 桜 c) 08:17, 28 December 2019 (UTC)
Looking for a template guru...
At Template:Infobox roller coaster, there are speed parameters (one for mph and one for km/h) that when used will list an auto-conversion from one unit to the other in parenthesis. So for example, if speed_mph = 55
is specified, the infobox will display 55 mph (89 km/h)
. The problem is that when high values are used, this conversion becomes less concise. An example can be seen at Formula Rossa. 240 km/h is being converted to 150 mph in parenthesis, but multiple sources (including Guinness World Records) list it precisely as 149.1 mph.
The solution is to use the |sigfig=4
parameter with the convert template which isn't currently being done. I wasn't sure how to edit the template to include this for higher numbers only. We wouldn't want 50 km/h to start displaying 31.07 mph, for example. I was thinking only numbers greater than say 165 km/h should use this sigfig parameter (meaning coaster that exceed 102 mph, which isn't many). Does anyone know how to code that? Another option would be to introduce a hidden flag that can be specified when you want the extra precision. Open to ideas here, thanks in advance! --GoneIn60 (talk) 20:38, 27 December 2019 (UTC)
- You can add
sigfig
parameter and pass it through to {{Convert}} template. Ruslik_Zero 20:58, 27 December 2019 (UTC)- Looks like QEDK added the sigfig parameter to the infobox, so that it can be manually specified when needed. That's a great start, so thanks for that! I may tweak it further so we can do the same for other fields like track length, drop, and height. Maybe have
sigfig_speed
,sigfig_height
, etc. --GoneIn60 (talk) 22:13, 27 December 2019 (UTC)- @GoneIn60: Added
|sigfig=
as a default parameter to fall back on for an infobox, with each data values having their own sigfig parameters (per your suggestion). --qedk (t 桜 c) 08:17, 28 December 2019 (UTC)- Thanks again for all your help. Per the advice below, I may roll those changes back considering there is a workaround without adding the complexity to the template. But at least I know how to use this option now. Greatly appreciate your time! --GoneIn60 (talk) 20:41, 28 December 2019 (UTC)
- @GoneIn60: Added
- Looks like QEDK added the sigfig parameter to the infobox, so that it can be manually specified when needed. That's a great start, so thanks for that! I may tweak it further so we can do the same for other fields like track length, drop, and height. Maybe have
- Note that for this case you could have just specified the speed_km/h as "240.0", for which {{convert}} will calculate the correct number of significant figures: 240.0 km/h (149.1 mph). With this example you can also specify three significant figures by entering the speed as "240.": 240 km/h (149 mph). But
sigfig
would be necessary to specify 3 significant figures for a value like "2400000", as Module:Convert doesn't seem to support anything like the overline or underline notations mentioned at Significant figures#Significant figures rules explained. Anomie⚔ 14:08, 28 December 2019 (UTC)- Anomie, I didn't realize that could be done. I tested, and it works like a charm. Thanks! --GoneIn60 (talk) 20:41, 28 December 2019 (UTC)
This script no longer works... --Thegooduser Life Begins With a Smile :) 🍁 03:37, 28 December 2019 (UTC)
- Hi Thegooduser, the user has sadly retired. A new script can be found at User:DannyS712/AjaxRollback. Does that one work? ~ ToBeFree (talk) 03:43, 28 December 2019 (UTC)
- Oh, that's why it don't work! Thanks! --Thegooduser Life Begins With a Smile :) 🍁 03:47, 28 December 2019 (UTC)
- Hmm, not necessarily, now that I compared the two scripts. See Special:ComparePages?rev1=886050072&rev2=876272571.
- Your User:Thegooduser/common.js currently contains a huge number of other scripts. Could you try removing them all to see if that solves the problem? If so, please re-enable them one by one to see where the actual problem is. ~ ToBeFree (talk) 03:51, 28 December 2019 (UTC)
- Oh, that's why it don't work! Thanks! --Thegooduser Life Begins With a Smile :) 🍁 03:47, 28 December 2019 (UTC)
- The script doesn't seem to work for me (neither does User:Writ Keeper/Scripts/massRollback.js, incidentally..) Although I have so many scripts/configurations on my account, that I can't be sure that a conflicting script isn't the issue. Galobtter (pingó mió) 08:26, 28 December 2019 (UTC)
- @Galobtter: mass rollback still works for me --DannyS712 (talk) 08:32, 28 December 2019 (UTC)
- @Thegooduser: Should work now --DannyS712 (talk) 08:38, 28 December 2019 (UTC)
- @DannyS712: @ToBeFree: Working now, thanks guys! Thegooduser Life Begins With a Smile :) 🍁 21:08, 28 December 2019 (UTC)
- Side note: When you have a lot of scripts in your account (not to mention gadgets), the cycle of removing all, clearing your web browser's cache, re-enabling one, testing, and then re-enabling the next, can take a couple of hours. (Then you'll discover that you forgot about your global scripts at Meta, and have to do it all over.) A Binary tree system can be useful: Disable all, and test. If the problem goes away, then one of those scripts is the problem. Re-enable half, and test. If the problem returns, then something in that half is the problem. If it doesn't, then the problem is in the other half. You can keep repeating by halves until you've narrowed it down to the culprit. If you have, say, 16 user scripts, and one is broken, then working by halves always finds the problem in four steps, whereas testing each individually finds the problem in an average of eight rounds. Whatamidoing (WMF) (talk) 17:22, 30 December 2019 (UTC)
Cannot find hatnotes displayed anywhere in iOS app
I have the Wikipedia iOS app on my phone. Hatnotes are entirely missing now. They used to be below the lede. Before I do things like create a Phabricator account and read scores of pages of documentation, my question here is, do others have this problem too? I hope no one wiped them out intentionally. If the latter is true then the justification has to be explained at Wikipedia talk:Hatnote. Quercus solaris (talk) 04:10, 28 December 2019 (UTC)
- This is phab:T240721, which for some reason has been triaged as "low" priority. Galobtter (pingó mió) 06:51, 28 December 2019 (UTC)
- How do we get the priority raised on that? It seems like a pretty big deal to me. SchreiberBike | ⌨ 18:42, 28 December 2019 (UTC)
- The general process is to login to Phabricator (login page here) using the same username/password you use for the wiki. Then go to the particular task page (i.e. phab:T240721), where you can add a comment in the text box near the bottom of the page, then click Submit. Just explain, like you did above, why you feel this needs a higher priority. The folks who work on these things may or may not change the priority, but that's the process to let your voice be heard. If you prefer, ping me and I can handle it for you. -- RoySmith (talk) 19:05, 28 December 2019 (UTC)
- Thanks @RoySmith: I've given it a try. SchreiberBike | ⌨ 21:32, 28 December 2019 (UTC)
- Looks like you figured it out. -- RoySmith (talk) 22:09, 28 December 2019 (UTC)
- Thanks @RoySmith: I've given it a try. SchreiberBike | ⌨ 21:32, 28 December 2019 (UTC)
- The general process is to login to Phabricator (login page here) using the same username/password you use for the wiki. Then go to the particular task page (i.e. phab:T240721), where you can add a comment in the text box near the bottom of the page, then click Submit. Just explain, like you did above, why you feel this needs a higher priority. The folks who work on these things may or may not change the priority, but that's the process to let your voice be heard. If you prefer, ping me and I can handle it for you. -- RoySmith (talk) 19:05, 28 December 2019 (UTC)
- How do we get the priority raised on that? It seems like a pretty big deal to me. SchreiberBike | ⌨ 18:42, 28 December 2019 (UTC)
Continuous editing conflict (cross-post from help desk)
Cross-posting report of a technical issue on the help desk in the hope someone with technical know-how can assist. Please reply to the original post to keep discussion focused. – Teratix ₵ 09:52, 28 December 2019 (UTC)
At 04:49, 19 August 2019 (UTC), I came to ask for help because often when I saved edits I got a false "edit conflict" warning. I discovered that several other editors had the same problem. Please see Wikipedia:Help desk/Archives/2019 August 19#Continuous editing conflict. I edit Wikipedia using Google Chrome (up-to-date) running under Win 10 Pro (also up-to-date); nothing exotic. The problem for me has escalated from frequent to constant. It is a real handicap in editing Wikipedia because it wastes a lot of my time. I do not have any beta gadget enabled and my broadband connection is fast enough. I would appreciate help with this problem in editing Wikipedia. Thank you.
EditCounterOptIn.js?
Cleaning up old crap, I discovered I had created User:RoySmith/EditCounterOptIn.js back in 2011. I vaguely remember there was some optional service that this enabled. Does it still do anything useful? -- RoySmith (talk) 16:22, 28 December 2019 (UTC)
- There was once a tool that got activated by that type of page but it seems like it got folded into the general XTools. Jo-Jo Eumerus (talk) 16:27, 28 December 2019 (UTC)
- See m:Requests for comment/X!'s Edit Counter and Wikipedia:Village pump (proposals)/Archive 111#Edit Counter Optin for some background. Opt-in was removed here on the English Wikipedia, but is still relevant for at least some other wikis. Anomie⚔ 16:43, 28 December 2019 (UTC)
- X!'s Edit Counter (formerly Soxred93's edit counter) was altered in early 2010 so that the full stats, previously visible for all users, became hidden unless the user voluntarily made them public by creating Special:MyPage/EditCounterOptIn.js (for one project) or m:Special:MyPage/EditCounterGlobalOptIn.js (for all projects). The content of the page didn't matter: the report merely tested for its existence. More at Wikipedia:Village pump (technical)/Archive 73#Toolserver Opt-in Requirement and User talk:X!/Archives/04/2010#Wheres the month counters??? --Redrose64 🌹 (talk) 17:14, 28 December 2019 (UTC)
lua check
If anyone has a min to help debug a lua error on meta-wiki, please take a look at meta:Module talk:Project portal. Thank you! — xaosflux Talk 16:59, 28 December 2019 (UTC)
Display problem in Template:ConfirmationOTRS
Today a {{ConfirmationOTRS}} template was placed here with the parameter |license=CCBYSA 4.0 International
. That was a good-faith mistake by the agent, who I imagine did not know that that licence is not compatible here, and will I'm sure be resolved. What matters to me here is the behaviour of the template, which ignored the license parameter provided to it, and displayed CC BY-SA 3.0 instead. It looks to me as if it's designed to do that. Wouldn't it be much more useful if it displayed an error message if the licence is CC BY-SA 4.0? Could that easily be made to happen? Justlettersandnumbers (talk) 18:55, 28 December 2019 (UTC)
- This is the code: As may be seen, a number of variations on the CC licenses are coded for, including
{{#switch:{{lc:{{{license|}}}}} |pd|cc0|Public domain|public domain = into the public domain. |g = Under the [[Wikipedia:Text of the GNU Free Documentation License|GNU Free Documentation License]]. Because this permission was received prior to 1 November 2008, you may use the material under either that license or the Creative Commons Attribution-ShareAlike 3.0 Unported license. |gfdl|dual|d|both = under both the [[Wikipedia:Text of Creative Commons Attribution-ShareAlike 3.0 Unported License|Creative Commons Attribution-ShareAlike 3.0 Unported license]] and the [[Wikipedia:Text of the GNU Free Documentation License|GNU Free Documentation License]]. You may use either or both licenses. |cc4|cc-by-sa-4.0 = {{Error|CC BY-SA 4.0 is not a [[WP:Compatible license|compatible license]].}} |cc|cc3|cc-by-sa|cc-by-sa-3.0|#default = under the [[Wikipedia:Text of Creative Commons Attribution-ShareAlike 3.0 Unported License|Creative Commons Attribution-ShareAlike 3.0 Unported license]]. |attribution = for anyone to use it for any purpose, provided that the copyright holder is properly attributed. Redistribution, derivative work, commercial use, and all other uses are permitted. |cc-by-3.0 = under the <span class="plainlinks">[https://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0]</span> license. |cc-by-4.0 = under the <span class="plainlinks">[https://creativecommons.org/licenses/by/4.0/ Creative Commons Attribution 4.0]</span> license. }}
cc
,cc0
,cc3
,cc4
,cc-by-3.0
,cc-by-4.0
,cc-by-sa
,cc-by-sa-3.0
andcc-by-sa-4.0
; but it has nothing for the (lowercased) valueccbysa 4.0 international
- we can't hope to test for every theoretical variation. In such circumstances the fallback is the value for#default
so it behaves as if|license=CC-BY-SA-3.0
were specified, which is the Creative Commons Attribution-ShareAlike 3.0 Unported license. If Ganímedes (talk · contribs) were to alter the template parameter from|license=CCBYSA 4.0 International
to any of|license=CC-BY-SA-4.0
,|license=CC-BY-4.0
or|license=CC-BY-SA-3.0
it would be more explicit. --Redrose64 🌹 (talk) 21:30, 28 December 2019 (UTC)
- Thanks all. The customer has agreed to release the text under CCBYSA 3.0, so no problem anymore. I use to work in Commons and we never has got this problem. I apologize. Regards. --Ganímedes (talk) 00:32, 29 December 2019 (UTC)
- I would support the deprecation of arbitrary values for
|license=
in favor of a warning to use a more specific license. I ran a quick report on the parameter usage for ConfirmationOTRS and there's a lot of junk in there that doesn't need to be. --AntiCompositeNumber (talk) 06:00, 29 December 2019 (UTC)
How to challenge the decision to remove support for insecure browsers?
I believe Wikimedia's decision to remove support for insecure browsers (recently expanded to include browsers that use old versions of HTTPS) amounts to unintentional discrimination against readers on low incomes and readers in developing countries, who might be stuck using 10-year-old second-hand mobile phones that cannot be upgraded. There is a big difference between asking a prosperous person to upgrade their device and asking a homeless person to do so. This may become more of a cause for concern if public libraries move to a "bring your own device" approach instead of supplying computers, which now seems to be happening in some towns. I understand there are concerns about surveillance, but surely someone who cannot afford the necessary equipment to bypass it should be able to decide for themselves if they'd rather be spied on, instead of having Wikimedia decide that it's better to lose access completely?
I do run a proxy service (read-only, no edits allowed) which can fetch requested pages and return them over plain HTTP. But I cannot afford the traffic that may ensue if I advertise this more widely. I believe Wikimedia should re-enable HTTP from their own servers, as a non-default option with suitable warnings and limitations.
Where should I be posting about this? Silas S. Brown (email, talk) 21:17, 28 December 2019 (UTC)
- @Silas S. Brown: Does Wikipedia:Village pump (technical)/Archive 177#Security warning issues help? --Redrose64 🌹 (talk) 21:34, 28 December 2019 (UTC)
- Thanks but that discussion doesn't seem to shed much light on where to put the above point... Silas S. Brown (email, talk) 22:41, 28 December 2019 (UTC)
- @Silas S. Brown: this isn't a English Wikipedia specific thing, it is across all of the hundreds of WMF projects. The task for it is here: phab:T238038. You can leave feedback on that task. — xaosflux Talk 00:17, 29 December 2019 (UTC)
Note that the security issues revolve around exploits related to the insecure older protocols. It was the case that where a browser did not support the new protocol, an older one would would be permitted; but this has been exploited to attack systems including WMF's using the old protocols. So the various vendors have reluctantly decided to end all support for the old protocols. So what you are suggesting is the same thing that you are protesting; if the change is not made, anyone who has a newer system (the majority) will become cut off. Hawkeye7 (discuss) 00:40, 29 December 2019 (UTC)
- @Hawkeye7: I think there is at least a case to argue that read-only access shouldn't depend on this (even that read-only access shouldn't depend on encryption at all). — xaosflux Talk 00:44, 29 December 2019 (UTC)
- And yes, I know all sorts of reason that can be a bad idea, put perhaps through some sub domain only (e.g. en.insecure.wikipedia.org , which would be added to the global blacklist, and with an insecure banner or the like on every page). — xaosflux Talk 00:52, 29 December 2019 (UTC)
- The biggest reasons that this isn't a good idea are censorship and privacy. With strong encryption in place, a person-in-the-middle can only see that you've connected to Wikipedia. They can't see what pages you're reading, which means that they also can't block specific pages or silently modify their content: you either get the same Wikipedia as everyone else or you get no Wikipedia at all. This might not matter to you if you live somewhere where freedom of information is the norm and you aren't concerned about someone looking over your shoulder. It definitely does matter to some people though. Think about the pro-democracy protestor who could be jailed for having the wrong opinions. Think about the people living under a dictatorial regieme that would rather rewrite history than face the past. Think about the officeworker researching an embarassing disease and not wanting anyone else to find out. Think about the closeted gay kid at a school that considers homosexuality to be immoral. By providing access to Wikipedia without strong encryption, we open these people up to real-life harm. They do not have the choice between HTTP and HTTPS, only the choice between safe and dangerous. Providing an insecure version of Wikipedia means providing no secure version of Wikipedia. --AntiCompositeNumber (talk) 02:03, 29 December 2019 (UTC)
- But, the choice is still there for readers, so long as mirrors still allow plain HTTP connections. And I'm sure some mirrors are operated by people far less well-meaning than Silas S. Brown. None are subject to our privacy policy. That's a far worse option than any WMF-controlled site. Suffusion of Yellow (talk) 02:37, 29 December 2019 (UTC)
- @Suffusion of Yellow: so how about a http-only WMF mirror? — xaosflux Talk 02:41, 29 December 2019 (UTC)
- @Xaosflux: Yes, on the surface that looks like the least bad solution. I wonder if it would be possible, using HSTS, to block only browsers capable of accessing the "secure" site from even sending requests to the "insecure" site. Suffusion of Yellow (talk) 03:01, 29 December 2019 (UTC)
- @Suffusion of Yellow: so how about a http-only WMF mirror? — xaosflux Talk 02:41, 29 December 2019 (UTC)
- But, the choice is still there for readers, so long as mirrors still allow plain HTTP connections. And I'm sure some mirrors are operated by people far less well-meaning than Silas S. Brown. None are subject to our privacy policy. That's a far worse option than any WMF-controlled site. Suffusion of Yellow (talk) 02:37, 29 December 2019 (UTC)
- @AntiCompositeNumber: good points indeed - and I'm not saying this is necessarily a good idea - just that it is a feasible argument. As far as your scenarios go, it has become quite common for your "officeworker" scenario to already be exposed, either though client-side inspection, or forced MITM corporate proxies. Nation-states have begun using forced decryption as well (c.f. Kazakhstan man-in-the-middle attack). The down side is that the choice (including the problem introduced by the original poster) is really between a secure (with the above forced MITM caveats) wikipedia and no wikipedia. — xaosflux Talk 02:41, 29 December 2019 (UTC)
- There's nothing we can do for security when the attacker controls the endpoint device, like in a corporate traffic inspection scenario. While those tools do exist, they don't exist everywhere. They require higher technical competence and more upkeep than a passive inspection tool, putting them out of reach of many organizations. If that example's still problematic, replace "officeworker" with "person" and "anyone else" with "the advertisers your ISP might sell your browsing history to" [1]. When a security system fails, it should fail loudly. No matter how many scary warnings you put on something that's insecure, if people can ignore them, they will [2]. You can't ignore a completely inaccessable site though. I don't have numbers about how many people are still connecting to Wikipedia using TLS 1.0, but the WMF typically doesn't deprecate a browser unless it accounts for less than 1% of average total traffic. We're not the first to disallow TLS 1.0 connections, websites like nist.gov, gizmodo.com, un.org, nytimes.com, twitter.com, state.gov, github.com, any site that process payment card information... got there first. The choice between protecting our most vulnerable readers from harm or continuing to support browsers and devices with dwindling usage and an already degraded internet experience. --AntiCompositeNumber (talk) 04:05, 29 December 2019 (UTC)
- The biggest reasons that this isn't a good idea are censorship and privacy. With strong encryption in place, a person-in-the-middle can only see that you've connected to Wikipedia. They can't see what pages you're reading, which means that they also can't block specific pages or silently modify their content: you either get the same Wikipedia as everyone else or you get no Wikipedia at all. This might not matter to you if you live somewhere where freedom of information is the norm and you aren't concerned about someone looking over your shoulder. It definitely does matter to some people though. Think about the pro-democracy protestor who could be jailed for having the wrong opinions. Think about the people living under a dictatorial regieme that would rather rewrite history than face the past. Think about the officeworker researching an embarassing disease and not wanting anyone else to find out. Think about the closeted gay kid at a school that considers homosexuality to be immoral. By providing access to Wikipedia without strong encryption, we open these people up to real-life harm. They do not have the choice between HTTP and HTTPS, only the choice between safe and dangerous. Providing an insecure version of Wikipedia means providing no secure version of Wikipedia. --AntiCompositeNumber (talk) 02:03, 29 December 2019 (UTC)
- And yes, I know all sorts of reason that can be a bad idea, put perhaps through some sub domain only (e.g. en.insecure.wikipedia.org , which would be added to the global blacklist, and with an insecure banner or the like on every page). — xaosflux Talk 00:52, 29 December 2019 (UTC)
- @Hawkeye7: I think there is at least a case to argue that read-only access shouldn't depend on this (even that read-only access shouldn't depend on encryption at all). — xaosflux Talk 00:44, 29 December 2019 (UTC)
I suppose even a really old browser could run TLS-in-JS. I have no idea if this is actually a practical solution, i.e. would it be so slow as to be unusable, but it's an interesting idea. -- RoySmith (talk) 03:40, 29 December 2019 (UTC)
- That depends on how you define a "really old browser" (first ones doesn't even supported JS). You can browse in any browser by using Nginx (or something similar [like Fiddler] for http/https conversion) (+ Privoxy [for old browsers without proxy support] for request/response/html rewrite, or by Nginx packaged with Lua [under Windows]). MarMi wiki (talk) 18:16, 29 December 2019 (UTC)
- I think the Wikimedia Foundation should write a version of their app that allows older devices to connect by providing their own tls version support. Or they can pressure phone manufacturers to patch their operating systems. Discriminating against the poor just because they have old devices go against Jimbo Wales' quote "i'm doing this for a child in Africa". Poor people need open knowledge the most. 2A01:4C8:F:E3D9:2B73:C9CA:12CF:BCA2 (talk) 19:10, 30 December 2019 (UTC)
User contributions blank
When I check my user contributions, there are no searches matching my criteria. Does anyone have any solutions? Thanks, Thatoneweirdwikier Say hi 16:19, 29 December 2019 (UTC)
- What are the criterias that you set? Stryn (talk) 16:40, 29 December 2019 (UTC)
Stryn, I didn't set any criteria. That's what makes it so unusual. Thanks, Thatoneweirdwikier Say hi 16:47, 29 December 2019 (UTC)- Wow, that was very thick of me. I didn't realise that the 'Hide probably good edits' button was checked. So sorry for wasting your time! Thanks, Thatone
weirdwikier Say hi 16:50, 29 December 2019 (UTC)- Obviously, you just need to start making more crappy edits -- RoySmith (talk) 17:21, 29 December 2019 (UTC)
Wrong message at the top of search results?
When I search for "Hillstreet Blues", I do get results for "Hillstreet Blues", but the message above the three results reads "Showing results for hill street blues. Search instead for Hillstreet Blues." This seems wrong. Should it not read "Showing results for Hillstreet Blues. Search instead for hill street blues."? --Bensin (talk) 22:55, 30 December 2019 (UTC)
Bensin, looks proper to me. It's the same as Google really; search "whatver" and you'll get
Showing results for whatever Search instead for whatver
Home Lander (talk) 23:33, 30 December 2019 (UTC)
- But as Bensin said, that's not what it actually does. It behaves like if Google did show results for "whatver" from the start. The search is Special:Search/Hillstreet Blues. The message is MediaWiki:Search-rewritten, documented at translatewiki:MediaWiki:Search-rewritten/qqq. We use the default message. It's only meant to be shown when the search is not what the user entered. Something is wrong but the error appears to be that the wrong search results are shown. It should have shown search results for hill street blues as it incorrectly claims to be doing. PrimeHunter (talk) 23:38, 30 December 2019 (UTC)
- PrimeHunter, OK, I'm following you now. I'm not sure however if it's showing incorrect results or if it's simply detecting the results because they're so similar - try Special:Search/Gargae and you'll get
Showing results for garage. Search instead for gargae.
- The first result is Garage, as expected. Home Lander (talk) 23:46, 30 December 2019 (UTC)
- In that example it behaves correctly and shows results for "garage" as it says. If you click "Gargae" in the message then you get no results. In Bensin's example, you get the same three results as originally if you click "Hillstreet Blues", while "hill street blues" gives thousands of results. Maybe the error only happens if there are a few results on the term the search function guesses is wrong. PrimeHunter (talk) 00:09, 31 December 2019 (UTC)
- The first result is Garage, as expected. Home Lander (talk) 23:46, 30 December 2019 (UTC)
hide contribs script stopped working?
For the past couple days it seems like User:Markhurd/hidetopcontrib.js has not been working. It creates a button to hide all contribs that aren't the current version, and it's really handy. Now, however, it hides everything other than edits which are both not the most recent and new page creations (but no, only show edits that are page creations is not selected). Any ideas? — Rhododendrites talk \\ 23:18, 30 December 2019 (UTC)
- @Rhododendrites: Seems to be conflicting with User:Evad37/Thanky.js (your most recently installed script), somehow. Suffusion of Yellow (talk) 20:06, 31 December 2019 (UTC)
- Thanks. @Evad37: Any idea why that might be? (Sadly, I cannot ping Markhurd). — Rhododendrites talk \\ 20:20, 31 December 2019 (UTC)
- @Rhododendrites: Does User:Suffusion of Yellow/hidetopcontrib.js (diff) work for you? Suffusion of Yellow (talk) 21:56, 31 December 2019 (UTC)
- @Suffusion of Yellow: Thanks. It does work, but it's different. When hiding pages that are current, Markhurd's script displayed only my most recent edit to the pages that are not current. Your new version shows all edits to those pages. So if I made 100 edits to an article and then someone else made an edit, it would show all 100 of my edits rather than just the most recent. Would this be a trivial fix? — Rhododendrites talk \\ 17:49, 1 January 2020 (UTC)
- @Rhododendrites: In both versions, that behavior is controlled by the
userHideAllSubsequent=true;
line. It looks like you commented it out when you switched to mine. If you leave that in, does my version work the same as the original? Suffusion of Yellow (talk) 18:12, 1 January 2020 (UTC)- Ah! Yes. Good now. Wasn't even thinking about that fairly self-explanatory line. Thanks. :) — Rhododendrites talk \\ 18:18, 1 January 2020 (UTC)
- @Rhododendrites: In both versions, that behavior is controlled by the
- @Suffusion of Yellow: Thanks. It does work, but it's different. When hiding pages that are current, Markhurd's script displayed only my most recent edit to the pages that are not current. Your new version shows all edits to those pages. So if I made 100 edits to an article and then someone else made an edit, it would show all 100 of my edits rather than just the most recent. Would this be a trivial fix? — Rhododendrites talk \\ 17:49, 1 January 2020 (UTC)
- @Rhododendrites: Does User:Suffusion of Yellow/hidetopcontrib.js (diff) work for you? Suffusion of Yellow (talk) 21:56, 31 December 2019 (UTC)
- Thanks. @Evad37: Any idea why that might be? (Sadly, I cannot ping Markhurd). — Rhododendrites talk \\ 20:20, 31 December 2019 (UTC)
Good. I'd prefer to not maintain a fork of that script, though. Amorymeltzer, you were the last one to touch User:Markhurd/hidetopcontrib.js. What do you think about this change? I can explain in more detail, if you like. Suffusion of Yellow (talk) 18:49, 1 January 2020 (UTC)
- Forking is probably better, that user has been inactive for 2+ years so others shouldn't rely on their personal scripts. — xaosflux Talk 21:09, 1 January 2020 (UTC)
- Haven't tested since I'm on mobile, but changes seem reasonable — it's a new class and would definitely be better to make use of it. I can check it out more tomorrow. As for the fork/no fork, it's been surprisingly fine; I don't mind making minor changes to support other scripts. IIRC a number of folks used this, so YMMV. ~ Amory (u • t • c) 22:01, 1 January 2020 (UTC)
Building infobox how to show map?
How do I show map as in El Templete vs Colegio Nacional de Arquitectos de Cuba when they both have the same info box building template but one does not show the location map no matter what I do?? Help!!!ovA_165443 (talk) 03:20, 31 December 2019 (UTC)
- The second article does not have coordinates in Wikidata. Once they are added there, the map will appear. MB 03:28, 31 December 2019 (UTC)
- Or just fill in
|map_type=
,like thislike this, as explained in the documentation for Template:Infobox building. – Jonesey95 (talk) 06:46, 31 December 2019 (UTC)- More specifically, like this: Special:Diff/933322170. This will always point at the proper edit, no matter how many new edits appear in history (imagine someone trying to follow your advice in 5 years). --CiaPan (talk) 10:54, 31 December 2019 (UTC)
- Pinging the author I replied to, as well as OP: Jonesey95, ovA_165443. --CiaPan (talk) 11:25, 31 December 2019 (UTC)
- Thank you!!! ovA_165443 (talk) 14:09, 31 December 2019 (UTC)
- Or just fill in
Template code and Lua (and MediaWiki messages)
I used to do a lot of complex template coding here on Wikipedia but have now been away for a long time. But now I am back part time (mostly updating/modernising some of my old stuff). So I would like to ask about some of the new things here. I know some of these questions partly come down to opinions, but advice from more up to date editors/coders would be helpful and appreciated.
1: Does Lua modules run much faster on the servers than templates made with only template code? I mean for fairly complex template code. That is, do Lua modules cause less load on the servers?
2: I see people have gone around changing well working templates into Lua code instead. What reasons could there be for that? Is it mostly about speed (server load) or some other reasons? (I don't mean those cases where Lua allowed them to add some complex functions that are hard to do in template code.)
3: Today I added code in a MediaWiki message calling a Lua module. I could have done it with pure template code instead. Is there a preference for MediaWiki messages? (In this case server load could not be an issue since that code only runs when editing user talk pages.)
4: If I can implement something reasonably efficiently but with somewhat tricky hard to understand code in template code, instead of slightly simpler code in Lua, should I then choose template code or Lua? I assume template code is more portable to other wikis, since many other wikis might not be Lua enabled. (I mean MediaWiki wikis outside the Wikimedia Foundation projects.)
5: I assume there still are more coders here that understand template code than understand Lua? I for instance have not learnt Lua and will probably keep coding template code, only calling Lua modules others have built (if a Lua module happens to provide what I need).
I did find Wikipedia talk:Lua but I wanted to ask here where not only Lua enthusiasts hang out. (And I did spend an hour searching trying to find answers to this, but didn't find much. But I suck at searching.)
And happy new year to everybody!
--David Göthberg (talk) 01:11, 1 January 2020 (UTC)
- @Davidgothberg: you may want to join and ask these also at Wikitech-l. You can also learn a bit more about Lua (especially our implementation of it) at mw:Lua. Lua is a fairly easy programming language (it is an interpreted language). — xaosflux Talk 01:56, 1 January 2020 (UTC)
- Variables – so you don't have to reevaluate an expression multiple times; the ability to add copious notes anywhere – can be done but it's a pain; whitespace for readability – not always possible; multiple, callable 'subroutines' all in the same module – callable sub-templates must be separate; import and export functions from and to other modules; huge data tables and the ability to create variants of a data table on an as-needed basis and only once when MediaWiki processes an article even when the template / module has many instances in that article; no doubt there are more reasons to prefer lua.
- Don't know and really don't care (I suppose I will when whatever I'm doing runs out of lua time – so far that has only happened when I've done something particularly stupid)
- Don't know; I wouldn't if whatever it is works correctly and doesn't need enhancement; I recently updated
{{nihongo}}
from wikitext to lua so that it uses Module:lang for rendering, adds error detection, categorization; in other words enhancements - I have no opinion about MediaWiki messages
somewhat tricky hard to understand [template] code
...should I then choose template code...
? Hell no. You don't endear yourself to other coders by writing code that is hard to understand; those who will come behind you to maintain your tricky code will curse the day you were born – coders who think thattricky hard to understand code
is CRUISE CONTROL FOR COOL should be taken out back and thumped. I have helped editors at a variety of the MediaWiki wikis with their implementations of the Module:Citation/CS1 suite of modules; most of those have been smaller; I have seen that same module suite on non-MediaWiki wikis so, as a guess, any wiki manager who wants lua in their installation can get it- try lua, you might find that you like it
- —Trappist the monk (talk) 02:35, 1 January 2020 (UTC)
- Yes, Lua modules do run faster, but you shouldn't care unless there is some indication of a performance problem. * Pppery * it has begun...
- I wouldn't know; I've been going around TfDing that kind of lua module as "Unnecessary Lua module, can be implemented in Wikitext"
- There's no specific preference for MediaWiki messages; I consider that usage perfectly fine given that Module:IPAddress already existed. You should, however, delete Template:IP-user other/core now that it is no longer in use
- This is a matter of some controversy; I may TfD the module if I can eek out the template code version myself, however in practice those TfDs have had inconsistent results.
- I know of no statistics on that matter
- One final comment: If you do create a new Lua module, please don't forget to document it, give it the same name as the template that calls it, tag the template with {{lua}}, and redirect the module's talk page. I've been having to complete one or more of these steps for a wide variety of different modules. * Pppery * it has begun... 02:43, 1 January 2020 (UTC)
- Thanks you all. I feel more updated now. So my interpretation is as follows: Template code is still fully accepted to use. And we can use template code, or Lua, or both combined, whatever we prefer and whatever works and gets the job done. And of course, as an old software engineer I do see the benefits of having a proper programming language like Lua, just that at the moment it would be inadvisable for me to learn another programming language. I lost count of the number of languages I have learnt and forgot since I started coding back in 1982. I am usually only able to work with and efficiently use two or three languages during the same year, my head can't handle more at the same time.
- Trappist the monk: No worries, I don't write tricky and hard to understand code to impress. But I prefer to solve the problems as well as possible, and that sometimes leads to rather complex code to handle all the stuff the best way. So yes, some of my templates have kind of "scary" code. But I usually add lots of code comments and documentation to make it easier on the next programmer.
- Trappist the monk and Pppery: Haha, it was funny that you kind of threw my old documentation advice back at me. I was one of the people that helped build and design the green template documentation boxes we use here. And I was one of the early adopters of the method to redirect all the talk pages of a template and its subpages to the same talk page. (But I didn't come up with the idea.) It confused people at first, so we started adding a brown box at the top explaining it was a joint talk page.
- And regarding performance. We have had performance problems with templates. Back in 2007 and 2008 it was so bad that at times the Wikipedia servers totally stopped serving images, and just showed the text of the articles. And it was normal that it took hours or days for categories to be updated. But that also shows that MediaWiki is well built, it has the right priorities: If overloaded, it still keeps serving the most important part. Some of the culprits were the string handling templates, we had to optimise them a lot to not overload the system. The Wikimedia system admins threatened to turn off the parser functions / magic words we used in those templates. Although the main reason the servers got overloaded was that many admins were doing rapid experimental edits (about one edit a minute) on protected templates deployed on a million pages. That's why we added those warning boxes "This template is used on a million pages" and added the /sandbox and /testcases links on the green template documentation boxes.
- --David Göthberg (talk) 05:35, 1 January 2020 (UTC)
- Davidgothberg, good times right ?? :) Awesome to see u here again David. —TheDJ (talk • contribs) 14:40, 1 January 2020 (UTC)
- I'll add to the above to say that as the complexity of a template (or whatever functionality it implements, which ideally the template complexity should be tied to but unfortunately isn't always so) increases, the argument for converting it to Lua strengthens, even if that template isn't doing any specific, individual task that Lua would be better suited for. Of course, at what point a Lua conversion becomes more preferable than a wikitext template, is up for debate, and different people who value different aspects of template/Lua design and view the issue from different perspectives, could easily have different, well-reasoned thresholds. But to pick a couple egregious cases, I don't think there's anyone here who would seriously argue for a return to the wikitext versions of {{navbox}} or the cite templates, for example. =) 「ディノ奴千?!」☎ Dinoguy1000 18:16, 1 January 2020 (UTC)
- Both of those are bad examples because they perform the lua-exclusive task of supporting an infinite number of arguments. However, if phab:T203293 or phab:T114432 were fixed, I would seriously consider a Wikitext rewrite of Template:Navbox, using Lua only for the specific places in which an infinite number of parameters are needed. * Pppery * it has begun... 18:41, 1 January 2020 (UTC)
block expiration time 50 year ago
At Category:Requests for unblock under summary section, you can see many editors who were supposed to be unblocked 50 years ago. Any guess whats causing this? My guess is lazy admins since last 51 years. —usernamekiran(talk) 10:20, 1 January 2020 (UTC)
- Unix time started 1 January 1970, 50 years ago. It must be something to do with that. Jts1882 | talk 11:19, 1 January 2020 (UTC)
- Yes. It transcludes User:Cyberbot I/Requests for unblock report which says
{{Time ago|19700101000000}}
for indefinite blocks. It started failing 26 September 2019.[3] It was reported to Cyberpower678 at User talk:Cyberpower678/Archive 67#User:Cyberbot I on Category:Requests for unblock, Summary section. PrimeHunter (talk) 12:53, 1 January 2020 (UTC)
- Yes. It transcludes User:Cyberbot I/Requests for unblock report which says
Change in searchable contributions
Recently a change has been made to how someone can view a person's contributions. If you want to view a person's last 20 contribs, the link looks like this:
- https://en.wikipedia.org/w/index.php?title=Special:Contributions/Hammersoft&offset=&limit=20&target=Hammersoft (note the bolded text)
If it's the last 50, it's "limit=50", and so forth. It used to be the case that you could change that URL so to "limit=5000". I used this on occasion when deep searching for particular contributions based on article name or edit summary. This has now been changed, and limits any request over 500 to 500. This is not the case for article histories, where you can still do up to 5000.
Why was this changed, when was it changed, and did the community have any say in its being changed? If so, where? Thanks, --Hammersoft (talk) 15:42, 1 January 2020 (UTC)
- The phabricator task about this is phab:T234450. Stryn (talk) 15:49, 1 January 2020 (UTC)
- Thanks Stryn! --Hammersoft (talk) 16:16, 1 January 2020 (UTC)
- @Hammersoft: This is Wikipedia:Village pump (technical)/Archive 177#Changes to Special:Contributions. --Redrose64 🌹 (talk) 21:53, 1 January 2020 (UTC)