Knowledge

Module talk:Random slideshow

Source 📝

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

Index

Template talk:Transclude files as random slideshow

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

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