Knowledge

Template talk:Box-header

Source 📝

157: 521: 341: 126: 273: 213: 188: 199: 920: 654: 1085:
tags around the {{{title}}} parameter. These create a 'level 2 header', such as is automatically created by '==' in wikimarkup. The reason for including such is that these headers are used by screen-reader software for the blind to navigate around to different sections. Without them blind users
1240:
This needs to be better documented, and even after all of the above it's a usability problem, even if accessibility issues have been fixed. People use this on wikiproject pages, not just portals, and it is clobbering the ability to edit any section on the project pages. —
1339:
is also used on talk pages of portals in discussions of portal layouts. Affecting the layout of these pages is undesirable. But even without these usages on pages, that are not main portal pages, I claim that production of NOTOC and NOEDITSECTION is illogical for
1280:
so that they may be reviewed (which you didn't do in December, when these changes surprised me). I think it's likely other editors will be surprised too as this is longstanding behavior in a widely-used template, which you are proposing to change. –
1101:
automatic edit links on existing portals? Could we just remove the manually inserted edit link in this template and use the automatic one instead (which would have the benefit of not showing them for users who have requested that option)? Et cetera.
1089:
The problem is that Knowledge also uses these headers to determine where to place automatic 'edit' links for users who have that option selected in their preferences. I assumed that most portals use __NOEDITSECTION__, the way I do at
949:
I suggest that the magic words NOTOC and NOEDITSECTION are removed from output of this module to allow usage of the template on the pages, where table of contents and edit links are needed. For example: subpages of portals, like
1105:
I have already addressed this issue by adjusting things on the portals I maintain, but I think it would be a good feature to incorporate on all of them if there is some way to work out this 'edit link' issue.
1145:
Heh, you're brave. I understand the concern, but hopefully this or some other option will address it. If it does, I think this will really make a big difference in portal usability for these users. Thanks.
109: 1357:. The template is also fairly widely used for formatting of WikiProject pages – if the suggested change is applied, I'll check the formatting of WikiProject pages to make sure that WikiProjects that use 761:
Nah, nothing to do with those edits, which were only to the numbered subpages of Template:Box-header (which in turn call Template:Box-header with specific style values). Portal:Earth sciences uses
1304:
is a decorative template for wrapping some content. It is usually used on portals to wrap a section of the page, like selected article, selected picture, etc. My argument is: because it is
379:
for another box-header that cannot be created from this template for the same reasons. I tried to accomplish this using this template, but from my testing, it is not at the moment possible.
1230:
Sorry I didn't notice those issues (it figures the three portals I looked at would have 'NOTOC', 'NOEDITSECTION', and black fonts) and thanks for all your efforts in cleaning them up. --
883: 887: 1389:
on that project page I saw a TOC where it was suppressed previously, and the "section 1" in the TOC has no heading – what is "section 1" and why is it there? OK I added
117: 1080:
I recently made a change which AzaToth then reverted. I'd like to discuss options for how it might be possible to incorporate this as I think it is important.
1276:
I don't know whether these concerns from 2006 are still valid, and if they are, whether there is a better work-around. Please make your proposed changes in
683:, a couple of things aren't working. The edit link at the top of the box reads , and in the first news item there is the string {{convert|adj=on|2|-|5|m}}. 711: 50: 85: 878:)? It would take the same parameters and produce the same output, but would have the advantage of checking colour combinations for accessibility, per 263: 951: 583:
this ensures the semi-colon is always included. At the moment it not being included will cause errors when a custom padding-top is provided.
1097:
If we add __NOEDITSECTION__ to this template would that suppress them for just this or all pages the template appears on? Do people actually
91: 1469: 299:
You may have been redirected to this page from another template page. This is normal. All related template talk pages should redirect here.
257: 1474: 707:
One of the problems is fixed (the In the News section did not have an edit link). The other problem is best asked at the talk page for
1393:
to that page, which is apparently redundant now but is needed if your sandbox goes live. Section editing isn't disabled on that page.
986: 309: 229: 113: 1354: 1255: 1086:
essentially have to listen to the entire portal page rather than just the particular section they are interested in at the moment.
413:
isn't specified. (Though the documentation here could do with some improvement, I had to look at the source code to find that out)
1163:
I had to revert, until we work out how to use h2 headings without overriding title (text) colors and making the text black. With
477:{{Box-header | title=Foo | noedit=yes | titleborder=#0000ff | border=#0000ff; border-top: 1px solid #ff0000 }} Bar {{Box-footer}} 462:{{Box-header | title=Foo | noedit=yes | titleborder=#ff0000 | border=#0000ff; border-top: 1px solid #ff0000 }} Bar {{Box-footer}} 1386: 1213: 1181: 969: 1036:, I suggest that these parameters are not needed at all and this functionality should be removed from the template. Presence of 372: 31: 233: 220: 193: 80: 741: 168: 900:
would be using the same code, reducing redundancy and allowing any future improvements to be made to both templates. -
1418: 1382: 1167:, for example, where the title background is also black, the titles are unreadable. I have copied this box-header to 762: 376: 71: 777:
in Portal:Earth sciences/box-header became the literal text {{{2}}} which was then passed into Template:Box-header's
894: 125: 104: 1277: 136: 821:
template, or rather its module, which now properly expands any templates found in the items it transcludes -
1091: 875: 850: 689: 527: 347: 281: 225: 1316: 1209: 1177: 1168: 997: 976: 955: 1249: 642: 499: 384: 174: 304:
Note: This page contains NOEDITSECTION and NOTOC, and is therefore in general not suitable for use in
228:
on Knowledge. If you would like to participate, please visit the project page, where you can join the
1204: 1172: 1203:
I have reinserted the h2 headings, with text color fix, along with __NOTOC__, to resolve problems. -
1425: 1361: 1344: 1333: 1298: 1124: 1040: 1016: 962: 752: 447:{{Box-header | title=Foo | noedit=yes | titleborder=#ff0000 | border=#0000ff }} Bar {{Box-footer}} 61: 35: 1440: 1372: 1051: 1046:, which produces a part of a page layout, should not affect the layout of the page as a whole. —⁠ 1005: 846: 810: 702: 685: 141: 76: 1398: 1286: 1134: 1024: 871: 57: 1244: 1231: 1147: 1107: 735: 718: 664: 638: 495: 396: 380: 316: 138: 745: 17: 1463: 1436: 1368: 1164: 1047: 1001: 1415:
the "section 1" in the TOC has no heading – what is "section 1" and why is it there?
1409: 1394: 1282: 1129: 1119: 1033: 1020: 993: 727: 429:
Here are some examples of the effects that can be achieved with these parameters -
371:
Description: This is seen (by use of editing a copy of this template) on this page
790:
to be passed on to Template:Box-header for portal components not using subpages -
765:, which calls Box-header directly, not a numbered subpage. The problem came from 930: 903: 839: 824: 793: 731: 660: 432: 416: 1094:, to suppress the automatic 'edit' links, but apparently that is not the case. 140: 1444: 1402: 1376: 1290: 1260: 1234: 1218: 1186: 1150: 1140: 1110: 1055: 1028: 1009: 938: 911: 879: 855: 832: 801: 756: 721: 694: 668: 646: 503: 440: 424: 388: 368:
Change: Add the ability to customise colours for each border around the box.
717:, as this is the template that included the news onto the portal. Thanks 1116:
We could try to add it, and see if people complain. I'll do it and see.
272: 1435:, and images are stripped away when generating a table of contents. —⁠ 312:
for an explanation on how to circumnavigate this and other problems.)
375:
and uses a different coloured border for under the title. Also see
212: 187: 1019:
and the guidance just above the TOC at the top of this page. –
515: 335: 150: 142: 26: 271: 315:
For an explanation on how to use this template, please see
262:
This template does not require a rating on the project's
1367:
have the appropriate formatting of table of contents. —⁠
1312:
formatting. All portals already transclude the template
1381:
I'm not really a portal user; I noticed this change at
1073:
Template talk:Box-header/Archive 1 §Accessibility Issue
1060:
Digging into the edit history, I found this discussion:
784: 782: 771:(which expands to {{Portal:Earth sciences/box-header}}) 766: 680: 590: 884:
Category:Box-header with insufficient title contrast
888:
Category:Box-header with insufficient body contrast
328:to the talk pages of both newly created templates. 602:{{Box-header | padding-top=1em }} {{Box-footer}} 198: 968:are in portals, and to that end the magic words 882:, and reporting uses of inaccessible colours in 982:, which is transcluded to all portal pages via 512:Template-protected edit request on 5 June 2018 332:Template-protected edit request on 4 June 2018 726:The broken edit link is something to do with 409:for other borders' colour, or all borders if 8: 1171:, where I'm working on resolving this bug. - 945:Remove production of NOTOC and NOEDITSECTION 890:. It would also mean that this template and 675:Template and edit link not working properly 1068: 182: 958:. The overwhelming majority of usages of 681:this version of the Earth sciences portal 401:This should already be possible by using 167:does not require a rating on Knowledge's 870:Should this template be switched to use 310:Template talk:Box-header/Archive 1#Fixes 1071: 1017:Template:Box-header § Behaviour options 373:Portal:Canada/Wikiprojects/box-header/2 184: 1432: 1414: 952:Portal:United Kingdom/Featured picture 818:{{Transclude selected current events}} 787: 778: 410: 406: 402: 156: 154: 7: 1353:The proposed change in the sandbox: 773:without a second parameter – so the 224:, a collaborative effort to improve 173:It is of interest to the following 34:for discussing improvements to the 712:Transclude selected current events 218:This page is within the scope of 25: 1355:Special:Diff/997693614/1046377628 405:for the title border colour, and 918: 844:Thanks for fixing the problems! 763:Portal:Earth sciences/box-header 652: 519: 377:Portal:Daddy Yankee/box-header/2 339: 211: 197: 186: 155: 124: 51:Click here to start a new topic. 1445:14:19, 27 September 2021 (UTC) 1403:15:25, 25 September 2021 (UTC) 1377:10:59, 25 September 2021 (UTC) 1083:Basically, I added <h2: --> 769:which added a {{/box header}} 1: 1291:16:37, 27 February 2021 (UTC) 1261:06:25, 17 February 2013 (UTC) 1056:15:47, 27 February 2021 (UTC) 1029:14:28, 27 February 2021 (UTC) 1010:12:57, 27 February 2021 (UTC) 242:Knowledge:WikiProject Portals 48:Put new text under old text. 874:(i.e. the code currently at 866:Switch to Module:Box-header? 494:Thanks for the explanation. 245:Template:WikiProject Portals 1470:Template-Class Portal pages 1419:Knowledge:WikiProject Merge 1383:Knowledge:WikiProject Merge 1308:, it should not affect the 939:04:34, 17 August 2018 (UTC) 912:07:19, 13 August 2018 (UTC) 542:to reactivate your request. 530:has been answered. Set the 362:to reactivate your request. 350:has been answered. Set the 56:New to Knowledge? Welcome! 1491: 1475:NA-importance Portal pages 1417:– this is because on page 1324:__NOTOC____NOEDITSECTION__ 1235:21:05, 20 March 2006 (UTC) 1219:19:48, 20 March 2006 (UTC) 1187:19:41, 20 March 2006 (UTC) 1151:19:16, 20 March 2006 (UTC) 1141:19:04, 20 March 2006 (UTC) 1111:19:00, 20 March 2006 (UTC) 1278:Module:Box-header/sandbox 987:Portal maintenance status 781:parameter. These 2 edits 279: 261: 206: 181: 86:Be welcoming to newcomers 856:04:19, 7 June 2018 (UTC) 833:02:40, 7 June 2018 (UTC) 802:00:12, 7 June 2018 (UTC) 757:21:12, 6 June 2018 (UTC) 722:20:44, 6 June 2018 (UTC) 695:15:18, 6 June 2018 (UTC) 669:07:04, 6 June 2018 (UTC) 647:21:15, 5 June 2018 (UTC) 608: 606:produces in the source: 600: 567: 565:needs to be changed to: 550: 504:07:23, 5 June 2018 (UTC) 475: 460: 445: 441:01:32, 5 June 2018 (UTC) 425:01:14, 5 June 2018 (UTC) 389:15:04, 4 June 2018 (UTC) 1092:Portal:Featured content 998:objected to this change 876:Template:Box-header/lua 276: 81:avoid personal attacks 18:Module talk:Box-header 1421:, the first usage of 956:talk pages of portals 786:fixed it by allowing 620:1em-moz-border-radius 275: 118:Auto-archiving period 1387:your sandbox version 1169:Portal:Box-header-h2 221:WikiProject Portals 1306:a part of the page 277: 234:list of open tasks 169:content assessment 92:dispute resolution 53: 1268: 1267: 1258: 1216: 1184: 895:Box-header colour 872:Module:Box-header 557:padding-top|.3em; 546: 545: 366: 365: 295: 294: 291: 290: 287: 286: 149: 148: 72:Assume good faith 49: 16:(Redirected from 1482: 1434: 1430: 1424: 1413: 1366: 1360: 1349: 1343: 1338: 1332: 1325: 1321: 1315: 1303: 1297: 1259: 1254: 1253: 1208: 1176: 1137: 1132: 1127: 1122: 1069: 1045: 1039: 991: 985: 981: 975: 967: 961: 926: 922: 921: 899: 893: 854: 843: 820: 819: 814: 789: 780: 776: 772: 748: 716: 710: 706: 693: 656: 655: 633: 630: 627: 624: 621: 618: 615: 612: 598: 593: 578: 575: 574:padding-top|.3em 572: 561: 558: 555: 537: 533: 523: 522: 516: 483: 468: 453: 412: 408: 404: 400: 357: 353: 343: 342: 336: 317:Knowledge:Portal 250: 249: 248:Portals articles 246: 243: 240: 215: 208: 207: 202: 201: 200: 190: 183: 160: 159: 158: 151: 143: 129: 128: 119: 27: 21: 1490: 1489: 1485: 1484: 1483: 1481: 1480: 1479: 1460: 1459: 1428: 1422: 1407: 1364: 1358: 1347: 1341: 1336: 1330: 1323: 1319: 1313: 1301: 1295: 1269: 1248: 1242: 1139: 1135: 1130: 1125: 1120: 1074: 1043: 1037: 989: 983: 979: 973: 965: 959: 947: 919: 917: 897: 891: 868: 845: 837: 817: 816: 808: 774: 770: 746: 714: 708: 700: 684: 677: 653: 635: 634: 631: 628: 625: 622: 619: 616: 613: 610: 604: 603: 599: 596: 595: 591: 581: 580: 576: 573: 570: 563: 562: 559: 556: 553: 535: 531: 520: 514: 489: 484: 481: 479: 478: 474: 469: 466: 464: 463: 459: 454: 451: 449: 448: 394: 355: 351: 340: 334: 326: 282:List of Portals 247: 244: 241: 238: 237: 196: 145: 144: 139: 116: 98: 97: 67: 23: 22: 15: 12: 11: 5: 1488: 1486: 1478: 1477: 1472: 1462: 1461: 1458: 1457: 1456: 1455: 1454: 1453: 1452: 1451: 1450: 1449: 1448: 1447: 1351: 1327: 1266: 1265: 1264: 1263: 1228: 1227: 1226: 1225: 1224: 1223: 1222: 1221: 1194: 1193: 1192: 1191: 1190: 1189: 1156: 1155: 1154: 1153: 1117: 1084:- </h2: --> 1076: 1075: 1072: 1067: 1066: 1065: 1064: 1063: 1062: 1061: 946: 943: 942: 941: 867: 864: 863: 862: 861: 860: 859: 858: 806: 805: 804: 676: 673: 672: 671: 609: 601: 589: 588: 568: 551: 544: 543: 524: 513: 510: 509: 508: 507: 506: 485: 480: 476: 470: 465: 461: 455: 450: 446: 444: 443: 427: 364: 363: 344: 333: 330: 324: 322:Please add a 302: 301: 293: 292: 289: 288: 285: 284: 278: 268: 267: 260: 254: 253: 251: 216: 204: 203: 191: 179: 178: 172: 161: 147: 146: 137: 135: 134: 131: 130: 100: 99: 96: 95: 88: 83: 74: 68: 66: 65: 54: 45: 44: 41: 40: 39: 24: 14: 13: 10: 9: 6: 4: 3: 2: 1487: 1476: 1473: 1471: 1468: 1467: 1465: 1446: 1442: 1438: 1427: 1420: 1416: 1411: 1406: 1405: 1404: 1400: 1396: 1392: 1388: 1384: 1380: 1379: 1378: 1374: 1370: 1363: 1356: 1352: 1346: 1335: 1328: 1322:, which adds 1318: 1317:Portal styles 1311: 1307: 1300: 1294: 1293: 1292: 1288: 1284: 1279: 1275: 1274: 1273: 1272: 1271: 1270: 1262: 1257: 1251: 1247: 1246: 1239: 1238: 1237: 1236: 1233: 1220: 1215: 1211: 1206: 1202: 1201: 1200: 1199: 1198: 1197: 1196: 1195: 1188: 1183: 1179: 1174: 1170: 1166: 1165:Portal:Africa 1162: 1161: 1160: 1159: 1158: 1157: 1152: 1149: 1144: 1143: 1142: 1138: 1133: 1128: 1123: 1115: 1114: 1113: 1112: 1109: 1103: 1100: 1095: 1093: 1087: 1081: 1078: 1077: 1070: 1059: 1058: 1057: 1053: 1049: 1042: 1035: 1032: 1031: 1030: 1026: 1022: 1018: 1014: 1013: 1012: 1011: 1007: 1003: 999: 995: 988: 978: 977:Portal styles 971: 964: 957: 953: 944: 940: 937: 936: 935: 932: 925: 916: 915: 914: 913: 910: 909: 908: 905: 896: 889: 885: 881: 877: 873: 865: 857: 852: 848: 847:RockMagnetist 841: 836: 835: 834: 831: 830: 829: 826: 812: 811:RockMagnetist 807: 803: 800: 799: 798: 795: 785: 783: 768: 764: 760: 759: 758: 754: 750: 743: 740: 737: 733: 729: 725: 724: 723: 720: 713: 704: 703:RockMagnetist 699: 698: 697: 696: 691: 687: 686:RockMagnetist 682: 674: 670: 666: 662: 659: 651: 650: 649: 648: 644: 640: 607: 594: 587: 586:See example: 584: 569:padding-top: 566: 552:padding-top: 549: 541: 538:parameter to 529: 525: 518: 517: 511: 505: 501: 497: 493: 492: 491: 490: 488: 473: 458: 442: 439: 438: 437: 434: 428: 426: 423: 422: 421: 418: 411:|titleborder= 403:|titleborder= 398: 393: 392: 391: 390: 386: 382: 378: 374: 369: 361: 358:parameter to 349: 345: 338: 337: 331: 329: 323: 320: 318: 313: 311: 307: 300: 297: 296: 283: 274: 270: 269: 265: 264:quality scale 259: 256: 255: 252: 235: 231: 227: 223: 222: 217: 214: 210: 209: 205: 195: 192: 189: 185: 180: 176: 170: 166: 162: 153: 152: 133: 132: 127: 123: 115: 111: 108: 106: 102: 101: 93: 89: 87: 84: 82: 78: 75: 73: 70: 69: 63: 59: 58:Learn to edit 55: 52: 47: 46: 43: 42: 37: 33: 29: 28: 19: 1390: 1309: 1305: 1243: 1229: 1104: 1098: 1096: 1088: 1082: 1079: 972:to template 948: 933: 929: 928: 923: 906: 902: 901: 869: 827: 823: 822: 796: 792: 791: 738: 678: 657: 636: 605: 585: 582: 564: 547: 539: 528:edit request 486: 471: 456: 435: 431: 430: 419: 415: 414: 370: 367: 359: 348:edit request 327: 325:#REDIRECT ] 321: 314: 305: 303: 298: 219: 175:WikiProjects 164: 121: 103: 30:This is the 1245:SMcCandlish 1232:CBDunkerson 1148:CBDunkerson 1108:CBDunkerson 788:|noedit=yes 728:these edits 719:Dreamy Jazz 639:Dreamy Jazz 614:padding-top 597:{{{title}}} 496:Dreamy Jazz 397:Dreamy Jazz 381:Dreamy Jazz 1464:Categories 1426:Box-header 1385:. Testing 1362:Box-header 1345:Box-header 1334:Box-header 1299:Box-header 1041:Box-header 970:were added 963:Box-header 880:MOS:COLOUR 815:Fixed the 779:|editpage= 548:The line: 532:|answered= 352:|answered= 280:See also: 232:and see a 230:discussion 36:Box-header 1329:Template 1310:page-wide 767:this edit 122:91.5 days 94:if needed 77:Be polite 38:template. 32:talk page 1437:andrybak 1433:|title=] 1369:andrybak 1326:to them. 1256:Contrib. 1214:contribs 1182:contribs 1048:andrybak 1002:andrybak 742:contribs 637:Thanks, 407:|border= 306:articles 258:Template 165:template 105:Archives 62:get help 1410:Wbm1058 1395:wbm1058 1283:wbm1058 1034:Wbm1058 1021:wbm1058 994:wbm1058 992:. Ping 775:{{{2}}} 308:. (See 239:Portals 226:portals 194:Portals 996:, who 954:, and 840:Evad37 749:rose64 732:Evad37 661:Cabayi 171:scale. 1391:NOTOC 1250:Talk⇒ 744:). -- 536:|ans= 526:This 356:|ans= 346:This 163:This 110:Index 90:Seek 1441:talk 1431:has 1399:talk 1373:talk 1287:talk 1252:ɖכþ 1210:talk 1205:Aude 1178:talk 1173:Aude 1136:Toth 1052:talk 1025:talk 1015:See 1006:talk 1000:. —⁠ 931:Evad 924:Done 904:Evad 886:and 851:talk 825:Evad 794:Evad 753:talk 751:🌹 ( 736:talk 690:talk 665:talk 658:Done 643:talk 592:edit 500:talk 487:Bar 472:Bar 457:Bar 433:Evad 417:Evad 385:talk 79:and 1099:use 747:Red 730:by 679:In 632:... 611:... 577:}}} 571:{{{ 560:}}} 554:{{{ 534:or 482:Foo 467:Foo 452:Foo 354:or 1466:: 1443:) 1429:}} 1423:{{ 1401:) 1375:) 1365:}} 1359:{{ 1348:}} 1342:{{ 1337:}} 1331:{{ 1320:}} 1314:{{ 1302:}} 1296:{{ 1289:) 1217:) 1212:| 1185:) 1180:| 1146:-- 1106:-- 1054:) 1044:}} 1038:{{ 1027:) 1008:) 990:}} 984:{{ 980:}} 974:{{ 966:}} 960:{{ 934:37 927:- 907:37 898:}} 892:{{ 828:37 797:37 755:) 715:}} 709:{{ 667:) 645:) 579:; 540:no 502:) 436:37 420:37 387:) 360:no 319:. 120:: 112:, 60:; 1439:( 1412:: 1408:@ 1397:( 1371:( 1350:. 1285:( 1207:( 1175:( 1131:a 1126:z 1121:A 1118:→ 1050:( 1023:( 1004:( 853:) 849:( 842:: 838:@ 813:: 809:@ 739:· 734:( 705:: 701:@ 692:) 688:( 663:( 641:( 629:; 626:0 623:: 617:: 498:( 399:: 395:@ 383:( 266:. 236:. 177:: 114:1 107:: 64:. 20:)

Index

Module talk:Box-header
talk page
Box-header
Click here to start a new topic.
Learn to edit
get help
Assume good faith
Be polite
avoid personal attacks
Be welcoming to newcomers
dispute resolution
Archives
Index
1

content assessment
WikiProjects
WikiProject icon
Portals
WikiProject icon
WikiProject Portals
portals
discussion
list of open tasks
Template
quality scale
Note icon
List of Portals
Template talk:Box-header/Archive 1#Fixes
Knowledge:Portal

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