A | B | C | D | E | F | G | H | CH | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | ← | Archive 5 | Archive 6 | Archive 7 | Archive 8 | Archive 9 | Archive 10 |
What does ListPages.js do?
The title makes me wonder if this might have something we could use, but I can't figure out how to get it to work, or even what it does: User:Dr Brains/ListPages.js.
The doc is no longer around, and didn't leave any instructions behind.
What does it do, and how does it work? — The Transhumanist 23:45, 4 July 2018 (UTC)
- Looks like it was intended to get all articles in a category, including all subcategories, and then find each article's interwiki target on the French Wikipedia, and produce a table of articles and their French equivalent. But it is using outdated/deprecated techniques, which would be why you can't get it to work. - Evad37 05:31, 6 July 2018 (UTC)
- Thank you. I'll cross this one off my list. — The Transhumanist 07:58, 8 July 2018 (UTC)
- A tool to get all articles in a
subcategory, including all subcategories, and list them in that structure, would be quite useful. · · · Peter (Southwood) (talk): 08:36, 14 July 2018 (UTC)- You can use wp:PETSCAN to do that (and a whole lot more) - Evad37 11:29, 14 July 2018 (UTC)
- A tool to get all articles in a
- Thank you. I'll cross this one off my list. — The Transhumanist 07:58, 8 July 2018 (UTC)
Converting the intro sections
Thank you for updating editors on this. I know it doesn't currently apply to manually maintained portals, but I just wanted to say that I'm going to try and convert the intros for the 30 or so portals I maintain. It's worked on two so far, with a bit of tweaking. Thank you to those who worked out how to do it! Bermicourt (talk) 20:06, 10 July 2018 (UTC)
- Bermicourt, We will generally not make this sort of change to a manually maintained portal out of deference to the maintainer, who has taken on the task of doing the maintensnce and any upgrades themself. If you have any trouble doing the upgrades, leave a note somewhere and we will try to help sort it out. We encourage maintainers to use the automated tools whenever there are no good reasons not to do so, because it is less work in the long run, and there is less risk of content forking when using transcluded excerpts. Cheers, · · · Peter (Southwood) (talk): 07:02, 14 July 2018 (UTC)
- Pbsouthwood. Thanks, very happy with that. I'm generally a fan of automated tools; I created one to cycle through articles/images of the month when transferred a portal from German Wikipedia but realised I wasn't going to get the support they have there to create new articles and images every month. So I set them up with an annual cycle of 12 articles/images. Clearly the frequency and cycle period are changeable. Cheers. Bermicourt (talk) 07:13, 14 July 2018 (UTC)
- P.S. I think it's good, though, that you aren't forcing the changes on portals that are manually maintained as you will retain the goodwill of those maintainers. :) Bermicourt (talk) 07:14, 14 July 2018 (UTC)
- That is the intention. If anyone wants to use the new toolkit we are willing to assist, if they don't, they are more than welcome to do it a different way as long as it works. We will convert portals with no known maintainer (most of them it seems), and if someone pops up and claims to be the maintainer then they can revert and carry on from there, as long as they actually do the maintenance they volunteer for. If they don't, someone may tag for deletion as unmaintained/out of date/whatever, and then we consider the portal open for conversion. The enthusiasm and support for automation here is amazing. We want people to join us when they think our way is better, and if they think they have a better way, to develop it so we can join them if it works. Cheers, · · · Peter (Southwood) (talk): 08:23, 14 July 2018 (UTC)
- P.S. I think it's good, though, that you aren't forcing the changes on portals that are manually maintained as you will retain the goodwill of those maintainers. :) Bermicourt (talk) 07:14, 14 July 2018 (UTC)
- Pbsouthwood. Thanks, very happy with that. I'm generally a fan of automated tools; I created one to cycle through articles/images of the month when transferred a portal from German Wikipedia but realised I wasn't going to get the support they have there to create new articles and images every month. So I set them up with an annual cycle of 12 articles/images. Clearly the frequency and cycle period are changeable. Cheers. Bermicourt (talk) 07:13, 14 July 2018 (UTC)
Slideshow failure mode on mobile devices
Someone from the project edited my test portal with the summary "Rename Picture slideshow section to "Selected pictures", because it doesn't show up as a slideshow on mobile devices" -- does anyone know what the failure mode on the slideshow is for mobile devices? (I don't own one, so can't check.) I was assuming that I'd have to convert the slideshow to the random subpages model before going live on this one, but I've been putting it off as I like the functionality. Espresso Addict (talk) 08:24, 12 July 2018 (UTC)
- The gallery shows up as a standard gallery instead of a slideshow. You can check the mobile version on a desktop device by going to the en.m.wikipedia.org version of the page, e.g. https://en.m.wikipedia.org?pojem=Portal:Sacramento - Evad37 09:11, 12 July 2018 (UTC)
- See also Wikipedia talk:WikiProject Portals/Design § Slideshows and the mobile skin - Evad37 09:13, 12 July 2018 (UTC)
- Thanks; I didn't know I could look at the mobile version like that, handy! Espresso Addict (talk) 09:32, 12 July 2018 (UTC)
- Somebody somewhere is working on a new mobile main page for Wikivoyage, and if I remember correctly it will have a carousel functionality much like the slideshows. I heard about this at Wikimania, I think, but can't remember the details, though I have a feeling it is a Mediawiki extension. When it is running we should take a look. · · · Peter (Southwood) (talk): 18:11, 31 July 2018 (UTC)
Problem with automated presentation of content on Portal:Reptiles
Bit of a problem on Portal:Reptiles, 7 boxes relying on automatic presentation of content are now saying "The time allocated for running scripts has expired." Sincerely, InsaneHacker (💬) 09:12, 15 July 2018 (UTC)
- @InsaneHacker: I am currently unable to reproduce the issue. None of the templates on that page are currently misbehaving AFAICT. If the problem is still occurring for you, please open the HTML page source and look for a comment block similar to the one mentioned here, then post it here so we can find the culprit. — AfroThundr (u · t · c) 16:11, 15 July 2018 (UTC)
- The problem is not occurring for me either anymore. Perhaps the backend was having some issues this morning. Sincerely, InsaneHacker (💬) 16:26, 15 July 2018 (UTC)
- I have also seen the problem in the last 24 hours (can't remember exactly where or when) but it seems to work now. Certes (talk) 18:01, 15 July 2018 (UTC)
- @InsaneHacker, AfroThundr3007730, and Certes: It seems to happen when a super large pic is being displayed. I was running into this phenomenon with the panoramic pics being added to the intro sections, and found that it went away when I found smaller-sized pics (under 2 megabytes) to display instead. Some of the pics in slideshows might be huge, but would only cause the problem when they are displayed, making the problem intermittent. That's where I would look next. If you purge the page, and the problem goes away, it was probably a large pic in the slideshow. — The Transhumanist 03:51, 18 July 2018 (UTC)
- "Time allocated" errors occurred when a caption's text was duplicated earlier in the infobox, e.g. in Melbourne. I fixed that bug here. Of course, other problems may produce the same error text. I'm away from home for a week so would rather not attempt module edits currently. Certes (talk) 19:50, 18 July 2018 (UTC)
Introduction automation
Hi, in the automation of the introduction section to portals we are loosing images or maps, as these are usually in the infoboxes and so the template replacement does not extract the image or map for the portal. Is there a way of overriding this to enable an image or map to be placed in the introduction or should the automated process be extended to include detail from the infobox? Keith D (talk) 18:48, 15 July 2018 (UTC)
- This is template being used Template:Transclude lead excerpt. The image parameter is
files=
. It however doesn't include images in infoboxes. --Emir of Wikipedia (talk) 19:11, 15 July 2018 (UTC)- The template attempts to include images from infoboxes. Is there a particular portal where it's not managing to do that? Certes (talk) 19:38, 15 July 2018 (UTC)
- The documentation says "Note that images within infoboxes etc. are not available." Emir of Wikipedia (talk) 21:15, 15 July 2018 (UTC)
- Thanks for spotting that. The documentation was outdated; I've fixed it. It is still possible for an article to display an image in an unusual way which the template fails to detect. Perhaps the infobox in the relevant article uses such a technique. Certes (talk) 21:37, 15 July 2018 (UTC)
- I was looking at Portal:Lincolnshire which had a map before conversion and nothing after. Though the image used for the map is not in the infobox on the Lincolnshire article but a map is there that could be used. Maybe a
|file=
parameter is needed to code in an image which is not from the article. Keith D (talk) 00:31, 17 July 2018 (UTC)- It used to use Portal:Lincolnshire/intro/2 (or, randomly, the flag in /1), which in turn uses Portal:Lincolnshire/intro/layout. That's probably best done manually, by adding a File: to the main portal page, rather than by coaxing the excerpt to include an image that's not actually in the article. Certes (talk) 01:00, 17 July 2018 (UTC)
- I was looking at Portal:Lincolnshire which had a map before conversion and nothing after. Though the image used for the map is not in the infobox on the Lincolnshire article but a map is there that could be used. Maybe a
- Thanks for spotting that. The documentation was outdated; I've fixed it. It is still possible for an article to display an image in an unusual way which the template fails to detect. Perhaps the infobox in the relevant article uses such a technique. Certes (talk) 21:37, 15 July 2018 (UTC)
- The documentation says "Note that images within infoboxes etc. are not available." Emir of Wikipedia (talk) 21:15, 15 July 2018 (UTC)
- As an alternative, you can add thumbnail pics to the top of the box, and they will be floated next to the text as usual. You can also add a panorama, which will display before the text. For examples of panorama insertion, see Portal:Seattle, Portal:Munich, and Portal:Miami. For the panorama insertion task, see Wikipedia:WikiProject Portals#Add a panorama or skyline to a geographic portal. — The Transhumanist 04:06, 18 July 2018 (UTC)
- The template attempts to include images from infoboxes. Is there a particular portal where it's not managing to do that? Certes (talk) 19:38, 15 July 2018 (UTC)
- @Keith D and Emir of Wikipedia: Evad and Certes have been improving the image detection capability of the transclusion templates. For details, and to report an image that is getting missed, go to Wikipedia talk:WikiProject Portals/Design#Template:Transclude lead excerpt. — The Transhumanist 05:00, 18 July 2018 (UTC)
- It was just a case of me reading out dated documentation but thanks for reminding me about the other page. Emir of Wikipedia (talk) 18:29, 18 July 2018 (UTC)
- @Keith D and Emir of Wikipedia: Evad and Certes have been improving the image detection capability of the transclusion templates. For details, and to report an image that is getting missed, go to Wikipedia talk:WikiProject Portals/Design#Template:Transclude lead excerpt. — The Transhumanist 05:00, 18 July 2018 (UTC)
Help! New portal. Image issue
How do you submit a new portal image so that it links to the actual portal rather than that ugly blue icon visible on newly created portals? Thanks. Senegambianamestudy (talk) 15:53, 19 July 2018 (UTC)
- Senegambianamestudy, please link to an example. I have no idea what you mean. Cheers, · · · Peter (Southwood) (talk): 16:04, 19 July 2018 (UTC)
- Portal:Alieu Ebrima Cham Joof. Thanks. Senegambianamestudy (talk) 16:07, 19 July 2018 (UTC)
- @Peter (Southwood) Thanks. Senegambianamestudy (talk) 21:28, 19 July 2018 (UTC)
- @Senegambianamestudy: See Template:Portal#Image. — The Transhumanist 23:15, 19 July 2018 (UTC)
- Thank you. Senegambianamestudy (talk) —Preceding undated comment added 23:19, 19 July 2018 (UTC)
Lua errors
There seems to be a problem with the 'in the news' section on a number of portals, in particular:
- Portal:Abu Dhabi
- Portal:Android
- Portal:Australian roads
- Portal:Bangladesh
- Portal:Bangladesh/Bangladesh news
- Portal:Bangladesh/Old
- Portal:Bengal
- Portal:Bengal/Bengal news
- Portal:Berkshire
- Portal:Buckinghamshire
- Portal:Gilgit-Baltistan
- Portal:Gilgit-Baltistan/In the news
- Portal:Hampshire
- Portal:India
- Portal:India/News
- Portal:Iraq
- Portal:New South Wales
- Portal:Poland/Events/archive
- Portal:SAARC
- Portal:SAARC/South Asia news
- Portal:Sacramento
- Portal:Salem, Oregon
- Portal:Scotland
- Portal:Surrey
- Portal:Sydney
- Portal:Telephones
- Portal:UK railways
- Portal:UK railways/Trains news
- Portal:Virginia Woolf
I fixed it by disabling the template in one, Portal:24, before noticing there are a many more. I don’t know if this can be fixed in the template, to not generate errors if there’s no data. Or if it should just be removed on the assumption that news articles on e.g. Virginia Woolf are not going to appear often enough for it to be worthwhile.--JohnBlackburnewordsdeeds 14:59, 28 July 2018 (UTC)
- @JohnClackburne: It appears to choke when days= is set to any number higher than 40. Something must have changed at the source. — The Transhumanist 05:29, 29 July 2018 (UTC)
Done I tested each of the above news sections for 40 days. Those that came up empty ("No recent news items"), I removed. Those that displayed news, I configured to 40 days. We'll be looking into news solutions soon. — The Transhumanist 18:32, 30 July 2018 (UTC)
- @The Transhumanist: This bug in the module has now been fixed, so values as high as one or maybe two years can be used again (with the actual limit dependent on how much Lua is used in the rest of the portal). - Evad37 talk 18:40, 30 July 2018 (UTC)
- Evad37, How is the amount of Lua used in the rest of the portal significant, and how does one find out how much Lua is used? · · · Peter (Southwood) (talk): 05:46, 31 July 2018 (UTC)
- There is a per-page limit 10 seconds for all Lua processing on a page. If you preview a page, then at the bottom (below the edit box) there is a collapsed section "Parser profiling data" which when clicked on expands to shows a bunch of technical measurements and limits, including Lua time usage. - Evad37 talk 06:12, 31 July 2018 (UTC)
- In addition to that, the same information can be found in the generated HTML source near the bottom of the page. Just look for a comment block starting with
NewPP limit report
. I find this very useful for capturing those stats for a specific instance of a page (e.g. when random transclusion is used, so the page is constantly changing). — AfroThundr (u · t · c) 07:28, 31 July 2018 (UTC)- Thanks for the explanations, most helpful. 10 seconds seems quite a lot of processing time for a page, specially if that is just the Lua. Are there any tips for minimising it for us non-technical people who just use the templates? · · · Peter (Southwood) (talk): 09:56, 31 July 2018 (UTC)
- It sounds a lot to me too. Has anyone done any profiling to see which activity is eating up the time? If that yields no useful information, we could restrict the number of days in getItems() with
while daysAgo < maxDays and os.clock() < 8
(8 being a number of seconds which may need tweaking). Certes (talk) 11:29, 31 July 2018 (UTC)
- In addition to that, the same information can be found in the generated HTML source near the bottom of the page. Just look for a comment block starting with
- There is a per-page limit 10 seconds for all Lua processing on a page. If you preview a page, then at the bottom (below the edit box) there is a collapsed section "Parser profiling data" which when clicked on expands to shows a bunch of technical measurements and limits, including Lua time usage. - Evad37 talk 06:12, 31 July 2018 (UTC)
- Evad37, How is the amount of Lua used in the rest of the portal significant, and how does one find out how much Lua is used? · · · Peter (Southwood) (talk): 05:46, 31 July 2018 (UTC)
- @The Transhumanist: This bug in the module has now been fixed, so values as high as one or maybe two years can be used again (with the actual limit dependent on how much Lua is used in the rest of the portal). - Evad37 talk 18:40, 30 July 2018 (UTC)
Update from Member
Hi , I have some news here .
- Firstly , I have added panoramas to Portal:Calgary , Portal:Moscow , Portal:New Orleans and Portal:Brisbane .
- But something is wrong with Portal:Melbourne , please can somebody check on it ? Kpgjhpjm 12:42, 16 July 2018 (UTC)
- It's getting the "The time allocated for running scripts has expired." message on
{{Transclude lead excerpt|Melbourne}}
. Purging didn't help. Melbourne is a long article. I'll see whether we can handle large pages more efficiently. Certes (talk) 15:03, 16 July 2018 (UTC) - @Kpgjhpjm:
Fixed. The caption text for Melbourne's map also appears earlier in the infobox as alt text, which confused the parser into an infinite loop. Sorry for the inconvenience; thanks for the report and for adding the attractive images. Certes (talk) 16:04, 16 July 2018 (UTC)
- It's getting the "The time allocated for running scripts has expired." message on
- But something is wrong with Portal:Melbourne , please can somebody check on it ? Kpgjhpjm 12:42, 16 July 2018 (UTC)
Another bug
In Portal:Kurdistan, one of the images in the slideshow has a broken caption (you need to scroll through them to see it). Seems it can’t handle a caption which invokes a module. The bug is present in the page even when it’s not displaying the image, which suggests it’s loading all those images but not displaying them which could be quite expensive. It’s not making it any faster it seems as there’s a distinct delay when you cycle though them.--JohnBlackburnewordsdeeds 23:40, 1 August 2018 (UTC)
- Loading all of the listed (or linked) article segments is a limitation of the random excerpt and random slideshow template series. Loading a particular file or excerpt on demand would most likely require client-side javascript, which is beyond the scope of these templates. The problematic image in question is from Kurdistan § Syrian Civil War and the caption makes use of several templates and a module invocation. The wikitext looks like this:
File:Syrian, Iraqi, and Lebanese insurgencies.png|thumb|240px|Military situation on {{#invoke:Iraq_Syria_map_date|date}}:<br />{{legend|#e2d974|Controlled by Kurdish Supreme Committee|Syrian Kurds}}{{legend|#d7e074|Controlled by Peshmerga|Iraqi Kurds}}{{legend|#b4b2ae|Controlled by the Islamic State of Iraq and the Levant|Islamic State in Iraq and Syria (ISIL, ISIS, IS)}}
- I'm not sure how this should be fixed. If the template just strips the module, part of the caption will be missing. @Evad37: thoughts? — AfroThundr (u · t · c) 05:38, 2 August 2018 (UTC)
Bug report: Template:Portal image banner throws an error when there is no caption
I just fixed all uses of it in portal space by adding captions to each one (though I cheated on the Scotland portal, just adding hard spaces as captions, as there were so many.)
The weird thing is, they didn't need captions until today. Those pictures worked fine without captions yesterday.
Even though there aren't any errors being thrown currenty, the bug is still there. Though I probably wouldn't have taken the time to add all those informative captions if the bug wasn't there. :) — The Transhumanist 23:07, 1 August 2018 (UTC)
- Yes, I spotted that too. I've spent most of the day assembling a range of panorama images to add to Portal: Scotland. Testing them without captions, all previewed fine. So I added them all, saved and lo and behold, on checking later suddenly there were no panorama images, just a Lua error message. After much head scratching I came to the same conclusion as you, The Transhumanist, so I have now reluctantly added captions. (I didn't spot that you'd added the hard spaces - that might be a preferred option for me, because I find the captions unneccessary). It would be good if the template / module author could fix it so that they are optional again. Cactus.man ✍ 00:20, 2 August 2018 (UTC)
- @Transhumanist and Cactus.man:
Fixed — FR + 09:21, 2 August 2018 (UTC)
- @Transhumanist and Cactus.man:
Similar problem - Warning: Template include size is too large. Some templates will not be included.
I am getting this error on Portal:Underwater diving. It is a big portal with lots of automated random excerpts in the various box sections. It was OK until I converted to {{Transclude excerpts as random slideshow}}, and now there are quite a lot of templates that are not processed. It may be that I am just trying to go beyond what is reasonable in the current system, but maybe there is a way to tweak it. · · · Peter (Southwood) (talk): 13:03, 31 July 2018 (UTC)
This is from the HTML
|
---|
NewPP limit report Parsed by mw1267 Cached time: 20180731124327 Cache expiry: 3600 Dynamic content: true CPU time usage: 7.432 seconds Real time usage: 8.992 seconds Preprocessor visited node count: 57510/1000000 Preprocessor generated node count: 0/1500000 Post‐expand include size: 2097152/2097152 bytes Template argument size: 730052/2097152 bytes Highest expansion depth: 20/40 Expensive parser function count: 5/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 847828/5000000 bytes Number of Wikibase entities loaded: 0/400 Lua time usage: 5.436/10.000 seconds Lua memory usage: 24.74 MB/50 MB --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 7770.505 1 -total 70.96% 5513.587 17 Template:Transclude_excerpts_as_random_slideshow 11.65% 905.506 18 Template:Navbox 8.15% 632.955 188 Template:Ship 6.23% 484.163 25 Template:Columns-list 6.01% 466.894 18 Template:Collapsible_list 5.84% 453.648 1 Template:Random_slideshow 5.25% 407.665 1 Template:Recreational_dive_sites 3.63% 281.695 78 Template:SS 3.21% 249.269 77 Template:Imbox --> |
The Post-expand include size, whatever that is, seems to have hit the limit. Everything else in the top group 'looks' OK, but I am guessing · · · Peter (Southwood) (talk): 13:26, 31 July 2018 (UTC)
- (edit conflict) Yep, I was about to comment on that. I noticed the behavior started to happen after you converted all the sections to use {{transclude excerpts as random slideshow}}. Here are the reports on either side of that edit:
Before
|
---|
<!-- NewPP limit report Parsed by mw1269 Cached time: 20180731134219 Cache expiry: 21600 Dynamic content: true CPU time usage: 4.168 seconds Real time usage: 4.959 seconds Preprocessor visited node count: 44913/1000000 Preprocessor generated node count: 0/1500000 Post‐expand include size: 1626840/2097152 bytes Template argument size: 613695/2097152 bytes Highest expansion depth: 20/40 Expensive parser function count: 2/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 329317/5000000 bytes Number of Wikibase entities loaded: 0/400 Lua time usage: 2.485/10.000 seconds Lua memory usage: 10.12 MB/50 MB --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 3926.903 1 -total 23.55% 924.782 2 Template:Transclude_list_item_excerpts_as_random_slideshow 14.80% 581.262 18 Template:Navbox 12.83% 503.821 1 Template:Random_slideshow 12.78% 501.922 188 Template:Ship 12.68% 497.807 25 Template:Columns-list 12.62% 495.462 18 Template:Collapsible_list 10.73% 421.306 1 Template:Transclude_excerpts_as_random_slideshow 8.07% 316.848 1 Template:Transclude_selected_current_events 6.37% 250.167 1 Template:Recreational_dive_sites --> |
After
|
---|
<!-- NewPP limit report Parsed by mw1270 Cached time: 20180731134334 Cache expiry: 3600 Dynamic content: true CPU time usage: 8.872 seconds Real time usage: 10.533 seconds Preprocessor visited node count: 62453/1000000 Preprocessor generated node count: 0/1500000 Post‐expand include size: 2097152/2097152 bytes Template argument size: 749109/2097152 bytes Highest expansion depth: 24/40 Expensive parser function count: 6/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 948199/5000000 bytes Number of Wikibase entities loaded: 0/400 Lua time usage: 6.596/10.000 seconds Lua memory usage: 22.04 MB/50 MB --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 9156.232 1 -total 60.90% 5576.263 17 Template:Transclude_excerpts_as_random_slideshow 11.53% 1056.080 18 Template:Navbox 10.75% 983.928 2 Template:Transclude_list_item_excerpts_as_random_slideshow 7.76% 710.863 188 Template:Ship 5.30% 485.315 1 Template:Random_slideshow 5.30% 484.931 1 Template:Recreational_dive_sites 5.12% 469.243 25 Template:Columns-list 5.06% 462.950 18 Template:Collapsible_list 3.46% 317.051 78 Template:SS --> |
- You can see that even before that conversion you were at 77% of the limit. Add in several more instances of the not-exactly-lightweight slideshow templates, and there you are. I don't have exact numbers for this, but I'll wager that page weighs in at over 3MB right now. Perhaps we can find ways to make these templates a little lighter, so we don't have to restrict their use too much. — AfroThundr (u · t · c) 13:48, 31 July 2018 (UTC)
- At least we're not hitting the Lua timeout, so the modules themselves aren't too heavy. @Evad37 and Certes: Do you guys know of a good way to pin down what exactly about the transclusion templates is causing this? Is it just too many transcluded templates in the excerpts? Is there anything we can do to reduce the impact, or are we just going to have to limit the amount of times these templates are used? — AfroThundr (u · t · c) 13:56, 31 July 2018 (UTC)
- (Thinking out loud) It would be awesome if there was some sort of introspection capability, so we could find out where the limit is getting hit from. It could be another problem article with some odd template usage again, or maybe it's just the sheer number of instances being used concurrently. Would it be possible to build a test template that instead of displaying the excerpt, showed some stats about how heavy that particular transclusion is, maybe even do the same with a whole list? Something like that would make finding the issue trivial, I think. — AfroThundr (u · t · c) 14:05, 31 July 2018 (UTC)
- (ec) Does the page size include the actual .jpgs? If so then that's clearly the cause of hitting the page size limit: the first image alone is 492 kB. Can we use smaller versions? I think the modules themselves are "heavy" (including the code I've written). Even if the load on the server is just about within the limit (which it may not be once we fix the size limit and generate the full page), 10.533 seconds is longer than many people are prepared to wait for a page to load. Certes (talk) 14:11, 31 July 2018 (UTC)
- Oh no, the images wouldn't be included in this, we'd have soo many broken articles if that were the case. It's just for tracking the "overhead" of generating the HTML from the wikitext source. The images will only ever be a URI. The browser will still load them separately, so they don't count source-wise. Part of the 10 second load time is because the parser is actually waiting on the expansion to finish (and probably times out due to hitting the include size). Reducing the page below the include size would make the rendering phase quicker again. The ~5 second time from before the break is not bad for a template-heavy page like a portal. — AfroThundr (u · t · c) 14:22, 31 July 2018 (UTC)
- Thanks for the clarification. It's ok to give {{Transclude random excerpt}} hundreds of article parameters because each call only transcludes and expands one of the articles. {{Transclude excerpts as random slideshow}} works differently: it needs to read all of the articles, ready to flip between them if the reader clicks the previous/next arrows. The diving portal now looks wonderful but it's reading in 365 articles and expanding 365 leads. That has to be expensive, but I'm not sure how we achieve such great results more cheaply. Certes (talk) 14:52, 31 July 2018 (UTC)
- Each instance of {{Transclude excerpts as random slideshow}} will limit itself to only actually reading/using 50 excerpts by default, and a lower limit can be set with the
|limit=
parameter. - Evad37 talk 15:04, 31 July 2018 (UTC)- I will try limiting to 25. It will be a rare reader who ever gets that far, and if they do, they can purge the page for a new selection, or use the index above to go through the lot. If anyone ever does this I would be astonished. · · · Peter (Southwood) (talk): 16:58, 31 July 2018 (UTC)
- I tried 25 and it was still too large. I've just limited the large lists to 20 and that works (1,945,881/2,097,152 bytes). Certes (talk) 17:13, 31 July 2018 (UTC)
- And that explains my edit conflict! I came to the same conclusion, 20 works fine. I just added it to the whole lot in case things grow over time. Still cutting it a bit fine, as many of the transcluded excerpts are rather small and will grow, but as long as I know how to fix it is manageable, and we now know roughly what the upper limit might look like. Cheers, · · · Peter (Southwood) (talk): 17:50, 31 July 2018 (UTC)
- This limitation is a thing to bear in mind when designing a portal wizard. In a few years the limit may go up, as things do. · · · Peter (Southwood) (talk): 17:59, 31 July 2018 (UTC)
- 10 seconds is a fairly long time to wait if you are accustomed to fast internet. For me it sometimes take that long to save an edit, and not necessarily a big one. That will also get faster as the years pass. · · · Peter (Southwood) (talk): 18:04, 31 July 2018 (UTC)
- I don't suppose there is a way to bypass the full expansion, and load the content of the excerpts (or images) one at a time as and when they are selected, as I assume the images are loaded into Mediaviewer? · · · Peter (Southwood) (talk): 18:35, 31 July 2018 (UTC)
- 10 seconds is a fairly long time to wait if you are accustomed to fast internet. For me it sometimes take that long to save an edit, and not necessarily a big one. That will also get faster as the years pass. · · · Peter (Southwood) (talk): 18:04, 31 July 2018 (UTC)
- Each instance of {{Transclude excerpts as random slideshow}} will limit itself to only actually reading/using 50 excerpts by default, and a lower limit can be set with the
- Thanks for the clarification. It's ok to give {{Transclude random excerpt}} hundreds of article parameters because each call only transcludes and expands one of the articles. {{Transclude excerpts as random slideshow}} works differently: it needs to read all of the articles, ready to flip between them if the reader clicks the previous/next arrows. The diving portal now looks wonderful but it's reading in 365 articles and expanding 365 leads. That has to be expensive, but I'm not sure how we achieve such great results more cheaply. Certes (talk) 14:52, 31 July 2018 (UTC)
- Oh no, the images wouldn't be included in this, we'd have soo many broken articles if that were the case. It's just for tracking the "overhead" of generating the HTML from the wikitext source. The images will only ever be a URI. The browser will still load them separately, so they don't count source-wise. Part of the 10 second load time is because the parser is actually waiting on the expansion to finish (and probably times out due to hitting the include size). Reducing the page below the include size would make the rendering phase quicker again. The ~5 second time from before the break is not bad for a template-heavy page like a portal. — AfroThundr (u · t · c) 14:22, 31 July 2018 (UTC)
- (ec) Does the page size include the actual .jpgs? If so then that's clearly the cause of hitting the page size limit: the first image alone is 492 kB. Can we use smaller versions? I think the modules themselves are "heavy" (including the code I've written). Even if the load on the server is just about within the limit (which it may not be once we fix the size limit and generate the full page), 10.533 seconds is longer than many people are prepared to wait for a page to load. Certes (talk) 14:11, 31 July 2018 (UTC)
- I notice that portal is now clocking in at a hair under the include limit (currently 96%).
Full stats
|
---|
<!-- NewPP limit report Parsed by mw1266 Cached time: 20180731184805 Cache expiry: 3600 Dynamic content: true CPU time usage: 6.572 seconds Real time usage: 7.913 seconds Preprocessor visited node count: 51801/1000000 Preprocessor generated node count: 0/1500000 Post‐expand include size: 2013571/2097152 bytes Template argument size: 662620/2097152 bytes Highest expansion depth: 20/40 Expensive parser function count: 5/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 758943/5000000 bytes Number of Wikibase entities loaded: 0/400 Lua time usage: 4.526/10.000 seconds Lua memory usage: 22.32 MB/50 MB --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 6430.083 1 -total 69.78% 4486.731 18 Template:Transclude_excerpts_as_random_slideshow 9.63% 619.190 18 Template:Navbox 7.94% 510.635 188 Template:Ship 7.14% 459.012 25 Template:Columns-list 6.88% 442.563 18 Template:Collapsible_list 6.37% 409.448 1 Template:Random_slideshow 4.20% 270.270 1 Template:Recreational_dive_sites 3.34% 214.923 78 Template:SS 2.64% 169.726 1 Template:Transclude_list_item_excerpts_as_random_slideshow --> |
- So 7.9s to load the page (not counting the time to load images, etc.) and 4.5s of Lua time. A bit on the heavy side, but manageable, assuming nothing else is added to it.
- On another note, how feasible would it be to whip up a JS widget to yank these blocks out of the page content and display it for the user? Just curious. — AfroThundr (u · t · c) 19:20, 31 July 2018 (UTC)
- @AfroThundr3007730: I didn't understand your question. You want a user script to do what? — The Transhumanist 04:20, 12 August 2018 (UTC)
- I was referring to a toolbox button that will give you the template and Lua stats for a page in a popup when clicked. Not that searching the HTML source directly is difficult or anything. Just thinking it would be handy for checking on the heavier portals. — AfroThundr (u · t · c) 06:52, 12 August 2018 (UTC)
- @AfroThundr3007730: I didn't understand your question. You want a user script to do what? — The Transhumanist 04:20, 12 August 2018 (UTC)
We need a high profile 'Shop Window' page to show off current 'good practice' and different styles
Firstly, can I say that I am in awe of the absolutely amazing work done by so many keen editors here over the last few months. Naming no names, you all know who you are.
Anyway, I thought I'd drop by and start to pick up tips to manually improve Portal:Alps, and add in some of the new automated features being developed. Amongst all the complex challenges and solutions being discussed here, I actually found it quite hard to wade through and to pick out helpful links to where the good bits are already deployed and working fine. I finally managed to understand enough to try out a few of them in my sandbox - and I'd welcome feedback, especially from Bermicourt. But first I had to resort to read back through some of the really informative newsletter updates left on my talk page by The Transhumanist. I then pasted the most up-to-date instructions and links into the bottom of my mockup as a form of reference tool for myself. Only then could I understand enough to create a working demo.
So I was wondering, could we have some form of really obvious, high-profile 'shop window' on the Project page to help show off some of the updated Portals that demonstrate how well each one of these elements work? It would be great to see examples of individual elements, different column layouts and so forth, and maybe even some 'before and after' links. As well as helping people like me to see current developments in action, and to manually modify an existing Portal, I suggest it could be a useful section to keep updated whilst we're in transition, especially to show the 'non-believers' how great things are becoming. My apologies if I've missed something that's already been created - maybe it just isn't easy to find. Cheers all, Nick Moyes (talk) 14:27, 17 August 2018 (UTC)
- @Nick Moyes: The easiest way to start, is to put
{{subst:box portal skeleton}}
on the blank page, and press ↵ Enter.
- For Portal:Alps, it looks like this: https://en.wikipedia.org?pojem=Portal:Alps&oldid=855407361
- Then you fill in the blanks.
- Or, you can copy any of the new portals. Most of their code is templatized, some even with magic words. So when you save it on a new page, it will conform to the subject in the title of the page, except for customizations, like the panorama, sections using {{Transclude random excerpt}}, manual search terms in the Did you know and In the news sections. Pretty easy to spot when you view the page.
- Most of the new tools are covered and put into perspective on Wikipedia:WikiProject Portals/Design.
- The most extensive portals are based on outlines, using the {{Transclude list item excerpts as random slideshow}} and its section parameter. So using this model requires building an outline first. See Portal:Monaco (which is partially built on this model), and Portal:Lithuania (which is built almost entirely on this model).
- As for shop windows, the portals themselves are just that. Look at the new or revamped portals, and see what features you like. Then pull those right out of the page source.
- I hope the above tips help. "Shop windows" are provided below... — The Transhumanist 08:01, 18 August 2018 (UTC)
Portals using {{Transclude random excerpt}}
- Portal:1910s
- Portal:1930s
- Portal:24
- Portal:Algae
- Portal:Amphibians
- Portal:Anatomy
- Portal:Ancient Tamil civilization
- Portal:Birds
- Portal:Book of Mormon
- Portal:Cenozoic
- Portal:Community of Christ
- Portal:Cornwall
- Portal:Devon
- Portal:Florida
- Portal:Geert Wilders
- Portal:Gujarat
- Portal:History of the Latter Day Saint movement
- Portal:Human body
- Portal:Humanism
- Portal:Jakarta
- Portal:Juanes
- Portal:LDS Church
- Portal:Latter Day Saints
- Portal:Monaco
- Portal:Narnia
- Portal:Patna
- Portal:Pensacola
- Portal:Pornography
- Portal:Prehistory of Africa
- Portal:Prehistory of Antarctica
- Portal:Prehistory of Europe
- Portal:Quidditch
- Portal:Reference works
- Portal:Republican Party
- Portal:Right-wing populism
- Portal:Sacramento
- Portal:Salem, Oregon
- Portal:Scottish islands
- Portal:Serbia/Selected article/2
- Portal:Sikhism
- Portal:Telephones
- Portal:Water
- Portal:Wolfgang Amadeus Mozart
Portals using {{Transclude list item excerpt}}
- Portal:Amravati district
- Portal:Athens
- Portal:Barcelona
- Portal:Dresden
- Portal:Dubai
- Portal:Edinburgh
- Portal:Florence
- Portal:Herbalism
- Portal:Kyoto
- Portal:Milan
- Portal:Monaco
- Portal:Mountains
- Portal:Munich
- Portal:Palermo
- Portal:Prague
- Portal:Rio de Janeiro
- Portal:SAARC
- Portal:Saint Petersburg
- Portal:Sarawak
- Portal:Stockholm
- Portal:Turin
- Portal:Vienna
Portals using {{Transclude list item excerpts as random slideshow}}
- Portal:19th century
- Portal:20th century
- Portal:A. H. Belo
- Portal:Aaliyah
- Portal:Abbas Kiarostami
- Portal:Abbottabad
- Portal:Abortion
- Portal:Acoustics
- Portal:Aerial warfare
- Portal:Ahmednagar district
- Portal:Alphabets
- Portal:Amateur radio
- Portal:Ambala district
- Portal:Amsterdam
- Portal:Anchovies
- Portal:Angling
- Portal:Anti-nuclear movement
- Portal:Anti-psychiatry
- Portal:Aquatic ecosystem
- Portal:Arabic language
- Portal:Archery
- Portal:Aretha Franklin
- Portal:Armenian language
- Portal:Art world
- Portal:Arunachal Pradesh
- Portal:Aurangabad district, Maharashtra
- Portal:Automotive industry in Australia
- Portal:Automotive industry in France
- Portal:Automotive industry in Italy
- Portal:Automotive industry in Mexico
- Portal:Automotive industry in the United States
- Portal:Automotive industry
- Portal:Bangkok
- Portal:Beed district
- Portal:Bhandara district
- Portal:Bhiwani district
- Portal:Billy Ocean
- Portal:Bisexuality
- Portal:BitTorrent
- Portal:Braille
- Portal:Bread
- Portal:Breakfast
- Portal:Bruce Lee
- Portal:Buldhana district
- Portal:Burger King
- Portal:Calculus
- Portal:Camouflage
- Portal:Capital punishment
- Portal:Captain & Tennille
- Portal:Caves
- Portal:Celtic mythology
- Portal:Cereals
- Portal:Chandrapur district
- Portal:Cheese
- Portal:Chera dynasty
- Portal:Chilean wine
- Portal:Chinese language
- Portal:Chinese mythology
- Portal:Chinese philosophy
- Portal:Chittoor district
- Portal:Chocolate
- Portal:Chola dynasty
- Portal:Chopin
- Portal:Christmas trees
- Portal:Citrus
- Portal:Clothing
- Portal:Co-operatives
- Portal:Cod
- Portal:Colorado Springs
- Portal:Conducting
- Portal:Cornish language
- Portal:Cosmetics
- Portal:Cryonics
- Portal:Cryptocurrencies
- Portal:Danish language
- Portal:Determinism
- Portal:Dhule district
- Portal:Diplomacy
- Portal:Elisabet Ney
- Portal:Ella Fitzgerald
- Portal:Emerging technologies
- Portal:Emma Goldman
- Portal:Empire of Brazil
- Portal:Empire of Japan
- Portal:Energy in China
- Portal:Energy in Germany
- Portal:English literature
- Portal:Environmentalism
- Portal:Essex
- Portal:Finance
- Portal:First aid
- Portal:Fishing industry
- Portal:Fishing vessels
- Portal:Forage fish
- Portal:Fruits
- Portal:Furniture
- Portal:Gadchiroli district
- Portal:Genocide
- Portal:Gondia district
- Portal:Gurgaon district
- Portal:Han dynasty
- Portal:Herbs and spices
- Portal:Hindi
- Portal:Hingoli district
- Portal:Hisar district
- Portal:India
- Portal:Ip Man
- Portal:Jalgaon district
- Portal:Jalna district
- Portal:Jhajjar district
- Portal:Jhargram district
- Portal:Jin dynasty (1115–1234)
- Portal:Jin dynasty (265–420)
- Portal:Jind district
- Portal:Kaithal district
- Portal:Karnal district
- Portal:Kodagu district
- Portal:Kolhapur district
- Portal:Kurukshetra district
- Portal:Lacrosse
- Portal:Latin
- Portal:Liao dynasty
- Portal:Lithuania
- Portal:Lua programming language
- Portal:Mahendragarh district
- Portal:Maize
- Portal:Management
- Portal:Manufacturing
- Portal:Meat Zdroj:https://en.wikipedia.org?pojem=Wikipedia_talk:WikiProject_Portals/Archive_7
Text je dostupný za podmienok Creative Commons Attribution/Share-Alike License 3.0 Unported; prípadne za ďalších podmienok. Podrobnejšie informácie nájdete na stránke Podmienky použitia.
Antropológia
Aplikované vedy
Bibliometria
Dejiny vedy
Encyklopédie
Filozofia vedy
Forenzné vedy
Humanitné vedy
Knižničná veda
Kryogenika
Kryptológia
Kulturológia
Literárna veda
Medzidisciplinárne oblasti
Metódy kvantitatívnej analýzy
Metavedy
Metodika
Text je dostupný za podmienok Creative
Commons Attribution/Share-Alike License 3.0 Unported; prípadne za ďalších
podmienok.
Podrobnejšie informácie nájdete na stránke Podmienky
použitia.
www.astronomia.sk | www.biologia.sk | www.botanika.sk | www.dejiny.sk | www.economy.sk | www.elektrotechnika.sk | www.estetika.sk | www.farmakologia.sk | www.filozofia.sk | Fyzika | www.futurologia.sk | www.genetika.sk | www.chemia.sk | www.lingvistika.sk | www.politologia.sk | www.psychologia.sk | www.sexuologia.sk | www.sociologia.sk | www.veda.sk I www.zoologia.sk