Knowledge (XXG)

Template:Button/doc

Source šŸ“

582: 31: 73: 755:
To indicate text is a variable name. Use for any variable names except those including "I" (uppercase i) and/or "l" (lowercase L); for these, {{var serif}} should be used to ensure a noticeable
908:
To display parameter values lightly bordered; replaces <code>...</code>, especially when value contains embedded or leading/trailing blanks; visualized here with
618: 1307:
To showcase with colors and multiple lines (vertical format) the syntax of any template, while providing an easy way to display placeholder texts using colons as separators
123:
for users hovering over it, but that may not always be displayed, or only displayed after too long a delay, so that it may not show up to people trying to click it.)
1009:
To showcase with colors in horizontal format the syntax of any template, while providing an easy way to display placeholder texts using colons as separators
319: 838:
To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{para}} above
611: 585: 422: 38: 627: 604: 182: 417: 412: 1428: 242: 215: 206: 196: 179: 166: 153: 498: 1102: 520: 509: 223: 62: 52: 312: 542: 531: 487: 465: 343: 305: 130: 94: 1201: 1166: 476: 454: 432: 278:ā€“ produces a similar visual effect, but includes more symbols and does not directly support key combos (e.g. 119:, and care should be taken when using it to avoid readers thinking the result may be. (It has an explanatory 564: 443: 354: 90: 98: 1333: 41: 896: 379: 102: 1125: 736:
stress emphasis (not just purely typographical italicization like for book titles or foreign terms)
697: 553: 205: 1379: 1145: 763: 676: 390: 255: 101:. The tested changes can be added to this page in a single edit. Please discuss changes on the 928: 1402: 1093: 966: 797: 273: 1421: 1073: 1049: 653: 365: 236: 190: 173: 160: 147: 46: 17: 1348: 1314: 1119:}}, but prevents line breaks inside the code. Only for very short code parts. 826: 1440: 1183: 1115: 1043: 807: 1360: 1276: 1256: 1238: 1033: 1016: 954: 919: 883: 845: 782: 743: 733: 669:
importance, seriousness, or urgency instead of just simple typographical boldfacing
666: 289: 61:
This template is a non-clickable button. For the most common clickable button, see
294:ā€“ to indicate user input (of any kind) without making it look like keys or buttons 1295: 1232: 1224: 873: 718: 87:
Changes to it can cause immediate changes to the Knowledge (XXG) user interface.
1065:
To indicate text is source code. To nest other templates within {{code}}, use
82: 596: 280: 193:|text=button text|bgcolor=#EEF|bgcolor2=#BBE}} 1414:
Similar; includes more symbols, but does not directly support combinations
947:
To display a template call (with or without parameters and values) as code
89:
To avoid major disruption, any changes should be tested in the template's
1235:
source code in template documentation, articles on HTML specs, etc. The
869:
To display template parameters with colors (as they would appear in the
181: 120: 111:
This template provides a "clickable button" formatting style for text.
909: 297: 260:ā€“ used to illustrate keystrokes, including key combinations (e.g. 55:
and other content that is not part of the original template page.
600: 301: 67: 25: 1288:
For larger blocks of source code and other pre-formatted text
1395:
To indicate specific-keystroke input, including combinations
1138:<code><nowiki>...</nowiki></code> 163:|text=button text|format=bold}} 1345:
For indented blocks of material; visually identical to
1158:<kbd><nowiki>...</nowiki></kbd> 1326:
For block quotations (only ā€“ never for non-quotations)
1192:<syntaxhighlight>...</syntaxhighlight> 819:
To display template parameters with or without values
1157: 1137: 1084: 1080: 1058: 402: 333: 176:|]|padTB=.1em|padLR=.1em}} 834:{{{title|alt}}} 214: 612: 313: 8: 912:(·) but can use ā , ā–Æ, or any character. 636: 619: 605: 597: 320: 306: 298: 229:is more suitable for that purpose though. 1433:To indicate a button in a user interface 1409: 1390: 1386: 1367: 1264: 1246: 1211: 791:{{DEFAULTSORT:Y, X}} 279: 265: 261: 79:This template is used in system messages 150:|text=button text}} 814: 770: 7: 1452:To indicate sample or example output 126:If you need a clickable button, use 1262: 1244: 1209: 1191: 1066: 1025: 796:To display wikicode variables and 239:|button text}} 51:It may contain usage information, 24: 1194:, but will wrap overflowing text 1067:<code>...</code> 581: 580: 180: 71: 29: 711:Same as {{strong}} but in green 83:approximately 45,000 pages 1026:<img>...</img> 1: 1243:variant uses strike-through ( 690:Same as {{strong}} but in red 1152:{{large|large text example}} 1132:{{small|small text example}} 800:as they would appear in code 403:WikiProject-specific buttons 63:Template:Clickable button 2 1478: 60: 1079:differs only in styling: 1047:}}/{{ 904:Ā·Ā·2Ā·blanksĀ·foreĀ·andĀ·aftĀ·Ā· 645: 642: 639: 634: 628:Semantic markup templates 576: 105:before implementing them. 97:subpages, or in your own 1353:but without quote markup 1156:To wrap example code in 1136:To wrap example code in 334:General button templates 1372:To indicate user input 1231:)  To indicate 1190:)  Wrapper for 1061:parameter ..." 643:Example output  499:Big Turquoise Button 815:|year=2008 775:(see {{var}} above) 771:strIllustratePrefix 707: 686: 662: 521:Big Skyblue Button 510:Big Fuchsia Button 224:clickable button 2 44: 1461: 1460: 1456: 1455: 1113:Like {{ 1036:("tags") in prose 923:}} etc. 705: 684: 660: 594: 593: 543:Big Yellow Button 532:Big Purple Button 488:Big Orange Button 373: 109: 108: 59: 58: 36: 1469: 1449: 1352: 1268: 1260: 1252: 1249: 1242: 1230: 1228: 1215: 1193: 1189: 1187: 1159: 1139: 1133: 1126:subst:codenowiki 1110: 1108: 1086: 1082: 1078: 1072: 1068: 1062: 1060: 1029: 1027: 1006: 1005: 1002: 999: 996: 993: 990: 989: 986: 983: 980: 977: 976: 973: 970: 969: 964: 944: 905: 888: 882: 878: 872: 866: 865: 862: 859: 856: 853: 835: 816: 793: 792: 637: 621: 614: 607: 598: 584: 583: 569: 563: 558: 552: 547: 541: 536: 530: 525: 519: 514: 508: 503: 497: 492: 486: 481: 475: 470: 466:Big Green Button 464: 459: 453: 448: 442: 437: 431: 395: 389: 384: 378: 371: 370: 364: 359: 353: 348: 344:Clickable button 342: 328:Button templates 322: 315: 308: 299: 293: 277: 259: 240: 228: 222: 212: 203: 194: 184: 177: 164: 151: 135: 131:Clickable button 129: 75: 74: 68: 33: 32: 26: 1477: 1476: 1472: 1471: 1470: 1468: 1467: 1466: 1464: 1462: 1457: 1447: 1430: 1411: 1392: 1388: 1369: 1346: 1342: 1323: 1304: 1285: 1266: 1254: 1250: 1247: 1236: 1222: 1220: 1213: 1202:deprecated code 1181: 1179: 1175: 1167:syntaxhighlight 1153: 1146:subst:kbdnowiki 1131: 1106: 1100: 1076: 1070: 1056: 1028:tags ..." 1023: 1003: 1000: 997: 994: 991: 987: 984: 981: 978: 974: 971: 965: 962: 961: 942: 939:|...| 938: 934: 926: 903: 886: 880: 876: 870: 863: 860: 857: 854: 852: 833: 790: 789: 772: 752: 727:emphatic phrase 630: 625: 595: 590: 572: 567: 561: 556: 550: 545: 539: 534: 528: 523: 517: 512: 506: 501: 495: 490: 484: 479: 477:Big Lime Button 473: 468: 462: 457: 455:Big Cyan Button 451: 446: 440: 435: 433:Big Blue Button 429: 409:Article Wizard 398: 393: 387: 382: 376: 372:(not clickable) 368: 362: 357: 351: 346: 340: 329: 326: 287: 283: 271: 267: 263: 253: 250: 244: 234: 233:Alternatively, 226: 220: 217: 211: 208: 201: 198: 188: 185: 171: 168: 158: 155: 145: 142: 133: 127: 113:This button is 88: 86: 72: 66: 50: 47:Template:Button 30: 22: 21: 20: 18:Template:Button 12: 11: 5: 1475: 1473: 1459: 1458: 1454: 1453: 1450: 1448:example output 1445: 1435: 1434: 1431: 1426: 1416: 1415: 1412: 1407: 1397: 1396: 1393: 1384: 1374: 1373: 1370: 1365: 1355: 1354: 1343: 1341: 1340:    1338: 1328: 1327: 1324: 1322: 1321:    1319: 1309: 1308: 1305: 1303: 1302:    1300: 1290: 1289: 1286: 1284: 1283:    1281: 1271: 1270: 1217: 1206: 1196: 1195: 1176: 1174: 1173:    1171: 1161: 1160: 1154: 1151: 1149: 1141: 1140: 1134: 1129: 1121: 1120: 1111: 1098: 1088: 1087: 1063: 1054: 1038: 1037: 1030: 1021: 1011: 1010: 1007: 959: 949: 948: 945: 940: 936: 932: 924: 914: 913: 906: 901: 891: 890: 867: 850: 840: 839: 836: 831: 821: 820: 817: 812: 802: 801: 794: 787: 777: 776: 773: 768: 758: 757: 753: 750: 748: 738: 737: 730: 728: 723: 713: 712: 709: 708:use ..." 702: 692: 691: 688: 687:use ..." 681: 671: 670: 667:<strong> 663: 658: 648: 647: 644: 641: 640:Template  635: 632: 631: 626: 624: 623: 616: 609: 601: 592: 591: 589: 588: 577: 574: 573: 571: 570: 565:Cleanup Button 559: 548: 537: 526: 515: 504: 493: 482: 471: 460: 449: 444:Big Red Button 438: 427: 426: 425: 420: 415: 406: 404: 400: 399: 397: 396: 385: 374: 360: 355:Branded Button 349: 337: 335: 331: 330: 327: 325: 324: 317: 310: 302: 296: 295: 285: 269: 249: 246: 241:also produces 231: 230: 199: 186: 169: 156: 141: 138: 107: 106: 76: 57: 56: 34: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 1474: 1465: 1451: 1446: 1443: 1442: 1437: 1436: 1432: 1427: 1424: 1423: 1418: 1417: 1413: 1408: 1405: 1404: 1399: 1398: 1394: 1385: 1382: 1381: 1376: 1375: 1371: 1366: 1363: 1362: 1357: 1356: 1350: 1344: 1339: 1336: 1335: 1330: 1329: 1325: 1320: 1317: 1316: 1311: 1310: 1306: 1301: 1298: 1297: 1292: 1291: 1287: 1282: 1279: 1278: 1273: 1272: 1258: 1240: 1234: 1226: 1218: 1207: 1204: 1203: 1198: 1197: 1185: 1177: 1172: 1169: 1168: 1163: 1162: 1155: 1150: 1147: 1143: 1142: 1135: 1130: 1127: 1123: 1122: 1118: 1117: 1112: 1104: 1099: 1096: 1095: 1090: 1089: 1075: 1064: 1055: 1052: 1051: 1046: 1045: 1040: 1039: 1035: 1034:HTML elements 1031: 1022: 1019: 1018: 1013: 1012: 1008: 968: 960: 957: 956: 951: 950: 946: 930: 925: 922: 921: 916: 915: 911: 907: 902: 899: 898: 893: 892: 885: 875: 868: 851: 848: 847: 842: 841: 837: 832: 829: 828: 823: 822: 818: 813: 810: 809: 804: 803: 799: 795: 788: 785: 784: 779: 778: 774: 769: 766: 765: 760: 759: 754: 749: 746: 745: 740: 739: 735: 731: 726: 724: 721: 720: 715: 714: 710: 703: 700: 699: 694: 693: 689: 682: 679: 678: 673: 672: 668: 664: 659: 656: 655: 650: 649: 638: 633: 629: 622: 617: 615: 610: 608: 603: 602: 599: 587: 579: 578: 575: 566: 560: 555: 549: 544: 538: 533: 527: 522: 516: 511: 505: 500: 494: 489: 483: 478: 472: 467: 461: 456: 450: 445: 439: 434: 428: 424: 423:button wizard 421: 419: 416: 414: 411: 410: 408: 407: 405: 401: 392: 386: 381: 375: 367: 361: 356: 350: 345: 339: 338: 336: 332: 323: 318: 316: 311: 309: 304: 303: 300: 291: 286: 282: 275: 270: 257: 252: 251: 247: 245: 238: 225: 218: 209: 200: 192: 187: 183: 175: 170: 162: 157: 149: 144: 143: 139: 137: 132: 124: 122: 118: 116: 104: 100: 96: 92: 84: 80: 77: 70: 69: 64: 54: 48: 43: 40: 39:documentation 35: 28: 27: 19: 1463: 1444:}} 1439: 1438:{{ 1425:}} 1420: 1419:{{ 1406:}} 1401: 1400:{{ 1383:}} 1378: 1377:{{ 1364:}} 1359: 1358:{{ 1351:}} 1347:{{ 1337:}} 1334:block indent 1332: 1331:{{ 1318:}} 1313: 1312:{{ 1299:}} 1294: 1293:{{ 1280:}} 1275: 1274:{{ 1259:}} 1255:{{ 1241:}} 1237:{{ 1227:}} 1223:{{ 1208:"Do not use 1205:}} 1200: 1199:{{ 1186:}} 1182:{{ 1170:}} 1165: 1164:{{ 1148:}} 1144:{{ 1128:}} 1124:{{ 1114: 1105:has keyword 1097:}} 1092: 1091:{{ 1077:}} 1071:{{ 1057:"Ensure the 1053:}} 1048: 1042: 1041:{{ 1020:}} 1015: 1014:{{ 958:}} 953: 952:{{ 943:}} 927:{{ 918: 917:{{ 900:}} 895: 894:{{ 887:}} 881:{{ 877:}} 871:{{ 849:}} 844: 843:{{ 830:}} 825: 824:{{ 811:}} 806: 805:{{ 786:}} 781: 780:{{ 767:}} 762: 761:{{ 747:}} 742: 741:{{ 732:To indicate 722:}} 717: 716:{{ 701:}} 696: 695:{{ 680:}} 675: 674:{{ 665:To indicate 657:}} 652: 651:{{ 568:}} 562:{{ 557:}} 551:{{ 546:}} 540:{{ 535:}} 529:{{ 524:}} 518:{{ 513:}} 507:{{ 502:}} 496:{{ 491:}} 485:{{ 480:}} 474:{{ 469:}} 463:{{ 458:}} 452:{{ 447:}} 441:{{ 436:}} 430:{{ 394:}} 388:{{ 383:}} 377:{{ 369:}} 363:{{ 358:}} 352:{{ 347:}} 341:{{ 292:}} 288:{{ 276:}} 272:{{ 258:}} 254:{{ 235:{{ 232: 227:}} 221:{{ 189:{{ 172:{{ 159:{{ 146:{{ 134:}} 128:{{ 125: 114: 112: 110: 99:user subpage 78: 897:param value 798:magic words 756:distinction 380:Blue button 281:ā‡¬ Caps Lock 243:button text 216:linked text 207:linked text 197:button text 167:button text 154:button text 1429:Don't save 1410:Left shift 1368:user input 1261:uses red ( 1233:deprecated 1221: or 1180: or 1085:someMethod 1081:someMethod 1032:To render 889:templates) 734:<em> 698:stronggood 661:Important! 554:AFC button 95:/testcases 53:categories 37:This is a 1380:key press 1083:becomes 764:var serif 751:strPrefix 677:strongbad 646:Use  391:Mw button 256:Key press 204:produces 195:produces 178:produces 165:produces 152:produces 117:clickable 103:talk page 81:, and on 1253:) while 995:category 929:Template 586:Category 248:See also 91:/sandbox 1403:key top 1229:  1188:  1107:?BRANCH 1094:PreCode 982:selfref 967:hatnote 858:selfref 418:button2 274:Key top 121:tooltip 42:subpage 1422:button 1074:codett 1050:codett 992:| 979:| 972:| 935:| 931:| 910:middot 855:| 654:strong 413:button 366:Button 237:Button 210:, and 191:Button 174:Button 161:Button 148:Button 1349:quote 1315:quote 1265:blink 1248:blink 1212:blink 1103:FORTH 1024:"The 998:= 985:= 975:Hello 861:= 827:param 685:Never 140:Usage 16:< 1441:samp 1387:Ctrl 1267:> 1263:< 1251:> 1245:< 1214:> 1210:< 1184:sxhl 1116:code 1059:alt= 1044:code 879:and 808:para 725:"An 706:Only 262:Ctrl 213:for 45:for 1361:kbd 1277:pre 1257:dcr 1239:dc2 1017:tag 988:yes 955:tji 920:tlx 884:tji 864:yes 846:tjp 783:tld 744:var 290:Kbd 115:not 93:or 1296:tj 1269:). 1225:dc 1216:." 1109:." 1069:. 1004:}} 1001:no 963:{{ 941:10 874:tj 719:em 219:. 136:. 1391:x 1389:+ 1219:( 1178:( 1101:" 937:2 933:1 729:" 704:" 683:" 620:e 613:t 606:v 321:e 314:t 307:v 284:) 268:) 266:x 264:+ 202:] 85:. 65:. 49:.

Index

Template:Button
documentation
subpage
Template:Button
categories
Template:Clickable button 2
approximately 45,000 pages
/sandbox
/testcases
user subpage
talk page
tooltip
Clickable button
Button
Button
Button

Button
linked text
linked text
clickable button 2
Button
Key press
Key top
ā‡¬ Caps Lock
Kbd
v
t
e
Clickable button

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

ā†‘