Template:Xt/see also
- {{xt}} inline positive example text, in green, with serif font
- {{xt2}} same as
{{xt}}
but for blocks of text - {{bxt}} same as
{{xt}}
but uses bold instead of serif font - {{mxt}} same as
{{xt}}
but uses mono-spaced font (especially useful in source code)
- {{!xt}} inline negative example text, in red, with serif font
- {{!xt2}} same as
{{!xt}}
but for blocks (i.e., same as{{xt2}}
but red) - {{!bxt}} same as
{{!xt}}
but uses boldface - {{!mxt}} same as
{{!xt}}
but uses mono-spaced font; used for incorrect or strongly deprecated code/output/input examples and should usually be wrapped in<code>
,<samp>
, or<kbd>
as appropriate; see also {{dc}} and its variants below - {{!xts}} same as
{{!xt}}
but alsostrikes through the text - {{dcr}} inline
strongly deprecated or deleted material; {{dc2}} variant hasstrikethrough(they both use the<del>
element, and do not add monospace font on their own; can be used in mainspace (articles), and where necessary wrapped in<code>
,<samp>
, or<kbd>
); see also {{dc}} below
- {{xtd}} inline deprecated (or uncertain, unavailable, lorem, etc.) example text, in grey
- {{bxtd}} same as
{{xtd}}
but uses boldface - {{mxtd}} same as
{{xtd}}
but uses mono-spaced font - {{dc}} inline [[:Deprecated or deleted material:{{{2}}}]] ([{{fullurl::Deprecated or deleted material:{{{2}}}|action=edit}} edit]|[[:deprecated or deleted material talk:{{{2}}}|talk]]|[{{fullurl::Deprecated or deleted material:{{{2}}}|action=history}} history]|[{{fullurl:Special:Whatlinkshere/:Deprecated or deleted material:{{{2}}}|limit=999}} links]|[{{fullurl::Deprecated or deleted material:{{{2}}}|action=watch}} watch]|logs); (uses the
<del>
element, and does not add monospace font on it own; can be used in mainspace (articles), and where necessary wrapped in<code>
,<samp>
, or<kbd>
); see also {{dcr}} above
- {{xtn}} inline neutral example text, with no color change, when none of the above applies; used for "permissible" examples neither favored nor deprecated
- {{xtn2}} same as
{{xtn}}
but for blocks of text - {{bxtn}} same as
{{xtn}}
but uses boldface; it still applies a CSS class, so it's not simply boldfacing - {{mxtn}} same as
{{xtn}}
but uses mono-spaced font; this is a good template to use when the shaded box formatting of<code>...</code>
might be undesirable, or the semantics of it is incorrect in the context
- {{strongbad}} – for introducing something as deprecated or issuing some other warning in documentation, e.g.: Not for use in mainspace.
Usage
[edit]Use template {{xt}} (the name of which stands for "example text") to change the given text to the serif typeface, and green text, in order to format examples of style, especially when using quotation marks or italics could be confusing. This template is used frequently in the Manual of Style when inline typeface changes are needed. (For style examples that break to their own line, use {{Xt2}}).) For examples of bad/wrong style, in red, use {{!xt}} and {{!xt2}}, respectively.
As with all templates, when the text, given as the template parameter, has any equals characters,
prefix the text with |1=
in order to ensure any equals signs in the given text
are correctly interpreted as being part of the normal text.
Examples
[edit]- What you write
...for example, {{xt|1=''T'' = 293.15 K}}, {{xt|1=''m'' = 5.4 kg}}.
- What you get
- ...for example, T = 293.15 K, m = 5.4 kg.
The accompanying change in typeface to a serif typestyle, (example text) is to make it more accessible for those with color blindness.