Knowledge

Module talk:Random slideshow

Source 📝

517: 393: 216: 581: 1173: 70: 186: 21: 126: 101: 112: 901:) is because of the fact that the description includes tables and templates, which, due to one reason or another (potentially due to the more limited form of gallery compared to files, but im not sure), isn't going to work or display nicely in the slideshow. In terms of fixing that, I'm not exactly sure what to recommend, as what the issue is 434: 1153:
Sorry, I haven't had much free time IRL to spend on wiki stuff. The pieces should be pretty much ready, and should be able to be copied over to commons – except I'm not sure what the modules are like over there, which might make it harder to put it all together. Plus article excerpt slideshows don't
366:, that looks a lot better. My only reservation is that the radio buttons bounce around as the content size changes. If possible, would it be better to put them in a stable position at the top, or would that make them too prominent at the expense of the more important content below? Pinging 954:
Came across this issue again while investigating something else, so I decided to take a look. The primary issue lies in how galleries work, and how they don't respect tables that well, and unfortunately I'm not sure if this has a simple solution. I've left my findings on what I've noticed on
825:
in the former example. It looks like the module attempts to strip out "thumb" and similar parameters from gallery entries, but in this case, it appears to have failed. This "thumb" problem appears to be happening in a just a couple of Portal pages, but there are similar errors in
988:(and a few are human errors, not the module). I'm going to do a minor look into weird upright inclusion behaviour after this post, but as far as I can see the new version is working fine, though if you notice any issues or have suggestions, do tell me. Hope this helps. 504:
Template should not be used in main space ever......way to many problems.....as is why it's not used anywhere in main space but that one article that has major accessibility problems..... so much so that it's FA status should be removed due to accessibility as.per
983:
Good news - after quite a touch up today with how the module works and some more light work yesterday, I've mostly fixed the 2 main causes of the bogus file option linter errors, bringing down the total number of errors from what I think was ~140 to
830:, so fixing it in the module would be best. There are a few more instances of complex markup in image captions failing to be stripped or parsed correctly (e.g. "Map of counties in Missouri by racial plurality, per the 2020 US Census" from 959:
with examples, which should explain it well. As for solutions, the only idea I have is preventing the expansion of templates, but I have yet to test this, and I'm not sure if the expansion is currently intentional for a different reason.
749:
in the above markup, the bogus file option goes away ... almost. It's replaced by one of those pesky, dare I say "bogus px" bogus file options. Anyway, the longer bogus file option is attributable to your latest change.
1008:
was quite unhappy with what I tried and blew up on the spot, so I also now have to go fix that. If the linter errors are back to below 15, I've found a fix before you've seen this. If not, hopefully I will soon after.
921:
As I suggested in the other discussion, maybe one solution is to render the file on its own, then insert a line break and then render the caption without any processing, outside of the File: invocation. –
873:
option (or at least not as far as I can tell), so the module never expects to have to remove it. I've removed the occurance of it from the article it's on, but correct me if I'm wrong on this call.
1154:
need to be a thing over on commons, but are part of the module here. Feel free to ping me again in a couple of weeks if I haven't gotten around to it by then, or leave a message on my talk page -
937: 469:
Something in this change appears to be causing Linter bogus image options errors. If you turn on the LintHint gadget, you can see them. As far as I can tell, the problem appears when
743: 671: 768:, have you considered fixing the articles instead? if the parameters image parameters are bogus, then there should be no reason not to fix the articles. for example, 1216: 506: 49: 677:
in the above markup, the bogus file options go away. So the bogus file options are a result of the changes introduced in the edit of 06:25, 7 May 2021‎ by
311: 1219:
for a template or module to find out what pages are in a category (short of reading in every file in Knowledge and scanning for "Category:Whatever").
525:
OK, I have prevented it from working in article space. Is someone available to fix the missing pipe problem, or should I revert the recent changes? –
412:
I've managed to place the radio buttons at the top, and keep them centered so they don't jump around. I've also scaled up their size a little bit -
176: 1200:
Instead of lists; has anyone built a Random Slideshow from Category? Wouldn't it be much easier to have a "{PortalName} Portal Pictures" category?
722: 650: 232: 1243: 170: 1248: 142: 1110:
Just following up to see, with the recent improvements to the mobile version, if this is good to copy over to Commons? Thanks. —
956: 321: 773: 732: 660: 301: 27: 384:
Much better.....agree butons a bit small..... but every image showing in mobile view is over so that's the biggest sloved.--
146: 133: 106: 81: 265: 294:-like switching to display one item at a time, with radio selection buttons below to select which image to display. 38: 244: 1005: 814:
File:The White Rocks near Portrush (1) - geograph.org.uk - 785899.jpg|<span class="db-c3dpdGNoZXItbA": -->
792: 194: 138: 804:
File:Eurythenes plasticus (10.11646-zootaxa.4748.1.9) Figure 3.jpg|<span class="db-c3dpdGNoZXItbA": -->
755: 686: 588: 1063:
the transclude function to link to the article from which an image is transcluded. Previous discussion:
1088: 87: 30:
discussions and keep related topics together, the talk pages for the following templates redirect here:
656:{{Transclude files as random slideshow |Newspaper |Entertainment journalism |Data-driven journalism }} 141:
on Knowledge. If you would like to participate, please visit the project page, where you can join the
1205: 1178: 1148: 1134: 1112: 1030: 1015: 994: 966: 945: 927: 911: 890: 879: 839: 530: 495: 283: 1004:...iiiiif I didn't run into issues, which apparently seems to be impossible with me :). Turns out 546:, this change seems to have strange results in the Portal namespace. Compare "Selected images" in 808:
thumb|640 µm microplastic found in the deep sea amphipod ''Eurythenes plasticus'' (from ''']''')
781: 704: 563: 336: 250: 827: 345:
I'll deploy this solution in a couple of days from now, unless there are any concerns raised. -
765: 751: 696: 682: 646: 555: 547: 291: 490:
I'm guessing that this makes the alt tags fail to work properly for blind readers as well. –
1224: 1072: 1064: 375: 246: 215: 332:
It's not perfect. For one thing, it won't work in Template: namespace (for the same reason
1201: 718: 629: 1026: 1010: 989: 978: 961: 941: 923: 906: 874: 851: 835: 637: 526: 516: 491: 479: 392: 580: 1237: 777: 736: 714: 700: 664: 625: 574: 559: 551: 653:
lint errors, which I tracked down to one error per article in the following markup:
1228: 1209: 1185: 1165: 1141: 1119: 1092: 1076: 1034: 1020: 999: 971: 949: 931: 916: 898: 884: 843: 785: 759: 708: 690: 602: 567: 534: 520: 499: 463: 423: 396: 379: 356: 248: 20: 1220: 1157: 1127: 1105: 1083: 1068: 678: 641: 633: 594: 543: 455: 443: 415: 403: 371: 363: 348: 287: 1132:
One more nudge on this and I'll leave you alone/find something different. :) —
1170:
Copied over (without the transclusion stuff), and seems to be working fine!
681:. Fixing modules is beyond my skill set, but I have localized the problem. — 621: 617: 510: 447: 407: 386: 367: 791:
Some version of this error is still present on a few Portal pages. I used
488:
alt=An emaciated polar bear stands atop the remains of a melting ice floe.
342:
doesn't). But it is a big improvement compared to what currently happens.
282:
I've come up with a better way to display this module on mobile – demo at
831: 478:
tags are not separated from that alt parameter by the necessary pipe. In
473:
is specified in the File: call on a target page. It appears that the new
834:). I'm hoping a change to the regex in the module will be sufficient. – 795:
with "Portal:Marine life" in the Context title to expand the following:
185: 889:
As for the errors appearing on some of the other portal pages, like
818:
Sandy shores provide shifting homes to many species (from ''']''')
864:
than the module's fault. The image causing issues there is from a
125: 100: 861: 251: 209: 63: 15: 728:{{Transclude files as random slideshow | Medical cannabis }} 798:{{Transclude files as random slideshow | Marine habitats }} 184: 938:
Template:Transclude files as random slideshow/testcases2
1059: 856:
In the case of the Marine habitats, that appearance of
769: 325: 315: 305: 175:
This module does not require a rating on the project's
772:
shows many upright problems (syntax not documented in
725:
lint error, which I tracked down to following markup:
735:
to the production version of 14:50, 10 March 2021 by
663:
to the production version of 14:50, 10 March 2021 by
895:
File:Pennsylvania Counties by race (2020 census).svg
558:
has the radio selection buttons even on desktop. —⁠
111: 370:, who seems to be our expert on these matters. 869:, and images in galleries do not support the 507:Template:Transclude files as random slideshow 482:, for example, one of the errors shows up as 259:This page has archives. Sections older than 8: 744:Transclude files as random slideshow/sandbox 672:Transclude files as random slideshow/sandbox 801:That results in a bogus image option here: 312:Module:Random slideshow/sandbox/styles.css 95: 80:does not require a rating on Knowledge's 811:An error-free instance looks like this: 1025:Thanks for continuing to work on it. – 815:<span class="db-cmFuZG9tU2xpZA": --> 805:<span class="db-cmFuZG9tU2xpZA": --> 587:. The new styles needed to be added to 485:<span class="db-cmFuZG9tU2xpZA": --> 484:<span class="db-c3dpdGNoZXItbA": --> 97: 940:to demonstrate two of these errors. – 470: 269:when more than 5 sections are present. 297:Sandbox modules/styles used in demo: 7: 137:, a collaborative effort to improve 50:Transclude files as random slideshow 865: 474: 86:It is of interest to the following 69: 67: 131:This page is within the scope of 14: 821:Note the undesirable presence of 699:, should be generally fixed now. 263:may be automatically archived by 1171: 905:is hard to pin down. Any ideas? 860:appears to be more of a case of 579: 515: 432: 391: 322:Module:Excerpt slideshow/sandbox 214: 124: 110: 99: 68: 19: 774:Knowledge:Extended image syntax 733:Module:Random slideshow/sandbox 661:Module:Random slideshow/sandbox 302:Module:Random slideshow/sandbox 1082:Looks and works great. Thanks 932:20:25, 30 September 2022 (UTC) 917:18:58, 30 September 2022 (UTC) 885:18:07, 30 September 2022 (UTC) 844:20:43, 16 September 2022 (UTC) 290:). It uses TemplateStyles and 1: 611:bogus file option lint errors 155:Knowledge:WikiProject Portals 1035:13:16, 4 November 2022 (UTC) 1021:12:31, 4 November 2022 (UTC) 1000:12:16, 4 November 2022 (UTC) 972:10:16, 17 October 2022 (UTC) 158:Template:WikiProject Portals 1244:Template-Class Portal pages 1229:20:31, 26 August 2021 (UTC) 1210:19:58, 26 August 2021 (UTC) 1053:Link to transcluded article 950:14:01, 2 October 2022 (UTC) 550:and "Selected pictures" in 1265: 1249:NA-importance Portal pages 828:a dozen or so Portal pages 1186:22:18, 25 July 2021 (UTC) 1166:05:18, 23 July 2021 (UTC) 1142:17:09, 20 July 2021 (UTC) 1065:User talk:Certes#Big idea 192: 174: 119: 94: 1196:Random pic from category 1120:14:34, 9 June 2021 (UTC) 1093:23:16, 22 May 2021 (UTC) 1077:21:47, 22 May 2021 (UTC) 1006:Module:Excerpt slideshow 786:19:39, 14 May 2021 (UTC) 760:17:20, 14 May 2021 (UTC) 709:14:28, 14 May 2021 (UTC) 691:20:27, 13 May 2021 (UTC) 603:12:22, 23 May 2021 (UTC) 568:09:58, 15 May 2021 (UTC) 535:15:43, 10 May 2021 (UTC) 793:Special:ExpandTemplates 521:21:02, 7 May 2021 (UTC) 500:20:41, 7 May 2021 (UTC) 464:06:26, 7 May 2021 (UTC) 424:05:01, 3 May 2021 (UTC) 397:11:40, 2 May 2021 (UTC) 380:10:08, 2 May 2021 (UTC) 357:04:37, 2 May 2021 (UTC) 278:Mobile view improvement 589:Module:Portal pictures 266:Lowercase sigmabot III 189: 816:Image 3</span: --> 806:Image 2</span: --> 486:Image 1</span: --> 188: 867:...</gallery: --> 893:(the issue lies in 891:Portal:Pennsylvania 284:Portal:Kent/Sandbox 134:WikiProject Portals 723:Bogus file options 651:Bogus file options 190: 147:list of open tasks 82:content assessment 647:Portal:Journalism 556:Portal:Amphibians 548:Portal:Amphibians 476:...</span: --> 292:Template:Switcher 273: 272: 238: 237: 208: 207: 204: 203: 200: 199: 62: 61: 1256: 1183: 1181: 1175: 1174: 1152: 1139: 1137: 1131: 1117: 1115: 1109: 1099:Copy to Commons? 1091: 1062: 982: 896: 872: 868: 866:<gallery: --> 859: 855: 824: 748: 742: 676: 670: 645: 583: 578: 519: 513: 489: 477: 472: 451: 440: 436: 435: 411: 395: 389: 341: 335: 268: 252: 229: 228: 218: 210: 163: 162: 161:Portals articles 159: 156: 153: 128: 121: 120: 115: 114: 113: 103: 96: 73: 72: 71: 64: 54: 48: 43: 39:Random slideshow 37: 23: 16: 1264: 1263: 1259: 1258: 1257: 1255: 1254: 1253: 1234: 1233: 1198: 1179: 1177: 1172: 1146: 1135: 1133: 1125: 1113: 1111: 1103: 1101: 1087: 1058: 1055: 1019: 998: 976: 970: 936:I have created 915: 894: 883: 870: 857: 849: 822: 819: 809: 799: 746: 740: 729: 719:Portal:Cannabis 674: 668: 657: 615: 613: 572: 509: 483: 441: 433: 431: 401: 385: 339: 333: 280: 264: 253: 247: 223: 195:List of Portals 160: 157: 154: 151: 150: 109: 58: 57: 52: 46: 41: 35: 12: 11: 5: 1262: 1260: 1252: 1251: 1246: 1236: 1235: 1232: 1231: 1197: 1194: 1193: 1192: 1191: 1190: 1189: 1188: 1180:Rhododendrites 1149:Rhododendrites 1136:Rhododendrites 1114:Rhododendrites 1100: 1097: 1096: 1095: 1054: 1051: 1050: 1049: 1048: 1047: 1046: 1045: 1044: 1043: 1042: 1041: 1040: 1039: 1038: 1037: 1013: 1002: 992: 964: 909: 877: 817:</span: --> 813: 807:</span: --> 803: 797: 789: 788: 727: 712: 711: 655: 612: 609: 608: 607: 606: 605: 541: 540: 539: 538: 537: 487:</span: --> 480:Climate change 429: 428: 427: 426: 382: 330: 329: 319: 309: 279: 276: 271: 270: 258: 255: 254: 249: 245: 243: 240: 239: 236: 235: 225: 224: 219: 213: 206: 205: 202: 201: 198: 197: 191: 181: 180: 173: 167: 166: 164: 129: 117: 116: 104: 92: 91: 85: 74: 60: 59: 56: 55: 44: 32: 31: 24: 13: 10: 9: 6: 4: 3: 2: 1261: 1250: 1247: 1245: 1242: 1241: 1239: 1230: 1226: 1222: 1218: 1214: 1213: 1212: 1211: 1207: 1203: 1195: 1187: 1182: 1169: 1168: 1167: 1164: 1163: 1162: 1159: 1150: 1145: 1144: 1143: 1138: 1129: 1124: 1123: 1122: 1121: 1116: 1107: 1098: 1094: 1090: 1089:North America 1085: 1081: 1080: 1079: 1078: 1074: 1070: 1066: 1061: 1052: 1036: 1032: 1028: 1024: 1023: 1022: 1017: 1012: 1007: 1003: 1001: 996: 991: 987: 980: 975: 974: 973: 968: 963: 958: 953: 952: 951: 947: 943: 939: 935: 934: 933: 929: 925: 920: 919: 918: 913: 908: 904: 900: 892: 888: 887: 886: 881: 876: 863: 853: 848: 847: 846: 845: 841: 837: 833: 829: 812: 802: 796: 794: 787: 783: 779: 775: 771: 767: 764: 763: 762: 761: 757: 753: 745: 738: 734: 726: 724: 720: 716: 710: 706: 702: 698: 695: 694: 693: 692: 688: 684: 680: 673: 666: 662: 654: 652: 648: 643: 639: 635: 631: 627: 623: 619: 610: 604: 601: 600: 599: 596: 590: 586: 582: 576: 571: 570: 569: 565: 561: 557: 553: 552:Portal:Sports 549: 545: 542: 536: 532: 528: 524: 523: 522: 518: 512: 508: 503: 502: 501: 497: 493: 481: 475:<span: --> 468: 467: 466: 465: 462: 461: 460: 457: 449: 445: 439: 425: 422: 421: 420: 417: 409: 405: 400: 399: 398: 394: 388: 383: 381: 377: 373: 369: 365: 361: 360: 359: 358: 355: 354: 353: 350: 343: 338: 327: 323: 320: 317: 313: 310: 307: 303: 300: 299: 298: 295: 293: 289: 285: 277: 275: 267: 262: 257: 256: 242: 241: 234: 231: 230: 227: 226: 222: 217: 212: 211: 196: 187: 183: 182: 178: 177:quality scale 172: 169: 168: 165: 148: 144: 140: 136: 135: 130: 127: 123: 122: 118: 108: 105: 102: 98: 93: 89: 83: 79: 75: 66: 65: 51: 45: 40: 34: 33: 29: 25: 22: 18: 17: 1199: 1160: 1156: 1155: 1102: 1056: 985: 903:specifically 902: 899:Pennsylvania 820: 810: 800: 790: 766:Anomalocaris 752:Anomalocaris 739:, and using 730: 713: 697:Anomalocaris 683:Anomalocaris 667:, and using 658: 614: 597: 593: 592: 584: 458: 454: 453: 437: 430: 418: 414: 413: 351: 347: 346: 344: 331: 296: 281: 274: 260: 220: 132: 88:WikiProjects 77: 770:this search 288:mobile view 1238:Categories 1202:Mjquinn_id 630:Sophivorus 193:See also: 145:and see a 143:discussion 28:centralise 1215:There is 1027:Jonesey95 1011:Aidan9382 990:Aidan9382 979:Jonesey95 962:Aidan9382 957:this page 942:Jonesey95 924:Jonesey95 907:Aidan9382 875:Aidan9382 852:Jonesey95 836:Jonesey95 638:Ymblanter 527:Jonesey95 492:Jonesey95 337:If mobile 233:Archive 1 832:Missouri 778:Frietjes 737:Freitjes 731:I reset 715:Frietjes 701:Frietjes 665:Freitjes 659:I reset 626:Andrybak 575:Andrybak 560:andrybak 221:Archives 171:Template 26:To help 1060:changed 1057:I have 871:|thumb| 640:, and 362:Thanks 261:60 days 152:Portals 139:portals 107:Portals 1221:Certes 1217:no way 1128:Evad37 1106:Evad37 1084:Certes 1069:Certes 823:thumb| 721:has 1 679:Evad37 649:has 3 642:Pppery 634:Certes 544:Evad37 444:Certes 404:Certes 372:Certes 364:Evad37 84:scale. 78:module 897:from 858:thumb 585:Fixed 471:|alt= 76:This 1225:talk 1206:talk 1158:Evad 1073:talk 1031:talk 1016:talk 995:talk 967:talk 946:talk 928:talk 912:talk 880:talk 862:GIGO 840:talk 782:talk 756:talk 705:talk 687:talk 622:GKFX 618:Izno 595:Evad 591:. - 564:talk 531:talk 511:Moxy 496:talk 456:Evad 448:Moxy 446:and 438:Done 416:Evad 408:Moxy 406:and 387:Moxy 376:talk 368:Moxy 349:Evad 326:diff 316:diff 306:diff 1184:\\ 1140:\\ 1118:\\ 776:). 1240:: 1227:) 1208:) 1176:— 1161:37 1086:! 1075:) 1067:. 1033:) 986:10 948:) 930:) 842:) 784:) 758:) 747:}} 741:{{ 717:: 707:) 689:) 675:}} 669:{{ 636:, 632:, 628:, 624:, 620:, 598:37 566:) 554:. 533:) 498:) 459:37 452:- 419:37 378:) 352:37 340:}} 334:{{ 53:}} 47:{{ 42:}} 36:{{ 1223:( 1204:( 1151:: 1147:@ 1130:: 1126:@ 1108:: 1104:@ 1071:( 1029:( 1018:) 1014:( 997:) 993:( 981:: 977:@ 969:) 965:( 944:( 926:( 914:) 910:( 882:) 878:( 854:: 850:@ 838:( 780:( 754:( 750:— 703:( 685:( 644:: 616:@ 577:: 573:@ 562:( 529:( 514:- 494:( 450:: 442:@ 410:: 402:@ 390:- 374:( 328:) 324:( 318:) 314:( 308:) 304:( 286:( 179:. 149:. 90::

Index


centralise
Random slideshow
Transclude files as random slideshow
content assessment
WikiProjects
WikiProject icon
Portals
WikiProject icon
WikiProject Portals
portals
discussion
list of open tasks
Template
quality scale
Note icon
List of Portals

Archive 1
Lowercase sigmabot III
Portal:Kent/Sandbox
mobile view
Template:Switcher
Module:Random slideshow/sandbox
diff
Module:Random slideshow/sandbox/styles.css
diff
Module:Excerpt slideshow/sandbox
diff
If mobile

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.