29:
60:
868:
392:
page this template creates a clickable link that toggles between and . It displays the first parameter (the heading) with a link on the right. If is clicked by the user, it displays the second parameter (the body) below the heading and the link becomes . Clicking on then hides the body and the
881:"{{hidden|multiline=y|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.|def}}" gives "
913:"{{hidden|multiline=y|abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc |def}}" gives "
856:|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.|def}}
917:
abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc
885:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
861:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
899:
abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc
424:{{Hidden | expanded=true <!--(omit for initial hidden state)--> | style = | headerstyle = | header = | contentstyle = | content = |titlebgcolor= |contentbgcolor= |ta1= |ta2= |fw1= |fw2= |class= |border= }}
1565:
1517:
363:
1460:
1576:
1478:
1500:
1561:
248:
1549:
296:
285:
44:
1437:
259:
396:
If this template is nested in another, the show/hide links in the hidden content keep their state; there is no parameter for
1609:
1588:
1545:
40:
407:
Generally, collapsible templates should not be used in articles. For allowable uses and other considerations, please see
356:
67:
1531:
965:
932:
Sections included inside a hidden block result in broken anchors in the table of contents at the top of the page.
349:
333:
389:
272:
48:
499:) will reduce the line-height of the title and add some padding to avoid overlap with the show/hide button.
957:
1604:
322:
513:
1571:
1511:
1440: (1,682) – tracks usage of parameters titlebgcolor, contentbgcolor, bg1, bg2, ta1, ta2, fw1, fw2
155:
78:
85:. The tested changes can be added to this page in a single edit. Consider discussing changes on the
1520:
180:
1556:
74:
1463:
961:
953:
458:
82:
1481:
1454:
208:
169:
381:
86:
73:
To avoid major disruption and server load, any changes should be tested in the template's
8:
1584:
1539:
1472:
385:
219:
131:
36:
1494:
1535:
235:
144:
377:
309:
110:
586:
Body text line 2 |headerstyle=background:#ccccff |style=text-align:center; }}
1598:
849:
With ta1=right or a long header, the header may overlap the show/hide button:
408:
120:
23:
1503:
982:
Creates a dynamic navigation box which is initially collapsed by default.
445:
text for body (content); alternative to using unnamed parameter {{{2}}}
439:
text for header (title); alternative to using unnamed parameter {{{1}}}
539:{{hidden|Title text here|Body text line 1<br/>Body text line 2}}
68:
approximately 324,000 pages, or roughly 1% of all pages
940:
529:
In this example only the two required parameters are specified.
1132:
Add additional class attributes affecting the entire template.
505:
add additional class attributes affecting the entire template.
489:) will cause the template to be initially expanded by default.
432:
Only two parameters are required for this template:
1596:
941:You can't get here from the table of contents
357:
972:in articles based on its TemplateData.
844:
576:{{hidden |Title text here |Body text line 1
1555:Editors can experiment in this template's
364:
350:
26:
1597:
1438:Category:Hidden templates using styles
1431:
966:See a monthly parameter usage report
563:
54:
1057:Text for the content of the hidden.
512:This template will not respect the
479:CSS styling for the hidden content.
13:
380:using style sheet declarations in
14:
1621:
1423:
1397:
1374:
1351:
1325:
1296:
1273:
1247:
1221:
1192:
1169:
1140:
1117:
1091:
1065:
1033:
58:
27:
947:
473:CSS styling for title (header).
249:collapsed infobox section begin
909:Above example with workaround:
873:Possible workaround is to use
419:
297:navbox with collapsible groups
286:sidebar with collapsible lists
1:
461:styling for template overall.
427:
260:collapsed infobox section end
7:
1610:Knowledge utility templates
1444:
927:
519:
467:border around the template.
449:
10:
1626:
1529:
1184:Border around the template
1025:Text for the header/title.
956:for this template used by
1589:Subpages of this template
1512:Template:Collapsible list
993:
839:
495:any nonblank value (e.g.
485:any nonblank value (e.g.
89:before implementing them.
81:subpages, or in your own
66:This template is used on
1331:Content background color
895:Example with long header
845:Show/hide button overlap
622:
574:
524:
414:
376:This template creates a
975:TemplateData for Hidden
384:and Javascript code in
1583:Add categories to the
1449:Supporting templates:
1198:Title background color
611:
516:"justify paragraphs".
393:link becomes again.
378:dynamic navigation box
32:Template documentation
1455:Template:Hidden begin
875:|multiline=y
487:|expanded=on
334:hidden archive bottom
98:Collapsible templates
497:|multline=y
382:MediaWiki:Common.css
273:Navigation templates
1540:Template:Hidden/doc
1490:Similar templates:
1473:Template:Hidden end
1429:
990:
988:Template parameters
386:MediaWiki:Common.js
1605:Collapse templates
986:
984:
979:
323:hidden archive top
1495:m:Template:Hidden
1432:Tracking category
1428:
1427:
1279:Title font weight
1006:
980:
964:and other tools.
837:
836:
609:
608:
564:Header background
561:
560:
374:
373:
132:Article namespace
126:
125:
93:
92:
1617:
1580:
1569:
1553:
1525:
1524:
1507:
1486:
1485:
1468:
1467:
1411:
1408:
1385:
1362:
1339:
1336:
1313:
1310:
1307:
1284:
1261:
1258:
1235:
1232:
1209:
1206:
1203:
1180:
1157:
1154:
1151:
1128:
1105:
1102:
1079:
1076:
1053:
1050:
1047:
1044:
1021:
1018:
1015:
1007:
991:
985:
876:
857:
831:Body text line 3
829:Body text line 2
827:Body text line 1
812:
809:
806:
803:
800:
797:
794:
791:
788:
785:
782:
779:
776:
773:
770:
767:
764:
761:
758:
755:
752:
749:
746:
743:
740:
737:
734:
731:
728:
725:
722:
719:
716:
713:
710:
707:
704:
701:
698:
695:
692:
689:
686:
683:
680:
677:
674:
671:
668:
665:
662:
659:
656:
653:
650:
647:
644:
641:
638:
635:
632:
629:
626:
616:
615:
603:Body text line 2
601:Body text line 1
585:
582:
579:
568:
567:
555:Body text line 2
553:Body text line 1
532:
531:
498:
488:
366:
359:
352:
338:
332:
327:
321:
301:
295:
290:
284:
264:
258:
253:
247:
224:
218:
213:
207:
199:
193:
185:
179:
174:
168:
160:
156:collapsible list
154:
149:
143:
104:
103:
95:
94:
62:
61:
55:
52:
33:
31:
30:
1625:
1624:
1620:
1619:
1618:
1616:
1615:
1614:
1595:
1594:
1593:
1592:
1582:
1574:
1559:
1554:
1543:
1528:
1515:
1510:
1498:
1476:
1471:
1458:
1453:
1447:
1434:
1409:
1406:
1383:
1360:
1337:
1334:
1311:
1308:
1305:
1282:
1259:
1256:
1233:
1230:
1207:
1204:
1201:
1178:
1155:
1152:
1149:
1126:
1103:
1100:
1077:
1074:
1051:
1048:
1045:
1042:
1019:
1016:
1013:
978:
970:Template:Hidden
950:
945:
944:
943:
937:
930:
924:
923:
920:
919:
910:
905:
904:
901:
896:
892:
891:
888:
887:
878:
874:
867:
866:
863:
854:Template:Hidden
851:
850:
847:
842:
833:
832:
830:
828:
825:
824:Title text here
814:
813:
810:
807:
804:
801:
798:
795:
792:
789:
786:
783:
780:
777:
774:
771:
768:
765:
762:
759:
756:
753:
750:
747:
744:
741:
738:
735:
732:
729:
726:
723:
720:
717:
714:
711:
708:
705:
702:
699:
696:
693:
690:
687:
684:
681:
678:
675:
672:
669:
666:
663:
660:
657:
654:
651:
648:
645:
642:
639:
636:
633:
630:
627:
624:
614:
605:
604:
602:
599:
598:Title text here
588:
587:
583:
580:
577:
566:
557:
556:
554:
551:
550:Title text here
540:
527:
522:
514:user preference
496:
486:
452:
430:
425:
422:
417:
370:
341:
336:
330:
325:
319:
304:
299:
293:
288:
282:
267:
262:
256:
251:
245:
230:
227:
222:
216:
211:
205:
197:
191:
188:
183:
181:collapse bottom
177:
172:
166:
158:
152:
147:
141:
72:
59:
53:
34:
28:
22:
21:
18:
12:
11:
5:
1623:
1613:
1612:
1607:
1527:
1526:
1508:
1488:
1487:
1469:
1446:
1443:
1442:
1441:
1433:
1430:
1426:
1425:
1422:
1419:
1418:
1412:
1404:
1400:
1399:
1396:
1393:
1392:
1389:no description
1386:
1381:
1377:
1376:
1373:
1370:
1369:
1366:no description
1363:
1358:
1354:
1353:
1350:
1347:
1346:
1343:no description
1340:
1335:contentbgcolor
1332:
1328:
1327:
1324:
1321:
1320:
1317:no description
1314:
1303:
1299:
1298:
1295:
1292:
1291:
1288:no description
1285:
1280:
1276:
1275:
1272:
1269:
1268:
1265:no description
1262:
1254:
1250:
1249:
1246:
1243:
1242:
1239:no description
1236:
1228:
1224:
1223:
1220:
1217:
1216:
1213:no description
1210:
1199:
1195:
1194:
1191:
1188:
1187:
1181:
1176:
1172:
1171:
1168:
1165:
1164:
1161:no description
1158:
1147:
1143:
1142:
1139:
1136:
1135:
1129:
1124:
1120:
1119:
1116:
1113:
1112:
1109:no description
1106:
1098:
1094:
1093:
1090:
1087:
1086:
1083:no description
1080:
1072:
1068:
1067:
1064:
1061:
1060:
1054:
1040:
1036:
1035:
1032:
1029:
1028:
1022:
1011:
1005:
1004:
1001:
998:
995:
958:TemplateWizard
951:
949:
946:
942:
939:
938:
935:
934:
929:
926:
921:
916:
915:
914:
912:
911:
908:
902:
898:
897:
894:
889:
884:
883:
882:
880:
879:
872:
864:
860:
859:
848:
846:
843:
841:
838:
835:
834:
826:
823:
822:
820:
816:
815:
623:
620:
613:
610:
607:
606:
600:
597:
596:
594:
590:
589:
575:
572:
565:
562:
559:
558:
552:
549:
548:
546:
542:
541:
538:
536:
526:
523:
521:
518:
507:
506:
503:
500:
493:
490:
483:
480:
477:
474:
471:
468:
465:
462:
456:
451:
448:
447:
446:
443:
440:
437:
429:
426:
423:
421:
418:
416:
413:
388:. In a saved,
372:
371:
369:
368:
361:
354:
346:
343:
342:
340:
339:
328:
316:
313:
312:
310:Talk namespace
306:
305:
303:
302:
291:
279:
276:
275:
269:
268:
266:
265:
254:
242:
239:
238:
232:
231:
229:
228:
226:
225:
214:
202:
200:
189:
187:
186:
175:
163:
161:
150:
138:
135:
134:
128:
127:
124:
123:
121:Hidden content
118:
114:
113:
108:
100:
99:
91:
90:
63:
25:
24:
19:
16:
15:
9:
6:
4:
3:
2:
1622:
1611:
1608:
1606:
1603:
1602:
1600:
1590:
1586:
1578:
1573:
1567:
1563:
1558:
1551:
1547:
1541:
1537:
1533:
1532:documentation
1522:
1519:
1513:
1509:
1505:
1502:
1496:
1493:
1492:
1491:
1483:
1480:
1474:
1470:
1465:
1462:
1456:
1452:
1451:
1450:
1439:
1436:
1435:
1420:
1417:
1416:
1415:Content style
1413:
1405:
1402:
1401:
1394:
1391:
1390:
1387:
1382:
1379:
1378:
1371:
1368:
1367:
1364:
1359:
1356:
1355:
1348:
1345:
1344:
1341:
1333:
1330:
1329:
1322:
1319:
1318:
1315:
1304:
1301:
1300:
1293:
1290:
1289:
1286:
1281:
1278:
1277:
1270:
1267:
1266:
1263:
1255:
1252:
1251:
1244:
1241:
1240:
1237:
1229:
1226:
1225:
1218:
1215:
1214:
1211:
1200:
1197:
1196:
1189:
1186:
1185:
1182:
1177:
1174:
1173:
1166:
1163:
1162:
1159:
1148:
1145:
1144:
1137:
1134:
1133:
1130:
1125:
1122:
1121:
1114:
1111:
1110:
1107:
1099:
1096:
1095:
1088:
1085:
1084:
1081:
1073:
1070:
1069:
1062:
1059:
1058:
1055:
1041:
1038:
1037:
1030:
1027:
1026:
1023:
1012:
1009:
1008:
1002:
999:
996:
992:
989:
983:
977:
976:
971:
967:
963:
959:
955:
933:
907:
906:
871:
870:
869:
855:
821:
818:
817:
621:
618:
617:
595:
592:
591:
573:
570:
569:
547:
544:
543:
537:
534:
533:
530:
517:
515:
511:
504:
501:
494:
491:
484:
481:
478:
475:
472:
469:
466:
463:
460:
457:
454:
453:
444:
441:
438:
435:
434:
433:
412:
410:
405:
403:
399:
394:
391:
387:
383:
379:
367:
362:
360:
355:
353:
348:
347:
345:
344:
335:
329:
324:
318:
317:
315:
314:
311:
308:
307:
298:
292:
287:
281:
280:
278:
277:
274:
271:
270:
261:
255:
250:
244:
243:
241:
240:
237:
234:
233:
221:
215:
210:
204:
203:
201:
196:
190:
182:
176:
171:
165:
164:
162:
157:
151:
146:
140:
139:
137:
136:
133:
130:
129:
122:
119:
116:
115:
112:
109:
106:
105:
102:
101:
97:
96:
88:
84:
80:
76:
70:
69:
64:
57:
56:
50:
46:
42:
38:
1489:
1448:
1414:
1410:contentstyle
1388:
1365:
1342:
1316:
1302:Header style
1287:
1264:
1238:
1212:
1202:titlebgcolor
1183:
1160:
1131:
1108:
1082:
1056:
1024:
987:
981:
974:
973:
969:
962:VisualEditor
954:TemplateData
952:This is the
948:Templatedata
931:
853:
852:{{
715:contentstyle
528:
509:
508:
476:contentstyle
431:
409:MOS:COLLAPSE
406:
401:
398:collapse all
397:
395:
375:
337:}}
331:{{
326:}}
320:{{
300:}}
294:{{
289:}}
283:{{
263:}}
257:{{
252:}}
246:{{
223:}}
217:{{
212:}}
209:hidden begin
206:{{
198:}}
194:
192:{{
184:}}
178:{{
173:}}
170:collapse top
167:{{
159:}}
153:{{
148:}}
142:{{
83:user subpage
65:
1536:transcluded
1309:headerstyle
1227:Title align
997:Description
679:headerstyle
470:headerstyle
420:Full syntax
47:] [
43:] [
39:] [
1599:Categories
1530:The above
1407:contentcss
1403:contentcss
1312:titlestyle
1260:multi-line
1253:Multi-line
1231:titlealign
1208:background
1156:framestyle
886:consequat.
862:consequat.
721:text-align
685:background
428:Parameters
402:reveal all
220:hidden end
117:Guideline:
111:Collapsing
79:/testcases
1587:subpage.
1572:testcases
1518:backlinks
1501:backlinks
1479:backlinks
1461:backlinks
1306:headercss
1257:multiline
994:Parameter
796:/>Body
784:/>Body
697:font-size
492:multiline
236:Infoboxes
87:talk page
1445:See also
1424:optional
1398:optional
1375:optional
1352:optional
1326:optional
1297:optional
1274:optional
1248:optional
1222:optional
1193:optional
1170:optional
1141:optional
1118:optional
1101:expanded
1097:Expanded
1092:optional
1078:showhide
1066:optional
1046:contents
1034:optional
928:Sections
520:Examples
482:expanded
450:Optional
390:rendered
145:collapse
75:/sandbox
1564:|
1557:sandbox
1550:history
1548:|
1421:Unknown
1395:Unknown
1372:Unknown
1349:Unknown
1323:Unknown
1294:Unknown
1271:Unknown
1245:Unknown
1219:Unknown
1190:Unknown
1167:Unknown
1138:Unknown
1115:Unknown
1089:Unknown
1063:Unknown
1049:content
1039:Content
1031:Unknown
936:example
819:Result
793:2<br
781:1<br
766:content
691:#ccccff
628:{hidden
593:Result
545:Result
442:content
45:history
20:{{{2}}}
17:{{{1}}}
1581:pages.
1514:
1497:
1475:
1457:
1179:border
1175:Border
1104:expand
1075:toggle
1071:Toggle
1017:header
1010:Header
1003:Status
840:Issues
748:header
727:center
652:dashed
640:border
464:border
436:header
195:hidden
1538:from
1153:style
1127:class
1123:Class
1020:title
754:Title
739:green
733:color
661:width
634:style
619:Code
584:/>
571:Code
535:Code
525:Basic
510:Note:
502:class
455:style
415:Usage
107:Help:
51:]
49:purge
35:[
1585:/doc
1577:edit
1570:and
1566:diff
1562:edit
1546:edit
1521:edit
1504:edit
1482:edit
1464:edit
1052:text
1000:Type
968:for
802:line
799:text
790:line
787:text
778:line
775:text
772:Body
760:here
757:text
578:<
404:.
41:edit
37:view
1534:is
1384:fw2
1380:fw2
1361:ta2
1357:ta2
1338:bg2
1283:fw1
1234:ta1
1205:bg1
1150:css
1146:CSS
922:def
903:def
900:abc
890:def
865:def
703:110
655:red
612:CSS
459:CSS
400:or
77:or
1601::
1542:.
960:,
925:"
893:"
858:→
667:50
649:px
581:br
411:.
1591:.
1579:)
1575:(
1568:)
1560:(
1552:)
1544:(
1523:)
1516:(
1506:)
1499:(
1484:)
1477:(
1466:)
1459:(
1043:2
1014:1
877::
811:}
808:}
805:3
769:=
763:|
751:=
745:|
742:;
736::
730:;
724::
718:=
712:|
709:;
706:%
700::
694:;
688::
682:=
676:|
673:;
670:%
664::
658:;
646:1
643::
637:=
631:|
625:{
365:e
358:t
351:v
71:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.