58:
30:
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by
31:
others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes.
36:
35:
to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the
68:
105:
32:
64:
17:
1041:/* only add button and increment count if there is a header row to work with */
126:// Modified to collapse based on infobox class, rather than collapsible class
57:
80:
After saving, you have to bypass your browser's cache to see the changes.
104:
toolbar button. For details and instructions about other browsers, see
52:
26:
1486:'font-size:smaller; font-weight:normal;'
8:
97:
1461:/* Styles are declared in Common.css */
67:seems to have a documentation page at
45:be executed when previewing this page.
7:
112:
24:
106:Knowledge (XXG):Bypass your cache
69:User:Frietjes/collapse infoboxes
56:
1:
1326:'mycollapsibleTable'
342:'mycollapsibleTable'
1984:
1558:'mycollapseButton'
305:'mycollapseButton'
1964:
1957:
1953:
1937:
1933:
1926:
1919:
1897:
1851:
1847:
1840:
1833:
1820:
1786:
1782:
1745:
1723:
1686:
1682:
1660:
1599:
1571:
1537:
1497:
1493:
1465:
1440:
1436:
1405:
1374:
1343:
1339:
1305:
1289:
1285:
1260:
1253:
1228:
1185:
1154:
1129:
1098:
1076:
1045:
1038:
1034:
994:
942:
938:
931:
915:
893:
865:
861:
848:
817:
801:
782:
766:
762:
755:
748:
720:
713:
673:
621:
608:
580:
573:
545:
493:
456:
452:
439:
414:
410:
403:
390:
359:
355:
318:
281:
1455:'collapseButton'
250:
246:
227:
208:
204:
167:
130:
123:
116:
113:
37:appropriate village pump
1946:createCollapseButtons
772:createCollapseButtons
1215:getElementsByTagName
1172:getElementsByTagName
1116:getElementsByTagName
1063:getElementsByTagName
835:getElementsByTagName
100:key and click the
1069:'caption'
1021:'infobox'
75:
74:
49:
48:
1975:
1969:
1968:
1962:
1961:
1955:
1951:
1950:
1947:
1944:
1941:
1935:
1931:
1930:
1924:
1923:
1917:
1916:
1913:
1910:
1907:
1904:
1901:
1895:
1894:
1891:
1888:
1885:
1882:
1879:
1876:
1873:
1870:
1867:
1864:
1861:
1858:
1855:
1849:
1845:
1844:
1838:
1837:
1831:
1830:
1827:
1824:
1818:
1817:
1814:
1811:
1808:
1805:
1802:
1799:
1796:
1793:
1790:
1784:
1780:
1779:
1776:
1773:
1770:
1767:
1764:
1761:
1758:
1755:
1752:
1749:
1743:
1742:
1739:
1736:
1733:
1730:
1727:
1721:
1720:
1717:
1714:
1711:
1708:
1705:
1702:
1699:
1696:
1693:
1690:
1684:
1680:
1679:
1676:
1673:
1670:
1667:
1664:
1658:
1657:
1654:
1651:
1648:
1645:
1642:
1639:
1638:handleButtonLink
1636:
1633:
1630:
1627:
1624:
1621:
1618:
1615:
1612:
1609:
1606:
1603:
1597:
1596:
1593:
1590:
1587:
1584:
1581:
1578:
1575:
1569:
1568:
1565:
1562:
1559:
1556:
1553:
1550:
1547:
1544:
1541:
1535:
1534:
1531:
1528:
1525:
1522:
1519:
1516:
1513:
1510:
1507:
1504:
1501:
1495:
1491:
1490:
1487:
1484:
1481:
1478:
1475:
1472:
1469:
1463:
1462:
1459:
1456:
1453:
1450:
1447:
1444:
1438:
1434:
1433:
1430:
1427:
1424:
1421:
1418:
1415:
1412:
1409:
1403:
1402:
1399:
1396:
1393:
1390:
1387:
1384:
1381:
1378:
1372:
1371:
1368:
1365:
1362:
1359:
1356:
1353:
1350:
1347:
1341:
1337:
1336:
1333:
1330:
1327:
1324:
1321:
1318:
1315:
1312:
1309:
1303:
1302:
1299:
1296:
1293:
1287:
1283:
1282:
1279:
1276:
1273:
1270:
1267:
1264:
1258:
1257:
1251:
1250:
1247:
1244:
1241:
1238:
1235:
1232:
1226:
1225:
1222:
1219:
1216:
1213:
1210:
1207:
1204:
1201:
1198:
1195:
1192:
1189:
1183:
1182:
1179:
1176:
1173:
1170:
1167:
1164:
1161:
1158:
1152:
1151:
1148:
1145:
1142:
1139:
1136:
1133:
1127:
1126:
1123:
1120:
1117:
1114:
1111:
1108:
1105:
1102:
1096:
1095:
1092:
1089:
1086:
1083:
1080:
1074:
1073:
1070:
1067:
1064:
1061:
1058:
1055:
1052:
1049:
1043:
1042:
1036:
1032:
1031:
1028:
1025:
1022:
1019:
1016:
1013:
1010:
1007:
1004:
1001:
998:
992:
991:
988:
985:
982:
979:
976:
973:
970:
967:
964:
961:
958:
955:
952:
949:
946:
940:
936:
935:
929:
928:
925:
922:
919:
913:
912:
909:
906:
903:
900:
897:
891:
890:
887:
884:
881:
878:
875:
872:
871:handleButtonLink
869:
863:
859:
858:
855:
852:
846:
845:
842:
839:
836:
833:
830:
827:
824:
821:
815:
814:
811:
808:
805:
799:
798:
795:
792:
789:
786:
780:
779:
776:
773:
770:
764:
760:
759:
753:
752:
746:
745:
742:
739:
736:
733:
730:
727:
724:
718:
717:
711:
710:
707:
704:
701:
698:
695:
692:
689:
686:
683:
680:
677:
671:
670:
667:
664:
661:
658:
655:
652:
649:
646:
643:
640:
637:
634:
631:
628:
625:
619:
618:
615:
612:
606:
605:
602:
599:
596:
593:
590:
587:
584:
578:
577:
571:
570:
567:
564:
561:
558:
555:
552:
549:
543:
542:
539:
536:
533:
530:
527:
524:
521:
518:
515:
512:
509:
506:
503:
500:
497:
491:
490:
487:
484:
481:
478:
475:
472:
469:
466:
463:
460:
454:
450:
449:
446:
443:
437:
436:
433:
430:
427:
424:
421:
418:
412:
408:
407:
401:
400:
397:
394:
388:
387:
384:
381:
378:
375:
372:
369:
366:
363:
357:
353:
352:
349:
346:
343:
340:
337:
334:
331:
328:
325:
322:
316:
315:
312:
309:
306:
303:
300:
297:
294:
291:
288:
285:
279:
278:
275:
272:
269:
266:
263:
260:
257:
254:
248:
244:
243:
240:
237:
234:
231:
225:
224:
221:
218:
215:
212:
206:
202:
201:
198:
195:
192:
189:
186:
183:
180:
177:
174:
171:
165:
164:
161:
158:
155:
152:
149:
146:
143:
140:
137:
134:
128:
127:
121:
120:
109:
96:: Hold down the
60:
53:
27:
1983:
1982:
1978:
1977:
1976:
1974:
1973:
1972:
1971:
1970:
1966:
1963:
1959:
1956:
1952:
1948:
1945:
1942:
1939:
1936:
1932:
1928:
1925:
1921:
1918:
1914:
1911:
1908:
1905:
1902:
1899:
1896:
1892:
1889:
1886:
1883:
1880:
1877:
1874:
1871:
1868:
1865:
1862:
1859:
1856:
1853:
1850:
1846:
1842:
1839:
1835:
1832:
1828:
1825:
1822:
1819:
1815:
1812:
1809:
1806:
1803:
1800:
1797:
1794:
1791:
1788:
1785:
1781:
1777:
1774:
1771:
1768:
1765:
1762:
1759:
1756:
1753:
1750:
1747:
1744:
1740:
1737:
1734:
1731:
1728:
1725:
1722:
1718:
1715:
1712:
1709:
1706:
1703:
1700:
1697:
1694:
1691:
1688:
1685:
1681:
1677:
1674:
1671:
1668:
1665:
1662:
1659:
1655:
1652:
1649:
1646:
1643:
1640:
1637:
1634:
1631:
1628:
1625:
1622:
1620:'click'
1619:
1616:
1613:
1610:
1607:
1604:
1601:
1598:
1594:
1591:
1588:
1585:
1582:
1579:
1576:
1573:
1570:
1566:
1563:
1560:
1557:
1554:
1551:
1548:
1545:
1542:
1539:
1536:
1532:
1529:
1526:
1523:
1520:
1517:
1514:
1511:
1508:
1505:
1502:
1499:
1496:
1492:
1488:
1485:
1482:
1480:'style'
1479:
1476:
1473:
1470:
1467:
1464:
1460:
1457:
1454:
1451:
1448:
1445:
1442:
1439:
1435:
1431:
1429:collapseCaption
1428:
1425:
1422:
1419:
1416:
1413:
1410:
1407:
1404:
1400:
1397:
1394:
1391:
1388:
1385:
1382:
1379:
1376:
1373:
1369:
1366:
1363:
1360:
1357:
1354:
1351:
1348:
1345:
1342:
1338:
1334:
1331:
1328:
1325:
1322:
1319:
1316:
1313:
1310:
1307:
1304:
1300:
1297:
1294:
1292:NavigationBoxes
1291:
1288:
1284:
1280:
1277:
1274:
1271:
1268:
1265:
1262:
1259:
1255:
1252:
1248:
1245:
1242:
1239:
1236:
1233:
1230:
1227:
1223:
1220:
1217:
1214:
1211:
1208:
1205:
1202:
1199:
1196:
1193:
1190:
1187:
1184:
1180:
1177:
1174:
1171:
1168:
1165:
1162:
1159:
1156:
1153:
1149:
1146:
1143:
1140:
1137:
1134:
1131:
1128:
1124:
1121:
1118:
1115:
1112:
1109:
1106:
1103:
1100:
1097:
1093:
1090:
1087:
1084:
1081:
1078:
1075:
1071:
1068:
1065:
1062:
1059:
1056:
1053:
1050:
1047:
1044:
1040:
1037:
1033:
1029:
1026:
1023:
1020:
1017:
1014:
1011:
1008:
1005:
1002:
999:
996:
993:
989:
986:
983:
980:
977:
974:
971:
968:
965:
962:
959:
956:
953:
950:
947:
944:
941:
937:
933:
930:
926:
923:
920:
917:
914:
910:
907:
904:
901:
898:
895:
892:
888:
885:
882:
879:
876:
873:
870:
867:
864:
860:
856:
853:
850:
847:
843:
841:'table'
840:
837:
834:
831:
828:
825:
822:
819:
816:
812:
809:
807:NavigationBoxes
806:
803:
800:
796:
793:
790:
787:
784:
781:
777:
774:
771:
768:
765:
761:
757:
754:
750:
747:
743:
741:collapseCaption
740:
737:
734:
731:
728:
725:
722:
719:
715:
712:
708:
705:
702:
699:
696:
693:
690:
687:
684:
681:
678:
675:
672:
668:
665:
662:
659:
656:
653:
650:
647:
644:
641:
638:
635:
632:
629:
626:
623:
620:
616:
613:
610:
607:
603:
600:
597:
594:
591:
588:
585:
582:
579:
575:
572:
568:
565:
562:
559:
556:
553:
550:
547:
544:
540:
537:
534:
531:
528:
525:
522:
519:
516:
513:
510:
507:
504:
501:
498:
495:
492:
488:
485:
483:collapseCaption
482:
479:
476:
473:
470:
467:
464:
461:
458:
455:
451:
447:
444:
441:
438:
434:
431:
428:
425:
422:
419:
416:
413:
409:
405:
402:
398:
395:
392:
389:
385:
382:
379:
376:
373:
370:
367:
364:
361:
358:
354:
350:
347:
344:
341:
338:
335:
332:
329:
326:
323:
320:
317:
313:
310:
307:
304:
301:
298:
295:
292:
289:
286:
283:
280:
276:
273:
270:
267:
264:
261:
258:
255:
252:
249:
245:
241:
238:
235:
232:
229:
226:
222:
219:
216:
214:collapseCaption
213:
210:
207:
203:
199:
196:
193:
190:
187:
184:
181:
178:
175:
172:
169:
166:
162:
159:
156:
153:
150:
147:
144:
141:
138:
135:
132:
129:
125:
122:
119:// Taken from ]
118:
115:
111:
110:
99:
76:
50:
40:
22:
21:
20:
12:
11:
5:
1981:
1979:
1766:createTextNode
1707:createTextNode
1586:'href'
1423:createTextNode
1367:'span'
924:preventDefault
566:'none'
336:getElementById
299:getElementById
239:'show'
220:'hide'
114:
90:Microsoft Edge
73:
72:
61:
51:
47:
46:
25:
23:
15:
14:
13:
10:
9:
6:
4:
3:
2:
1980:
1965:
1958:
1954:
1938:
1934:
1927:
1920:
1906:collapseTable
1898:
1852:
1848:
1841:
1834:
1821:
1787:
1783:
1746:
1724:
1687:
1683:
1661:
1600:
1572:
1538:
1498:
1494:
1466:
1441:
1437:
1406:
1392:createElement
1375:
1361:createElement
1344:
1340:
1306:
1290:
1286:
1261:
1254:
1229:
1186:
1155:
1130:
1099:
1077:
1046:
1039:
1035:
995:
943:
939:
932:
916:
902:collapseTable
894:
866:
862:
849:
818:
802:
783:
767:
763:
756:
749:
721:
714:
674:
622:
609:
601:expandCaption
581:
574:
546:
494:
457:
453:
440:
415:
411:
404:
391:
360:
356:
319:
282:
259:collapseTable
251:
247:
233:expandCaption
228:
209:
205:
168:
131:
124:
117:
107:
103:
95:
91:
87:
83:
82:Google Chrome
79:
70:
66:
62:
59:
55:
54:
44:
38:
34:
29:
28:
19:
18:User:Frietjes
1795:insertBefore
1580:setAttribute
1552:'id'
1546:setAttribute
1474:setAttribute
1320:'id'
1314:setAttribute
1221:'td'
1178:'th'
1122:'tr'
101:
93:
89:
85:
81:
77:
42:
1772:']'
1754:appendChild
1732:appendChild
1713:'['
1695:appendChild
1669:appendChild
1592:'#'
1398:'a'
65:user script
1878:tableIndex
1823:tableIndex
1813:firstChild
1738:ButtonLink
1675:ButtonText
1663:ButtonLink
1650:tableIndex
1644:ButtonLink
1608:ButtonLink
1574:ButtonLink
1564:tableIndex
1540:ButtonLink
1500:ButtonLink
1411:ButtonText
1380:ButtonLink
1332:tableIndex
788:tableIndex
729:firstChild
589:firstChild
471:firstChild
348:tableIndex
311:tableIndex
271:tableIndex
41:This code
1449:className
1209:HeaderRow
1166:HeaderRow
1141:HeaderRow
1104:HeaderRow
1760:document
1701:document
1417:document
1386:document
1355:document
1278:continue
1246:continue
1147:continue
1015:hasClass
868:function
829:document
769:function
330:document
293:document
265:function
194:function
151:function
139:document
706:display
688:display
560:display
98:⇧ Shift
86:Firefox
33:A guide
1900:window
1807:Header
1801:Button
1789:Header
1748:Button
1726:Button
1689:Button
1518:Header
1468:Button
1443:Button
1349:Button
1308:Tables
1298:Tables
1272:Header
1240:Header
1203:Header
1197:Header
1160:Header
1110:Tables
1088:Header
1057:Tables
1051:Header
1009:Tables
975:length
969:Tables
896:window
823:Tables
723:Button
654:length
583:Button
526:length
465:Button
393:return
380:Button
287:Button
253:window
176:loader
133:jQuery
102:Reload
94:Safari
1632:proxy
1530:color
1524:style
1512:color
1506:style
908:index
877:index
700:style
682:style
554:style
426:Table
396:false
371:Table
324:Table
182:using
145:ready
78:Note:
63:This
16:<
1875:<
966:<
735:data
694:Rows
676:Rows
648:Rows
645:<
614:else
595:data
548:Rows
520:Rows
517:<
477:data
432:rows
420:Rows
188:done
92:and
43:will
1967:});
1960:});
1854:for
1408:var
1377:var
1346:var
1157:var
1101:var
1048:var
945:for
927:();
851:var
820:var
813:{};
804:var
785:var
624:for
496:for
480:===
442:var
417:var
321:var
284:var
230:var
211:var
185:().
1949:);
1940:$
1915:);
1887:++
1826:++
1816:);
1778:);
1741:);
1719:);
1678:);
1656:);
1626:$
1614:on
1611:).
1602:$
1595:);
1567:);
1489:);
1432:);
1401:);
1370:);
1335:);
1263:if
1231:if
1224:);
1188:if
1181:);
1132:if
1125:);
1079:if
1072:);
1012:).
1003:$
997:if
984:++
911:);
844:);
775:()
758:};
663:++
535:++
459:if
374:||
362:if
351:);
314:);
197:()
170:mw
157:$
142:).
88:,
84:,
1943:(
1929:}
1922:}
1912:i
1909:(
1903:.
1893:{
1890:)
1884:i
1881:;
1872:i
1869:;
1866:0
1863:=
1860:i
1857:(
1843:}
1836:}
1829:;
1810:.
1804:,
1798:(
1792:.
1775:)
1769:(
1763:.
1757:(
1751:.
1735:(
1729:.
1716:)
1710:(
1704:.
1698:(
1692:.
1672:(
1666:.
1653:)
1647:,
1641:,
1635:(
1629:.
1623:,
1617:(
1605:(
1589:,
1583:(
1577:.
1561:+
1555:,
1549:(
1543:.
1533:;
1527:.
1521:.
1515:=
1509:.
1503:.
1483:,
1477:(
1471:.
1458:;
1452:=
1446:.
1426:(
1420:.
1414:=
1395:(
1389:.
1383:=
1364:(
1358:.
1352:=
1329:+
1323:,
1317:(
1311:.
1301:;
1295:=
1281:;
1275:)
1269:!
1266:(
1256:}
1249:;
1243:)
1237:!
1234:(
1218:(
1212:.
1206:=
1200:)
1194:!
1191:(
1175:(
1169:.
1163:=
1150:;
1144:)
1138:!
1135:(
1119:(
1113:.
1107:=
1094:{
1091:)
1085:!
1082:(
1066:(
1060:.
1054:=
1030:{
1027:)
1024:)
1018:(
1006:(
1000:(
990:{
987:)
981:i
978:;
972:.
963:i
960:;
957:0
954:=
951:i
948:(
934:}
921:.
918:e
905:(
899:.
889:{
886:)
883:e
880:,
874:(
857:;
854:i
838:(
832:.
826:=
810:=
797:;
794:0
791:=
778:{
751:}
744:;
738:=
732:.
726:.
716:}
709:;
703:.
697:.
691:=
685:.
679:.
669:{
666:)
660:i
657:;
651:.
642:i
639:;
636:1
633:=
630:i
627:(
617:{
611:}
604:;
598:=
592:.
586:.
576:}
569:;
563:=
557:.
551:.
541:{
538:)
532:i
529:;
523:.
514:i
511:;
508:1
505:=
502:i
499:(
489:{
486:)
474:.
468:.
462:(
448:;
445:i
435:;
429:.
423:=
406:}
399:;
386:{
383:)
377:!
368:!
365:(
345:+
339:(
333:.
327:=
308:+
302:(
296:.
290:=
277:{
274:)
268:(
262:=
256:.
242:;
236:=
223:;
217:=
200:{
191:(
179:.
173:.
163:{
160:)
154:(
148:(
136:(
108:.
71:.
39:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.