64:
102:
156:
184:
36:
477:
more broadly in mind, and never construct examples such that a blind person, who may not be able to see the coloration, boldfacing, or monospace font change, cannot understand the examples. Especially indicate, with terms like "not", "don't", "wrong:", etc., that a negative example is a negative one,
792:
919:
785:
778:
914:
Make the three most frequently encountered editing fields also use this font stack: the main editing window, the edit summary line, and the search entry box.
436:– The text to which to apply the markup. As with all templates, when the text has any equals characters ("="), explicitly prefix the text with
1866:
1422:
209:
1854:
79:
1836:
83:
1885:
1850:
75:
42:
802:
You can consistently use a monospaced font with well-designed characters for coding (e.g., to distinguish clearly between
91:
1633:
element, and do not add monospace font on their own; can be used in mainspace (articles), and where necessary wrapped in
1721:
element, and does not add monospace font on it own; can be used in mainspace (articles), and where necessary wrapped in
863:
217:
1901:
1757:, with no color change, when none of the above applies; used for "permissible" examples neither favored nor deprecated
474:
1415:
877:, should that font go missing or not have characters you need) to all the normally monospaced HTML elements like
843:
406:
to indicate usage that is neither advised nor advised against or deprecated. The bold, sans-serif equivalent is
1389:
347:(for "grey") can be used to indicate uncertain, unavailable, disabled, lorem, etc., examples without implying
257:, which substitutes a monospaced font. For style examples that break to their own line (e.g. paragraphs), use
118:
122:
233:
213:
170:
166:
1562:; used for incorrect or strongly deprecated code/output/input examples and should usually be wrapped in
768:
Have monospaced templates in this group – and your editing window – use your preferred monospaced font:
1408:
197:
1385:
1822:
1827:– for introducing something as deprecated or issuing some other warning in documentation, e.g.:
453:, and displays it as a pop-up "tooltip" (in most browsers) when the cursor hovers over the span
1840:
126:
241:
For cases where the serif typeface is not desirable (e.g. in blocks of computer code), use
190:
1844:
1305:
element – which has been discouraged since the 1990s, and should usually be replaced with
467:
71:
918:
If you know of an additional class to add here, please update this page or mention it on
499:...for example, {{xt|1=''T'' = 293.15 K}}, but not {{!xt|1=''m''=5.4kg}}.
1895:
1812:
1794:
1776:
1762:
1691:
1674:
1587:
1549:
1532:
1514:
409:
370:
362:
354:
313:
299:
291:
283:
1748:
1736:
1660:
1618:
1606:
1500:
1480:
1463:
1449:
891:
381:
342:
330:
275:
260:
252:
244:
46:
17:
873:
Apply a consistent monospace font of your choice (and the fallback system-default
135:
This and related templates produce an inline typeface change suitable to render e
1708:
1648:
1577:
1435:
899:
852:
483:
393:
348:
462:
The accompanying change in typeface to a serif or monospaced type style (as in
1317:(this may vary by context) – you can add something like the following to your
858:
If you don't want to manually add this code to your CSS page but would rather
109:
478:
or with "deprecated", "avoid", etc., that deprecated material is deprecated.
58:
907:
Do the same for additional site-wide classes (as identified so far, e.g.
306:
1807:; this is a good template to use when the shaded box formatting of
113:
and changes may be widely noticed. Test changes in the template's
390:
examples, and has no color change, but is otherwise identical to
1667:
deprecated (or uncertain, unavailable, lorem, etc.) example text
855:
was picked as a freely-available coding font for this example).
304:, respectively to the previous paragraph (the addition of the
178:
150:
96:
30:
1789:; it still applies a CSS class, so it's not simply boldfacing
841:
Add something like one of the code snippets below into your
1878:
1870:
50:
1223:/* Make some of the editable stuff monospaced */
1043:/* Make some of the editable stuff monospaced */
1293:If you'd like to help clean up instances of the
466:) is to make it fully accessible for those with
1416:
1388:. For CSS you can just import for this, see
851:with whatever your preferred coding font is (
786:
147:Using example-formatting templates in general
143:ext on Knowledge (XXG)'s general help pages.
8:
1115:/* Use my font, when available, for code */
932:/* Use my font, when available, for code */
1860:Editors can experiment in this template's
1423:
1409:
793:
779:
763:
1714:
1624:
1612:
848:
744:|inline typeface change}} for comparison
726:|inline typeface change}} for comparison
708:|inline typeface change}} for comparison
690:|inline typeface change}} for comparison
672:|inline typeface change}} for comparison
654:|inline typeface change}} for comparison
636:|inline typeface change}} for comparison
618:|inline typeface change}} for comparison
600:|inline typeface change}} for comparison
582:|inline typeface change}} for comparison
564:|inline typeface change}} for comparison
546:|inline typeface change}} for comparison
529:
210:category of example-formatting templates
1613:strongly deprecated or deleted material
896:and other monospaced templates in the
443:
437:
430:
423:
367:alias). The mono-spaced equivalent is
759:User CSS for a monospaced coding font
351:. The bold, sans-serif equivalent is
218:Knowledge (XXG):Manual of Style (MOS)
125:. Consider discussing changes on the
7:
888:Do the same for the classes used by
451:which cannot be marked up in any way
310:indicates the opposite effect). Use
1808:
1730:
1726:
1722:
1718:
1642:
1638:
1634:
1630:
1571:
1567:
1563:
1381:
1377:
1373:
1322:
1306:
1294:
882:
878:
249:, which substitutes boldfacing, or
1493:(especially useful in source code)
864:meta:User:SMcCandlish/codefont.css
232:be used in mainspace (the article
24:
1815:of it is incorrect in the context
869:This code will do the following:
1809:<code>...</code>
182:
154:
100:
62:
34:
1334:/* Flag bad code for cleanup */
1715:deprecated or deleted material
1523:but for blocks (i.e., same as
1390:meta:User:SMcCandlish/lint.css
486:}} syntax and result
224:typeface changes are needed.
1:
1811:might be undesirable, or the
1329:stick out like a sore thumb:
321:with strikethrough formatting
92:Category:Text color templates
1801:{{xtn}}
1783:{{xtn}}
1769:{{xtn}}
1698:{{xtd}}
1681:{{xtd}}
1594:{{!xt}}
1556:{{!xt}}
1539:{{!xt}}
1525:{{xt2}}
1521:{{!xt}}
1444:, in green, with serif font
911:) that output as monospace.
440:or the template will break.
404:{{!xt}}
216:general help pages such as
1918:
1834:
1487:{{xt}}
1474:bold instead of serif font
1470:{{xt}}
1456:{{xt}}
1372:You can also do this with
517: = 293.15 K
400:{{xt}}
212:is used frequently in non-
89:
1886:Subpages of this template
1829:Not for use in mainspace.
1574:as appropriate; see also
1509:, in red, with serif font
844:Special:MyPage/common.css
228:This family of templates
161:This family of templates
129:before implementing them.
121:subpages, or in your own
108:This template is used on
1599:strikes through the text
1331:
1112:
929:
866:for quick instructions.
482:Examples of {{
90:Not to be confused with
1268:"Roboto Mono"
1205:"Roboto Mono"
1088:"Roboto Mono"
1025:"Roboto Mono"
270:bad/wrong style, in red
1771:but for blocks of text
1582:and its variants below
1458:but for blocks of text
750:inline typeface change
732:inline typeface change
714:inline typeface change
696:inline typeface change
678:inline typeface change
660:inline typeface change
642:inline typeface change
624:inline typeface change
606:inline typeface change
588:inline typeface change
570:inline typeface change
552:inline typeface change
398:. It can be used with
67:Template documentation
1507:negative example text
1442:positive example text
862:(transclude) it, see
1755:neutral example text
339:examples. Its alias
335:template exists for
318:for bad/wrong style
189:This template uses
1629:(they both use the
1386:deprecated elements
198:Module:TEMPLATENAME
1902:Template sandboxes
1830:
1160:userlinks-username
977:userlinks-username
237:
1828:
1397:
1396:
756:
755:
446:tooltip text here
227:
206:
205:
177:
176:
133:
132:
57:
56:
1909:
1882:
1874:
1858:
1826:
1810:
1806:
1805:mono-spaced font
1802:
1798:
1788:
1784:
1780:
1770:
1766:
1756:
1752:
1740:
1732:
1728:
1724:
1720:
1712:
1703:
1702:mono-spaced font
1699:
1695:
1686:
1682:
1678:
1668:
1664:
1652:
1644:
1640:
1636:
1632:
1627:
1622:
1610:
1601:
1595:
1591:
1581:
1573:
1569:
1565:
1561:
1560:mono-spaced font
1557:
1553:
1544:
1540:
1536:
1526:
1522:
1518:
1508:
1504:
1492:
1491:mono-spaced font
1488:
1484:
1475:
1471:
1467:
1457:
1453:
1443:
1439:
1425:
1418:
1411:
1383:
1379:
1375:
1368:
1365:
1362:
1359:
1356:
1353:
1350:
1347:
1344:
1341:
1338:
1335:
1328:
1326:
1320:
1316:
1314:
1311:>...</
1310:
1304:
1302:
1299:>...</
1298:
1284:
1281:
1278:
1275:
1272:
1269:
1266:
1263:
1260:
1257:
1254:
1251:
1248:
1245:
1242:
1239:
1236:
1233:
1230:
1227:
1224:
1221:
1218:
1215:
1212:
1209:
1206:
1203:
1200:
1197:
1194:
1191:
1188:
1185:
1182:
1179:
1176:
1173:
1170:
1167:
1164:
1161:
1158:
1155:
1152:
1149:
1146:
1143:
1140:
1137:
1134:
1131:
1128:
1125:
1122:
1119:
1116:
1104:
1101:
1098:
1095:
1092:
1089:
1086:
1083:
1080:
1077:
1074:
1071:
1068:
1065:
1062:
1059:
1056:
1053:
1050:
1047:
1044:
1041:
1038:
1035:
1032:
1029:
1026:
1023:
1020:
1017:
1014:
1011:
1008:
1005:
1002:
999:
996:
993:
990:
987:
984:
981:
978:
975:
972:
969:
966:
963:
960:
957:
954:
951:
948:
945:
942:
939:
936:
933:
926:Horizontal style
910:
903:
895:
884:
880:
876:
861:
847:page, replacing
846:
837:
833:
829:
825:
821:
817:
813:
809:
805:
795:
788:
781:
764:
751:
733:
715:
697:
679:
661:
643:
625:
607:
589:
571:
553:
530:
525:
518:
512:...for example,
500:
465:
448:
444:|title=
439:
435:
428:
413:
405:
401:
397:
389:
386:template is for
385:
374:
366:
358:
346:
338:
334:
323:
317:
309:
303:
295:
287:
279:
271:
268:For examples of
264:
256:
248:
186:
185:
179:
158:
157:
151:
104:
103:
97:
87:
68:
66:
65:
43:template sandbox
38:
37:
31:
28:
1917:
1916:
1912:
1911:
1910:
1908:
1907:
1906:
1892:
1891:
1890:
1889:
1884:
1876:
1864:
1859:
1848:
1845:Template:Xt/doc
1833:
1820:
1816:
1804:
1800:
1792:
1786:
1782:
1774:
1768:
1760:
1754:
1746:
1742:
1734:
1716:
1706:
1701:
1697:
1689:
1684:
1680:
1672:
1666:
1658:
1654:
1646:
1628:
1625:
1616:
1614:
1604:
1597:
1593:
1585:
1575:
1559:
1555:
1547:
1542:
1538:
1530:
1524:
1520:
1512:
1506:
1498:
1494:
1490:
1486:
1478:
1473:
1469:
1461:
1455:
1447:
1441:
1433:
1430:
1429:
1403:
1398:
1370:
1369:
1366:
1363:
1360:
1357:
1354:
1351:
1348:
1345:
1342:
1339:
1336:
1333:
1324:
1318:
1312:
1308:
1300:
1296:
1289:Cleanup efforts
1286:
1285:
1282:
1279:
1276:
1273:
1270:
1267:
1264:
1261:
1258:
1255:
1252:
1249:
1246:
1243:
1240:
1237:
1234:
1231:
1228:
1225:
1222:
1219:
1216:
1213:
1210:
1207:
1204:
1201:
1198:
1195:
1192:
1189:
1186:
1183:
1180:
1177:
1174:
1171:
1168:
1165:
1162:
1159:
1156:
1153:
1150:
1147:
1144:
1141:
1138:
1135:
1132:
1129:
1126:
1123:
1120:
1117:
1114:
1106:
1105:
1102:
1099:
1096:
1093:
1090:
1087:
1084:
1081:
1078:
1075:
1072:
1069:
1066:
1063:
1060:
1057:
1054:
1051:
1048:
1045:
1042:
1039:
1036:
1033:
1030:
1027:
1024:
1021:
1018:
1015:
1012:
1009:
1006:
1003:
1000:
997:
994:
991:
988:
985:
982:
979:
976:
973:
970:
967:
964:
961:
958:
955:
952:
949:
946:
943:
940:
937:
934:
931:
908:
897:
889:
874:
859:
850:
842:
835:
831:
827:
823:
819:
815:
811:
807:
803:
800:
799:
769:
761:
752:for comparison
749:
745:
734:for comparison
731:
727:
716:for comparison
713:
709:
698:for comparison
695:
691:
680:for comparison
677:
673:
662:for comparison
659:
655:
644:for comparison
641:
637:
626:for comparison
623:
619:
608:for comparison
605:
601:
590:for comparison
587:
583:
572:for comparison
569:
565:
554:for comparison
551:
547:
520:
513:
498:
488:
468:color blindness
463:
460:
447:
434:
427:
420:
407:
403:
399:
391:
387:
379:
368:
360:
352:
340:
336:
328:
319:
311:
305:
297:
289:
281:
273:
269:
258:
250:
242:
240:
202:
183:
155:
149:
101:
95:
88:
69:
63:
61:
35:
26:
22:
21:
20:
12:
11:
5:
1915:
1913:
1905:
1904:
1894:
1893:
1875:and testcases
1832:
1831:
1818:
1790:
1772:
1758:
1744:
1704:
1687:
1670:
1656:
1602:
1583:
1545:
1528:
1510:
1496:
1476:
1459:
1445:
1428:
1427:
1420:
1413:
1405:
1404:
1402:
1399:
1395:
1394:
1382:<strike>
1378:<center>
1332:
1113:
1109:Vertical style
930:
916:
915:
912:
905:
886:
822:, and between
814:, and between
798:
797:
790:
783:
775:
774:
771:
770:
767:
762:
760:
757:
754:
753:
746:
739:
736:
735:
728:
721:
718:
717:
710:
703:
700:
699:
692:
685:
682:
681:
674:
667:
664:
663:
656:
649:
646:
645:
638:
631:
628:
627:
620:
613:
610:
609:
602:
595:
592:
591:
584:
577:
574:
573:
566:
559:
556:
555:
548:
541:
538:
537:
534:
533:What you type
528:
527:
509:
508:
506:
502:
501:
495:
494:
492:
491:What you write
487:
480:
459:
456:
455:
454:
449:– Takes text,
445:
441:
432:
425:
419:
416:
204:
203:
201:
200:
194:
187:
175:
174:
159:
148:
145:
131:
130:
105:
60:
59:
55:
54:
39:
23:
15:
14:
13:
10:
9:
6:
4:
3:
2:
1914:
1903:
1900:
1899:
1897:
1887:
1880:
1872:
1868:
1863:
1856:
1852:
1846:
1842:
1838:
1837:documentation
1824:
1819:
1814:
1796:
1791:
1778:
1773:
1764:
1759:
1750:
1745:
1738:
1710:
1705:
1693:
1688:
1676:
1671:
1662:
1657:
1650:
1626:strikethrough
1620:
1608:
1603:
1600:
1589:
1584:
1579:
1551:
1546:
1534:
1529:
1516:
1511:
1502:
1497:
1482:
1477:
1465:
1460:
1451:
1446:
1437:
1432:
1431:
1426:
1421:
1419:
1414:
1412:
1407:
1406:
1400:
1393:
1391:
1387:
1330:
1291:
1290:
1111:
1110:
928:
927:
923:
921:
920:the talk page
913:
906:
901:
893:
887:
872:
871:
870:
867:
865:
856:
854:
849:"Roboto Mono"
845:
839:
796:
791:
789:
784:
782:
777:
776:
773:
772:
766:
765:
758:
747:
743:
740:this is an {{
738:
737:
729:
725:
722:this is an {{
720:
719:
711:
707:
704:this is an {{
702:
701:
693:
689:
686:this is an {{
684:
683:
675:
671:
668:this is an {{
666:
665:
657:
653:
650:this is an {{
648:
647:
639:
635:
632:this is an {{
630:
629:
621:
617:
614:this is an {{
612:
611:
603:
599:
596:this is an {{
594:
593:
585:
581:
578:this is an {{
576:
575:
567:
563:
560:this is an {{
558:
557:
549:
545:
542:this is an {{
540:
539:
536:What you get
535:
532:
531:
523:
516:
511:
510:
507:
504:
503:
497:
496:
493:
490:
489:
485:
481:
479:
476:
475:accessibility
471:
469:
458:Accessibility
457:
452:
442:
422:
421:
417:
415:
411:
395:
383:
376:
372:
364:
356:
350:
344:
332:
325:
322:
315:
308:
301:
293:
285:
277:
266:
262:
254:
246:
238:
235:
231:
225:
223:
219:
215:
211:
199:
196:
195:
192:
188:
181:
180:
172:
169:(the article
168:
164:
160:
153:
152:
146:
144:
142:
138:
128:
124:
120:
116:
112:
111:
106:
99:
98:
93:
85:
81:
77:
73:
52:
48:
44:
40:
33:
32:
29:
19:
1861:
1825:}}
1821:{{
1797:}}
1793:{{
1779:}}
1775:{{
1765:}}
1761:{{
1751:}}
1747:{{
1739:}}
1735:{{
1733:); see also
1727:<samp>
1723:<code>
1717:; (uses the
1711:}}
1707:{{
1694:}}
1690:{{
1677:}}
1673:{{
1663:}}
1659:{{
1651:}}
1647:{{
1645:); see also
1639:<samp>
1635:<code>
1623:variant has
1621:}}
1617:{{
1609:}}
1605:{{
1598:
1590:}}
1586:{{
1580:}}
1576:{{
1568:<samp>
1564:<code>
1552:}}
1548:{{
1535:}}
1531:{{
1517:}}
1513:{{
1503:}}
1499:{{
1483:}}
1479:{{
1466:}}
1462:{{
1452:}}
1448:{{
1438:}}
1434:{{
1384:, and other
1374:<font>
1371:
1292:
1288:
1287:
1178:keyboard-key
1151:example-mono
1108:
1107:
995:keyboard-key
968:example-mono
925:
924:
917:
902:}}
898:{{
894:}}
890:{{
879:<code>
868:
857:
840:
801:
741:
723:
705:
687:
669:
651:
633:
615:
597:
579:
561:
543:
521:
514:
505:What you get
472:
464:example text
461:
450:
438:|1=
431:|1=
412:}}
408:{{
396:}}
392:{{
384:}}
380:{{
377:
373:}}
369:{{
365:}}
361:{{
357:}}
353:{{
345:}}
341:{{
333:}}
329:{{
326:
320:
316:}}
312:{{
302:}}
298:{{
294:}}
290:{{
286:}}
282:{{
278:}}
274:{{
267:
263:}}
259:{{
255:}}
251:{{
247:}}
243:{{
239:
229:
226:
221:
207:
162:
140:
136:
134:
123:user subpage
114:
107:
47:Template:Xtn
41:This is the
27:Example text
25:
18:Template:Xtn
1841:transcluded
1731:<kbd>
1719:<del>
1643:<kbd>
1631:<del>
1572:<kbd>
1262:font-family
1247:searchInput
1199:font-family
1082:font-family
1067:searchInput
1019:font-family
909:.monospaced
883:<pre>
853:Roboto Mono
748:this is an
730:this is an
712:this is an
694:this is an
676:this is an
658:this is an
640:this is an
622:this is an
604:this is an
586:this is an
568:this is an
550:this is an
349:deprecation
165:be used in
82:] [
78:] [
74:] [
1835:The above
1355:background
1319:common.css
1277:!important
1256:searchText
1229:wpTextbox1
1214:!important
1169:monospaced
1097:!important
1076:searchText
1049:wpTextbox1
1034:!important
986:monospaced
519:, but not
418:Parameters
337:deprecated
119:/testcases
110:many pages
1823:strongbad
1813:semantics
1803:but uses
1785:but uses
1700:but uses
1683:but uses
1669:, in grey
1596:but also
1558:but uses
1541:but uses
1489:but uses
1472:but uses
1274:monospace
1238:wpSummary
1211:monospace
1193:plaincode
1094:monospace
1058:wpSummary
1031:monospace
1013:plaincode
875:monospace
433:text here
426:text here
234:namespace
214:mainspace
171:namespace
167:mainspace
127:talk page
45:page for
1896:Category
1799:same as
1787:boldface
1781:same as
1767:same as
1696:same as
1685:boldface
1679:same as
1592:same as
1554:same as
1543:boldface
1537:same as
1527:but red)
1519:same as
1485:same as
1468:same as
1454:same as
1401:See also
1321:to make
115:/sandbox
1869:|
1862:sandbox
1855:history
1853:|
1753:inline
1713:inline
1665:inline
1611:inline
1505:inline
1440:inline
1349:DarkRed
860:@import
388:neutral
80:history
1883:pages.
1879:create
1817:
1743:
1655:
1495:
1187:button
1004:button
904:family
885:, etc.
834:, and
810:, and
524:=5.4kg
424:|
272:, use
230:cannot
222:inline
163:cannot
139:ample
1843:from
1741:above
1729:, or
1653:below
1641:, or
1570:, or
1343:color
473:Keep
359:(and
296:, or
220:when
86:]
84:purge
70:[
16:<
1871:diff
1867:edit
1851:edit
1795:mxtn
1777:bxtn
1763:xtn2
1692:mxtd
1675:bxtd
1588:!xts
1550:!mxt
1533:!bxt
1515:!xt2
1424:edit
1417:talk
1410:view
1361:Pink
1327:>
1323:<
1315:>
1313:code
1309:code
1307:<
1303:>
1295:<
1130:samp
1118:code
947:samp
935:code
818:and
794:edit
787:talk
780:view
742:bxtd
724:bxtn
706:!bxt
670:mxtd
652:mxtn
634:!mxt
410:bxtn
402:and
378:The
371:mxtd
363:bxtg
355:bxtd
327:The
314:!xts
300:!xt2
292:!mxt
284:!bxt
265:.
208:The
76:edit
72:view
51:diff
1839:is
1749:xtn
1737:dcr
1661:xtd
1619:dc2
1607:dcr
1501:!xt
1481:mxt
1464:bxt
1450:xt2
1136:kbd
1124:pre
953:kbd
941:pre
892:mxt
838:).
688:bxt
616:mxt
598:xtd
580:xtn
562:!xt
429:or
382:xtn
343:xtg
331:xtd
276:!xt
261:xt2
253:mxt
245:bxt
191:Lua
117:or
1898::
1847:.
1725:,
1709:dc
1649:dc
1637:,
1615:;
1578:dc
1566:,
1436:xt
1392:.
1380:,
1376:,
1337:tt
1325:tt
1301:tt
1297:tt
1142:tt
959:tt
922:.
900:xt
881:,
830:,
826:,
806:,
544:xt
484:xt
470:.
414:.
394:xt
375:.
324:.
288:,
280:,
236:).
193::
173:).
53:).
1888:.
1881:)
1877:(
1873:)
1865:(
1857:)
1849:(
1367:}
1364:;
1358::
1352:;
1346::
1340:{
1283:}
1280:;
1271:,
1265::
1259:{
1253:#
1250:,
1244:#
1241:,
1235:#
1232:,
1226:#
1220:}
1217:;
1208:,
1202::
1196:{
1190:.
1184:.
1181:,
1175:.
1172:,
1166:.
1163:,
1157:.
1154:,
1148:.
1145:,
1139:,
1133:,
1127:,
1121:,
1103:}
1100:;
1091:,
1085::
1079:{
1073:#
1070:,
1064:#
1061:,
1055:#
1052:,
1046:#
1040:}
1037:;
1028:,
1022::
1016:{
1010:.
1007:,
1001:.
998:,
992:.
989:,
983:.
980:,
974:.
971:,
965:.
962:,
956:,
950:,
944:,
938:,
836:—
832:–
828:−
824:-
820:0
816:O
812:I
808:1
804:l
526:.
522:m
515:T
307:!
141:T
137:X
94:.
49:(
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.