Wikipedia talk:WikiProject Portals/Archive 7 - Biblioteka.sk

Upozornenie: Prezeranie týchto stránok je určené len pre návštevníkov nad 18 rokov!
Zásady ochrany osobných údajov.
Používaním tohto webu súhlasíte s uchovávaním cookies, ktoré slúžia na poskytovanie služieb, nastavenie reklám a analýzu návštevnosti. OK, súhlasím


Panta Rhei Doprava Zadarmo
...
...


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

Wikipedia talk:WikiProject Portals/Archive 7
 ...
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)

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)

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)
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)
@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)

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:

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)

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)
@Certes: Added panorama to the Portal along with Seattle and Houston portals . Kpgjhpjm 16:33, 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)

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)
I believe dynamically loading excerpts like that would require client-side JavaScript, so probably not something we'd be able to do with templates alone. — AfroThundr (u · t · c) 19:20, 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)

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}}

Portals using {{Transclude list item excerpt}}

Portals using {{Transclude list item excerpts as random slideshow}}

  1. Portal:19th century
  2. Portal:20th century
  3. Portal:A. H. Belo
  4. Portal:Aaliyah
  5. Portal:Abbas Kiarostami
  6. Portal:Abbottabad
  7. Portal:Abortion
  8. Portal:Acoustics
  9. Portal:Aerial warfare
  10. Portal:Ahmednagar district
  11. Portal:Alphabets
  12. Portal:Amateur radio
  13. Portal:Ambala district
  14. Portal:Amsterdam
  15. Portal:Anchovies
  16. Portal:Angling
  17. Portal:Anti-nuclear movement
  18. Portal:Anti-psychiatry
  19. Portal:Aquatic ecosystem
  20. Portal:Arabic language
  21. Portal:Archery
  22. Portal:Aretha Franklin
  23. Portal:Armenian language
  24. Portal:Art world
  25. Portal:Arunachal Pradesh
  26. Portal:Aurangabad district, Maharashtra
  27. Portal:Automotive industry in Australia
  28. Portal:Automotive industry in France
  29. Portal:Automotive industry in Italy
  30. Portal:Automotive industry in Mexico
  31. Portal:Automotive industry in the United States
  32. Portal:Automotive industry
  33. Portal:Bangkok
  34. Portal:Beed district
  35. Portal:Bhandara district
  36. Portal:Bhiwani district
  37. Portal:Billy Ocean
  38. Portal:Bisexuality
  39. Portal:BitTorrent
  40. Portal:Braille
  41. Portal:Bread
  42. Portal:Breakfast
  43. Portal:Bruce Lee
  44. Portal:Buldhana district
  45. Portal:Burger King
  46. Portal:Calculus
  47. Portal:Camouflage
  48. Portal:Capital punishment
  49. Portal:Captain & Tennille
  50. Portal:Caves
  51. Portal:Celtic mythology
  52. Portal:Cereals
  53. Portal:Chandrapur district
  54. Portal:Cheese
  55. Portal:Chera dynasty
  56. Portal:Chilean wine
  57. Portal:Chinese language
  58. Portal:Chinese mythology
  59. Portal:Chinese philosophy
  60. Portal:Chittoor district
  61. Portal:Chocolate
  62. Portal:Chola dynasty
  63. Portal:Chopin
  64. Portal:Christmas trees
  65. Portal:Citrus
  66. Portal:Clothing
  67. Portal:Co-operatives
  68. Portal:Cod
  69. Portal:Colorado Springs
  70. Portal:Conducting
  71. Portal:Cornish language
  72. Portal:Cosmetics
  73. Portal:Cryonics
  74. Portal:Cryptocurrencies
  75. Portal:Danish language
  76. Portal:Determinism
  77. Portal:Dhule district
  78. Portal:Diplomacy
  79. Portal:Elisabet Ney
  80. Portal:Ella Fitzgerald
  81. Portal:Emerging technologies
  82. Portal:Emma Goldman
  83. Portal:Empire of Brazil
  84. Portal:Empire of Japan
  85. Portal:Energy in China
  86. Portal:Energy in Germany
  87. Portal:English literature
  88. Portal:Environmentalism
  89. Portal:Essex
  90. Portal:Finance
  91. Portal:First aid
  92. Portal:Fishing industry
  93. Portal:Fishing vessels
  94. Portal:Forage fish
  95. Portal:Fruits
  96. Portal:Furniture
  97. Portal:Gadchiroli district
  98. Portal:Genocide
  99. Portal:Gondia district
  100. Portal:Gurgaon district
  101. Portal:Han dynasty
  102. Portal:Herbs and spices
  103. Portal:Hindi
  104. Portal:Hingoli district
  105. Portal:Hisar district
  106. Portal:India
  107. Portal:Ip Man
  108. Portal:Jalgaon district
  109. Portal:Jalna district
  110. Portal:Jhajjar district
  111. Portal:Jhargram district
  112. Portal:Jin dynasty (1115–1234)
  113. Portal:Jin dynasty (265–420)
  114. Portal:Jind district
  115. Portal:Kaithal district
  116. Portal:Karnal district
  117. Portal:Kodagu district
  118. Portal:Kolhapur district
  119. Portal:Kurukshetra district
  120. Portal:Lacrosse
  121. Portal:Latin
  122. Portal:Liao dynasty
  123. Portal:Lithuania
  124. Portal:Lua programming language
  125. Portal:Mahendragarh district
  126. Portal:Maize
  127. Portal:Management
  128. Portal:Manufacturing
  129. Portal:Meat
  130. 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.






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.

Your browser doesn’t support the object tag.

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