Knowledge (XXG)

Template:Em/doc

Source šŸ“

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

Index

Template:Em
documentation
subpage
Template:Em
categories
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

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

ā†‘