Knowledge (XXG)

Template:Em

Source šŸ“

26: 57: 342:. It can also be parsed by user agents and other software as definitively indicating emphasis, not just some typographic italicized effect for appearance's sake. Therefore, it only should be used sparingly in articles to highlight something being stressed (e.g., to represent mild vocal emphasis). Example: 185:
The average reader, and average editor, do not and need not care about this distinction most of the time, but it can be important and editors who understand it can use this template as a baseline insurance against accidental or uninformed replacement by bots and human editors, as well as to add
471:
Formats text with the HTML emphasis (<em></em>) element. Do not use for layout, typography conventions (titles, foreign words, scientific names of genera and species, etc.), and other cases that are not true semantic (meaningful) emphasis; use normal ''italics'' formatting
174:) is purely typographic and is semantically meaningless; however, there are some occasions when simple italics are preferable to the emphasis template, most often for titles of publications (books, films, albums, etc.), foreign words and phrases, 338:. With this technique, the emphasized text stands out from the rest of the nearby text in most if not all visual browsers and some text-to-speech screen readers (which usually ignore purely typographic italicization), without strongly affecting 857:
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
380:
be used for layout, typography conventions (titles, foreign words, scientific names of genera and species, etc.), and other cases that are not true emphasis. In these different cases, italics Wikicode
1010:
To display parameter values lightly bordered; replaces <code>...</code>, especially when value contains embedded or leading/trailing blanks; visualized here with
720: 1646: 1409:
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
147:) is usually rendered visually in an italic (oblique a.k.a. slanted) typeface by default on graphical browsers, but can be parsed and acted upon in customizable ways with 364:
is a kind of custard."), but this usage is not often encyclopedic and can (when not found in a direct quotation) usually be rewritten to avoid the awkward construction.
325: 1111:
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
940:
To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{para}} above
404:
should also not be used when the text to which it is applied is italicized for some other reason (e.g., it is part of a book title); in such cases use
713: 537:
The WAI-ARIA (Accessible Rich Internet Applications) role that the text plays. Adds the "role" attribute with the provided value to the HTML code.
1613: 315:
takes text, which cannot be marked up in any way, and displays it as a pop-up "tooltip" (in most browsers) when the cursor hovers over the span
1598: 1586: 41: 1568: 1641: 729: 706: 360:
It is also occasionally used for disambiguation, e.g. between two adjacent but different uses of the same word or homonym ("What it
1625: 1582: 37: 1530: 148: 1204: 64: 45: 450: 442: 1303: 1268: 454: 388:
for the browser or other user agent, should be used instead, or special markup for a particular case, such as
85: 446: 1608: 1435: 179: 81: 240:(emphasis) HTML markup around the text provided as the first parameter. It is safest to always use the 998: 646:
Explanatory text of the pop-up tooltip to be displayed on hover. Added to the HTML "title" attribute.
152: 1593: 1227: 838:
stress emphasis (not just purely typographical italicization like for book titles or foreign terms)
799: 690: 77: 623:
A unique HTML identifier, which must start with an alphabetic letter. Added to the "id" attribute.
182:
and other cases where stylistic conventions demand italics, but they convey no sense of emphasis.
1481: 1247: 865: 778: 680: 88:. The tested changes can be added to this page in a single edit. Please discuss changes on the 1572: 1030: 187: 416:
in non-quoted sentences that end in an exclamation point. And it is usually excessive to use
125: 1504: 1195: 1068: 899: 99: 89: 1621: 1576: 1523: 1175: 1151: 755: 670: 407: 335: 334:
an important word or phrase in a passage, in a way that is (unlike simply italicizing it)
160: 76:
To avoid major disruption and server load, any changes should be tested in the template's
33: 577:
Name(s) of the class(es), separated by spaces, to be added to the HTML "class" attribute.
1450: 1416: 1221:}}, but prevents line breaks inside the code. Only for very short code parts. 928: 420:
on terms that are Wikilinked, since the link markup acts as a form of emphasis itself.
175: 1635: 1542: 1285: 1217: 1145: 909: 156: 339: 1462: 1378: 1358: 1340: 1135: 1118: 1056: 1021: 985: 947: 884: 845: 835: 771:
importance, seriousness, or urgency instead of just simple typographical boldfacing
768: 391: 137: 121: 1397: 1334: 1326: 975: 74:
Changes to it can cause immediate changes to the Knowledge (XXG) user interface.
1167:
To indicate text is source code. To nest other templates within {{code}}, use
69: 698: 600:
CSS directives for formatting the text. Added to the HTML "style" attribute.
331: 301:
takes a valid, unique HTML id (must begin with an alphabetic letter); adds
163:, i.e. markup that conveys meaning or context, not just visual appearance. 20: 1516:
Similar; includes more symbols, but does not directly support combinations
1049:
To display a template call (with or without parameters and values) as code
252:
Advanced HTML values can be passed through the template to the HTML code:
1337:
source code in template documentation, articles on HTML specs, etc. The
971:
To display template parameters with colors (as they would appear in the
273:
takes a class name (or multiple class names, separated by spaces); adds
178:(when quotation marks are not used for that purpose), names of ships, 1011: 70:
approximately 1,400,000 pages, or roughly 2% of all pages
702: 124:
to text, and more importantly to indicate to human editors and
51: 1390:
For larger blocks of source code and other pre-formatted text
1497:
To indicate specific-keystroke input, including combinations
376:
is strictly for semantic (meaningful) emphasis, it should
209:
or, if the text to be emphasized contains an equals sign:
1240:<code><nowiki>...</nowiki></code> 428:
is an American daily newspaper." This example should use
136:
typographic italicization to replace the intentional and
1602: 1447:
For indented blocks of material; visually identical to
1260:<kbd><nowiki>...</nowiki></kbd> 348:
Contrary to reports, she was {{em|not}} dead after all.
1428:
For block quotations (only ā€“ never for non-quotations)
1294:<syntaxhighlight>...</syntaxhighlight> 482:
This template prefers inline formatting of parameters.
921:
To display template parameters with or without values
400:for variables in computer science and mathematics. 1259: 1239: 1186: 1182: 1160: 936:{{{title|alt}}} 326:Knowledge (XXG):WikiProject Usability/Scannability 675:ā€“ for bold rather than italic semantic emphasis 1647:Knowledge (XXG) XHTML tag-replacing templates 714: 8: 1014:(·) but can use ā , ā–Æ, or any character. 468: 236:This template puts intentional and explicit 461:in articles based on its TemplateData. 1592:Editors can experiment in this template's 738: 721: 707: 699: 475: 1535:To indicate a button in a user interface 1511: 1492: 1488: 1469: 1366: 1348: 1313: 893:{{DEFAULTSORT:Y, X}} 114:makes it faster and easier to apply the 916: 872: 312: 298: 284: 270: 256: 241: 368:When this template should not be used 7: 1554:To indicate sample or example output 455:See a monthly parameter usage report 180:scientific names of genera and below 1364: 1346: 1311: 1293: 1168: 1127: 397: 385: 237: 171: 144: 133: 115: 898:To display wikicode variables and 14: 1296:, but will wrap overflowing text 1169:<code>...</code> 55: 24: 813:Same as {{strong}} but in green 1128:<img>...</img> 412:instead. Usually avoid using 398:<var>...</var> 352:"Contrary to reports, she was 336:semantically meaningful markup 98:For the em dash template, see 1: 1345:variant uses strike-through ( 792:Same as {{strong}} but in red 287:takes inline CSS input; adds 1254:{{large|large text example}} 1234:{{small|small text example}} 902:as they would appear in code 259:takes a WAI-ARIA role; adds 238:<em>...</em> 145:<em>...</em> 116:<em>...</em> 1663: 1566: 445:for this template used by 418:{{em}} 414:{{em}} 402:{{Em}} 386:<i>...</i> 374:{{em}} 323: 172:<i>...</i> 134:<i>...</i> 97: 65:MediaWiki:Newpages-summary 1642:Semantic markup templates 1626:Subpages of this template 1181:differs only in styling: 1149:}}/{{ 1006:Ā·Ā·2Ā·blanksĀ·foreĀ·andĀ·aftĀ·Ā· 747: 744: 741: 736: 730:Semantic markup templates 488: 330:This template is made to 92:before implementing them. 84:subpages, or in your own 63:This template is used in 1455:but without quote markup 1258:To wrap example code in 1238:To wrap example code in 384:, which is rendered as 138:semantically meaningful 1620:Add categories to the 1474:To indicate user input 614:HTML unique identifier 430:''The New York Times'' 226:These both render as: 29:Template documentation 591:CSS formatting markup 394:|...}} 324:Further information: 231:text to be emphasized 219:text to be emphasized 202:text to be emphasized 155:, and text-to-speech 1333:)  To indicate 1292:)  Wrapper for 1163:parameter ..." 745:Example output  214:{{em| 200:{{em| 166:Simple italicizing ( 128:they should not use 126:Knowledge (XXG) bots 917:|year=2008 877:(see {{var}} above) 873:strIllustratePrefix 660: 514:The text to format. 485: 478:Template parameters 464:TemplateData for Em 248:Optional parameters 809: 788: 764: 476: 474: 426:The New York Times 113: 1563: 1562: 1558: 1557: 1215:Like {{ 1138:("tags") in prose 1025:}} etc. 807: 786: 762: 659: 658: 501: 469: 453:and other tools. 188:web accessibility 111: 96: 95: 1654: 1617: 1606: 1590: 1551: 1454: 1370: 1362: 1354: 1351: 1344: 1332: 1330: 1317: 1295: 1291: 1289: 1261: 1241: 1235: 1228:subst:codenowiki 1212: 1210: 1188: 1184: 1180: 1174: 1170: 1164: 1162: 1131: 1129: 1108: 1107: 1104: 1101: 1098: 1095: 1092: 1091: 1088: 1085: 1082: 1079: 1078: 1075: 1072: 1071: 1066: 1046: 1007: 990: 984: 980: 974: 968: 967: 964: 961: 958: 955: 937: 918: 895: 894: 739: 723: 716: 709: 700: 695:ā€“ same but green 694: 684: 674: 642: 619: 596: 573: 555: 552: 549: 546: 541:Suggested values 533: 510: 502: 486: 483: 431: 419: 415: 411: 403: 399: 395: 387: 383: 375: 356:dead after all." 349: 332:mildly emphasize 314: 313:|title= 309:to the HTML code 308: 300: 295:to the HTML code 294: 286: 285:|style= 281:to the HTML code 280: 272: 271:|class= 267:to the HTML code 266: 258: 243: 239: 222: 205: 173: 169: 146: 142: 135: 131: 117: 100:Template:Em dash 59: 58: 52: 49: 30: 28: 27: 1662: 1661: 1657: 1656: 1655: 1653: 1652: 1651: 1632: 1631: 1630: 1629: 1619: 1611: 1596: 1591: 1580: 1577:Template:Em/doc 1565: 1564: 1559: 1549: 1532: 1513: 1494: 1490: 1471: 1448: 1444: 1425: 1406: 1387: 1368: 1356: 1352: 1349: 1338: 1324: 1322: 1315: 1304:deprecated code 1283: 1281: 1277: 1269:syntaxhighlight 1255: 1248:subst:kbdnowiki 1233: 1208: 1202: 1178: 1172: 1158: 1130:tags ..." 1125: 1105: 1102: 1099: 1096: 1093: 1089: 1086: 1083: 1080: 1076: 1073: 1067: 1064: 1063: 1044: 1041:|...| 1040: 1036: 1028: 1005: 988: 982: 978: 972: 965: 962: 959: 956: 954: 935: 892: 891: 874: 854: 829:emphatic phrase 732: 727: 688: 678: 668: 665: 640: 617: 594: 571: 553: 550: 547: 544: 531: 508: 481: 467: 439: 429: 417: 413: 405: 401: 389: 381: 373: 370: 351: 347: 328: 322: 306: 302: 292: 288: 278: 274: 264: 260: 257:|role= 250: 220: 213: 203: 199: 196: 167: 161:semantic markup 140: 129: 108: 103: 75: 73: 56: 50: 31: 25: 23: 12: 11: 5: 1660: 1658: 1650: 1649: 1644: 1634: 1633: 1561: 1560: 1556: 1555: 1552: 1550:example output 1547: 1537: 1536: 1533: 1528: 1518: 1517: 1514: 1509: 1499: 1498: 1495: 1486: 1476: 1475: 1472: 1467: 1457: 1456: 1445: 1443: 1442:    1440: 1430: 1429: 1426: 1424: 1423:    1421: 1411: 1410: 1407: 1405: 1404:    1402: 1392: 1391: 1388: 1386: 1385:    1383: 1373: 1372: 1319: 1308: 1298: 1297: 1278: 1276: 1275:    1273: 1263: 1262: 1256: 1253: 1251: 1243: 1242: 1236: 1231: 1223: 1222: 1213: 1200: 1190: 1189: 1165: 1156: 1140: 1139: 1132: 1123: 1113: 1112: 1109: 1061: 1051: 1050: 1047: 1042: 1038: 1034: 1026: 1016: 1015: 1008: 1003: 993: 992: 969: 952: 942: 941: 938: 933: 923: 922: 919: 914: 904: 903: 896: 889: 879: 878: 875: 870: 860: 859: 855: 852: 850: 840: 839: 832: 830: 825: 815: 814: 811: 810:use ..." 804: 794: 793: 790: 789:use ..." 783: 773: 772: 769:<strong> 765: 760: 750: 749: 746: 743: 742:Template  737: 734: 733: 728: 726: 725: 718: 711: 703: 697: 696: 686: 685:ā€“ same but red 676: 664: 661: 657: 656: 653: 650: 649: 643: 638: 634: 633: 630: 627: 626: 620: 615: 611: 610: 607: 604: 603: 597: 592: 588: 587: 584: 581: 580: 574: 569: 568:HTML class(es) 565: 564: 561: 558: 557: 556: 542: 534: 529: 525: 524: 521: 518: 517: 511: 506: 500: 499: 496: 493: 490: 447:TemplateWizard 440: 438: 435: 434: 433: 379: 369: 366: 363: 358: 357: 355: 321: 318: 317: 316: 310: 304: 296: 290: 282: 276: 268: 262: 249: 246: 234: 233: 232: 224: 223: 218: 207: 206: 201: 195: 192: 176:words as words 157:screen readers 120: 107: 104: 94: 93: 60: 22: 21: 18: 13: 10: 9: 6: 4: 3: 2: 1659: 1648: 1645: 1643: 1640: 1639: 1637: 1627: 1623: 1615: 1610: 1604: 1600: 1595: 1588: 1584: 1578: 1574: 1570: 1569:documentation 1553: 1548: 1545: 1544: 1539: 1538: 1534: 1529: 1526: 1525: 1520: 1519: 1515: 1510: 1507: 1506: 1501: 1500: 1496: 1487: 1484: 1483: 1478: 1477: 1473: 1468: 1465: 1464: 1459: 1458: 1452: 1446: 1441: 1438: 1437: 1432: 1431: 1427: 1422: 1419: 1418: 1413: 1412: 1408: 1403: 1400: 1399: 1394: 1393: 1389: 1384: 1381: 1380: 1375: 1374: 1360: 1342: 1336: 1328: 1320: 1309: 1306: 1305: 1300: 1299: 1287: 1279: 1274: 1271: 1270: 1265: 1264: 1257: 1252: 1249: 1245: 1244: 1237: 1232: 1229: 1225: 1224: 1220: 1219: 1214: 1206: 1201: 1198: 1197: 1192: 1191: 1177: 1166: 1157: 1154: 1153: 1148: 1147: 1142: 1141: 1137: 1136:HTML elements 1133: 1124: 1121: 1120: 1115: 1114: 1110: 1070: 1062: 1059: 1058: 1053: 1052: 1048: 1032: 1027: 1024: 1023: 1018: 1017: 1013: 1009: 1004: 1001: 1000: 995: 994: 987: 977: 970: 953: 950: 949: 944: 943: 939: 934: 931: 930: 925: 924: 920: 915: 912: 911: 906: 905: 901: 897: 890: 887: 886: 881: 880: 876: 871: 868: 867: 862: 861: 856: 851: 848: 847: 842: 841: 837: 833: 828: 826: 823: 822: 817: 816: 812: 805: 802: 801: 796: 795: 791: 784: 781: 780: 775: 774: 770: 766: 761: 758: 757: 752: 751: 740: 735: 731: 724: 719: 717: 712: 710: 705: 704: 701: 692: 687: 682: 677: 672: 667: 666: 662: 654: 651: 648: 647: 644: 639: 636: 635: 631: 628: 625: 624: 621: 616: 613: 612: 608: 605: 602: 601: 598: 593: 590: 589: 585: 582: 579: 578: 575: 570: 567: 566: 562: 559: 543: 540: 539: 538: 535: 530: 528:WAI-ARIA role 527: 526: 522: 519: 516: 515: 512: 507: 504: 503: 497: 494: 491: 487: 484: 479: 473: 466: 465: 460: 456: 452: 448: 444: 436: 427: 423: 422: 421: 409: 393: 377: 367: 365: 361: 353: 345: 344: 343: 341: 337: 333: 327: 319: 311: 299:|id= 297: 291:CSS directive 283: 269: 255: 254: 253: 247: 245: 230: 229: 228: 227: 217: 212: 211: 210: 198: 197: 193: 191: 189: 183: 181: 177: 164: 162: 158: 154: 150: 143:. Emphasis ( 139: 127: 123: 118: 105: 101: 91: 87: 83: 79: 71: 67: 66: 61: 54: 53: 47: 43: 39: 35: 19: 16: 1546:}} 1541: 1540:{{ 1527:}} 1522: 1521:{{ 1508:}} 1503: 1502:{{ 1485:}} 1480: 1479:{{ 1466:}} 1461: 1460:{{ 1453:}} 1449:{{ 1439:}} 1436:block indent 1434: 1433:{{ 1420:}} 1415: 1414:{{ 1401:}} 1396: 1395:{{ 1382:}} 1377: 1376:{{ 1361:}} 1357:{{ 1343:}} 1339:{{ 1329:}} 1325:{{ 1310:"Do not use 1307:}} 1302: 1301:{{ 1288:}} 1284:{{ 1272:}} 1267: 1266:{{ 1250:}} 1246:{{ 1230:}} 1226:{{ 1216: 1207:has keyword 1199:}} 1194: 1193:{{ 1179:}} 1173:{{ 1159:"Ensure the 1155:}} 1150: 1144: 1143:{{ 1122:}} 1117: 1116:{{ 1060:}} 1055: 1054:{{ 1045:}} 1029:{{ 1020: 1019:{{ 1002:}} 997: 996:{{ 989:}} 983:{{ 979:}} 973:{{ 951:}} 946: 945:{{ 932:}} 927: 926:{{ 913:}} 908: 907:{{ 888:}} 883: 882:{{ 869:}} 864: 863:{{ 849:}} 844: 843:{{ 834:To indicate 824:}} 820: 819: 818:{{ 803:}} 798: 797:{{ 782:}} 777: 776:{{ 767:To indicate 759:}} 754: 753:{{ 693:}} 689:{{ 683:}} 679:{{ 673:}} 669:{{ 645: 637:Tooltip text 622: 599: 576: 548:presentation 536: 513: 480: 477: 470: 463: 462: 458: 451:VisualEditor 443:TemplateData 441:This is the 437:TemplateData 425: 410:}} 406:{{ 390:{{ 371: 359: 340:scannability 329: 251: 242:|1= 235: 225: 221:}} 215: 208: 204:}} 184: 165: 149:style sheets 122:HTML element 109: 86:user subpage 62: 15: 1573:transcluded 999:param value 900:magic words 858:distinction 492:Description 459:Template:Em 112:Em template 44:] [ 40:] [ 36:] [ 1636:Categories 1567:The above 1531:Don't save 1512:Left shift 1470:user input 1363:uses red ( 1335:deprecated 1323: or 1282: or 1187:someMethod 1183:someMethod 1134:To render 991:templates) 836:<em> 800:stronggood 763:Important! 691:Stronggood 141:<em> 82:/testcases 1624:subpage. 1609:testcases 1482:key press 1185:becomes 866:var serif 853:strPrefix 779:strongbad 748:Use  681:Strongbad 489:Parameter 320:Use cases 277:classname 90:talk page 68:, and on 1355:) while 1097:category 1031:Template 663:See also 655:optional 632:optional 609:optional 586:optional 563:optional 523:required 472:instead. 372:Because 263:rolename 159:. It is 119:emphasis 78:/sandbox 1601:| 1594:sandbox 1587:history 1585:| 1505:key top 1331:  1290:  1209:?BRANCH 1196:PreCode 1084:selfref 1069:hatnote 960:selfref 520:Content 382:''...'' 289:style=" 275:class=" 168:''...'' 130:''...'' 106:Purpose 42:history 17:{{{1}}} 1618:pages. 1524:button 1176:codett 1152:codett 1094:| 1081:| 1074:| 1037:| 1033:| 1012:middot 957:| 756:strong 671:Strong 652:String 629:String 606:String 583:String 560:String 498:Status 408:Strong 261:role=" 1575:from 1451:quote 1417:quote 1367:blink 1350:blink 1314:blink 1205:FORTH 1126:"The 1100:= 1087:= 1077:Hello 963:= 929:param 787:Never 641:title 595:style 572:class 194:Usage 48:] 46:purge 32:[ 1622:/doc 1614:edit 1607:and 1603:diff 1599:edit 1583:edit 1543:samp 1489:Ctrl 1369:> 1365:< 1353:> 1347:< 1316:> 1312:< 1286:sxhl 1218:code 1161:alt= 1146:code 981:and 910:para 827:"An 808:Only 554:note 551:none 545:math 532:role 505:Text 495:Type 457:for 305:name 303:id=" 153:apps 110:The 38:edit 34:view 1571:is 1463:kbd 1379:pre 1359:dcr 1341:dc2 1119:tag 1090:yes 1057:tji 1022:tlx 986:tji 966:yes 948:tjp 885:tld 846:var 396:or 392:var 378:not 354:not 170:or 132:or 80:or 1638:: 1579:. 1398:tj 1371:). 1327:dc 1318:." 1211:." 1171:. 1106:}} 1103:no 1065:{{ 1043:10 976:tj 821:em 618:id 449:, 362:is 244:. 216:1= 190:. 151:, 1628:. 1616:) 1612:( 1605:) 1597:( 1589:) 1581:( 1493:x 1491:+ 1321:( 1280:( 1203:" 1039:2 1035:1 831:" 806:" 785:" 722:e 715:t 708:v 509:1 432:. 424:" 350:" 346:" 307:" 293:" 279:" 265:" 102:. 72:.

Index

view
edit
history
purge
MediaWiki:Newpages-summary
approximately 1,400,000 pages, or roughly 2% of all pages
/sandbox
/testcases
user subpage
talk page
Template:Em dash
HTML element
Knowledge (XXG) bots
semantically meaningful
style sheets
apps
screen readers
semantic markup
words as words
scientific names of genera and below
web accessibility
Knowledge (XXG):WikiProject Usability/Scannability
mildly emphasize
semantically meaningful markup
scannability
var
Strong
TemplateData
TemplateWizard
VisualEditor

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

ā†‘