Module talk:Excerpt slideshow
![]() | Portals ![]() | |||||||||
|
![]() | To help centralize discussions and keep related topics together, the talk pages for all the excerpt slideshow templates redirect here: |
Very useful
I want this! Next step would be to combine with {{Transclude list item excerpt}} as {{Transclude list item excerpts as random slideshow}}, to make a really powerful automation tool to make a portal from an outline list. · · · Peter (Southwood) (talk): 05:13, 25 June 2018 (UTC)
Losing list formatting
This template seems to be losing the formatting of bulleted lists. See example.
The template {{Transclude lead excerpt}} seems to do it right. See example.
Gas planning is one of the stages of scuba gas management. The other stages include:
- Knowledge of personal and team members' gas consumption rates under varying conditions
- basic consumption at the surface for variations in workload
- variation in consumption due to depth variation
- variation in consumption due to dive conditions and personal physical and mental condition
- Monitoring the contents of the cylinders during a dive
- Awareness of the critical pressures and using them to manage the dive
- Efficient use of the available gas during the planned dive and during an emergency
- Limiting the risk of equipment malfunctions that could cause a loss of breathing gas (Full article...)
so the module is working. Cheers, · · · Peter (Southwood) (talk): 12:07, 28 July 2018 (UTC)
- This is from a limitation of the gallery syntax, where the caption can't contain any new lines, so the module changes them to
<br>
tags. It might be possible for the module to change a wikitext list into a html list with<ul>...</ul>
and<li>...</li>
tags. But allowing for sublists makes it complicated. - Evad37 [talk] 03:46, 29 July 2018 (UTC)- @Pbsouthwood:
Fixed, mostly. If different types of list are mixed together, e.g. a numbered sublist (lines beginning
*#
or similar), then the sublist will still be broken. - Evad37 [talk] 04:51, 14 September 2018 (UTC)- I can't remember what it used to look like:-/ Current version is nearly right – I see that the return to a lesser indent is missing its bullet. Cheers, · · · Peter (Southwood) (talk): 05:41, 14 September 2018 (UTC)
- @Pbsouthwood:
Fixed. (Before, the items would have the "*" characters at the start of the line instead of proper bullet points) - Evad37 [talk] 07:01, 15 September 2018 (UTC)
- Thanks for the reminder, and latest tweak. Cheers, · · · Peter (Southwood) (talk): 08:58, 15 September 2018 (UTC)
- @Pbsouthwood:
- I can't remember what it used to look like:-/ Current version is nearly right – I see that the return to a lesser indent is missing its bullet. Cheers, · · · Peter (Southwood) (talk): 05:41, 14 September 2018 (UTC)
- @Pbsouthwood:
Option for title display
Would it be possible to extract the title of the selected excerpt and display it at the top of the rendering? Some excerpts are not very obvious about their topic, and particularly with the slideshow arrangement, it would help to identify what the excerpt is about. In the case of a section, the full section title would probably be most generally useful. · · · Peter (Southwood) (talk): 17:11, 28 July 2018 (UTC)
- For lead excerpts at least, it sounds more like a content issue that should be addressed at the individual articles – lead sentences should be making it obvious what the topic of the article is (MOS:LEAD). If they do that properly, than showing the page title as well is superfluous. For sections, showing the article title and section makes sense, but should probably be done at Module:Excerpt rather than here. - Evad37 [talk] 03:40, 29 July 2018 (UTC)
- True, but most portals created using the new structure are going to include some articles with badly formed leads, and having the title displayed may reduce confusion in the reader. It is not reasonably practicable to check every lead, and new articles will be added which will be included automatically. Some of them will have poorly formed leads. · · · Peter (Southwood) (talk): 05:46, 14 September 2018 (UTC)
Images not rendering properly
Evad37 - The images produced by this template at Portal:India are rendering badly (they seem to be getting cut off after a certain width). Could you check this up. — FR + 05:34, 6 August 2018 (UTC)
- @FR30799386: I can't see any issues with the excerpt slideshows on that portal, at least on my computer.
- Can you provide a screenshot of the problem? (see WP:WPSHOT for instructions)
- Can you test on other browsers or other computers?
- Does the same problem happen if you use {{transclude lead excerpt}}? (If so, that would indicate a problem with Module:Excerpt rather than this module.)
- - Evad37 [talk] 13:04, 6 August 2018 (UTC)

- Evad37 - I have uploaded added the screenshot of the problem. — FR + 10:51, 7 August 2018 (UTC)
Template:Transclude list item excerpt causes Bogus file options lint errors
Template stops transcluding lead when it encounters a | character
See Portal:A-ha and Minor Earth Major Sky.
Transclusion stops at the | character, when it shouldn't. Dreamy Jazz 🎷 talk to me | my contributions 10:57, 5 September 2018 (UTC)
- @Evad37: @Certes:. Pinging as still a present problem. Dreamy Jazz 🎷 talk to me | my contributions 21:29, 13 September 2018 (UTC)
- This one works with {{Transclude lead excerpt}}, but with {{Transclude excerpts as random slideshow}} it's stopping as described: immediately before a "|" character in the text (not wikitext in a piped link etc.) early in the source article Minor Earth Major Sky. @Evad37: I guess that the "|" prematurely terminates a parameter, perhaps to #tag:gallery in Module:Random slideshow. Can you gsub it to {{!}} or something? Certes (talk) 00:23, 14 September 2018 (UTC)
- @Dreamy Jazz and Certes:
Fixed. Ended up needing to replace pipes not within links or templates with the html enitity
|
so that it wouldn't get expanded again by Module:Random slideshow - Evad37 [talk] 02:29, 14 September 2018 (UTC)
- @Dreamy Jazz and Certes:
- This one works with {{Transclude lead excerpt}}, but with {{Transclude excerpts as random slideshow}} it's stopping as described: immediately before a "|" character in the text (not wikitext in a piped link etc.) early in the source article Minor Earth Major Sky. @Evad37: I guess that the "|" prematurely terminates a parameter, perhaps to #tag:gallery in Module:Random slideshow. Can you gsub it to {{!}} or something? Certes (talk) 00:23, 14 September 2018 (UTC)
Problems when including a page with a mathematics formula
Portal:Tires uses this module via
{{Transclude list item excerpts as random slideshow | paragraphs=1-2 | files=1 | more=
| Template:{{PAGENAME}} | }}
and creates maths rendering error when transcluding Slip angle which has a mathematical expression at the end of its second paragraph.
The slip angle, <math>\alpha</math> is defined as <br />
<center><math>\alpha \triangleq -\arctan\left(\frac{v_y}{|v_x|}\right)</math></center>
The error message generated is
Failed to parse (syntax error): {\displaystyle
\alpha \triangleq -\arctan\left(\frac{v_y}\right)}
It looks like the {|v_x|}
part got stripped, perhaps thinking this is a table rather than part of a math's formula. --Salix alba (talk): 12:07, 8 September 2018 (UTC)
Annotated links in lists
Evad37 I think I may be repaying your helpfulness by creating more work. Sorry about that.
I have made a template {{Annotated link}}
which is useful in lists to annotate the item using the short description from the linked article. This obviously changes the format and now this template does not recognise the links any more - they are now inside {{Annotated link|Article title}}
, where article title represents the link.
Can this be managed without excessive overhead? An example can be seen in Portal:Underwater diving in box Diving modes, which gets a list from Outline of underwater diving#Modes of underwater diving, which now has examples of the Annotated link template. · · · Peter (Southwood) (talk): 08:12, 13 September 2018 (UTC)
- @Pbsouthwood:
Done - Evad37 [talk] 10:28, 13 September 2018 (UTC).
- Also fixed in Module:Excerpt, so that {{Transclude linked excerpt}} and {{Transclude list item excerpt}} will work with annotated links. - Evad37 [talk] 10:36, 13 September 2018 (UTC)
- Good work mate, Thanks, · · · Peter (Southwood) (talk): 12:09, 13 September 2018 (UTC)
This module is not rendering numbered lists or tabs using colons
This module does not render numbered lists or tabs using colons. It is this module that has the problem, as this test on my sandbox confirms it works as normal for Module:Excerpt. See Portal:Sandgrouse and Order (biology). Thanks, Dreamy Jazz 🎷 talk to me | my contributions 20:14, 14 September 2018 (UTC)
Fixed numbered lists. Colon markup is going to be more difficult, since it can be also be used with semi-colons as definition list markup. - Evad37 [talk] 07:50, 15 September 2018 (UTC)
Use with navboxes
This template is being used with navboxes to semi-automate portal construction, but as far as I can tell, only for the whole content of the navbox. Is it possible to extract a group from a navbox template, and ideally use the group title in the header and to select the group with its subgroups for a random slideshow? This way several selected article boxes could be populated from the same navbox. · · · Peter (Southwood) (talk): 19:15, 19 September 2018 (UTC)
Missing image
@Evad37: Portal:Buffalo Braves transcludes 1972–73 Buffalo Braves season which has {{NBA_season|logo = [[Image:Buffalo Braves logo.png|200px]]…}}
, but Image:Buffalo Braves logo.png doesn't exist. Can {{Transclude list item excerpts as random slideshow}} ignore the |logo=
parameter here? (Also, the image would also probably be non-free if it did exist, though that's hard to guess without an image.) Thanks, Certes (talk) 10:42, 21 September 2018 (UTC)