Шаблон:Xt/doc: различия между версиями
(Rm {{used in system}}, no longer used in system messages) |
Mr makay (обсуждение | вклад) м (1 версия импортирована) |
(нет различий)
| |
Текущая версия на 01:21, 30 августа 2021
{{#ifeq:doc |doc
|
{{#ifeq:show |show
| {{#invoke:Message box|mbox}}
}}{{#if: |
| {{#ifexist:Шаблон:Xt
| [[Category:{{#switch:Шаблон |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
{{#invoke:Distinguish|distinguish}}
This and related templates produce an inline typeface change suitable to render eXample Text on Wikipedia's general help pages.
Using example-formatting templates in general
{{#invoke:Message box|mbox}} {{#invoke:Lua banner|main}} The category of example-formatting templates is used frequently in non-mainspace general help pages such as Wikipedia:Manual of Style (MOS) when inline typeface changes are needed.
This family of templates cannot be used in mainspace (the article namespace).
Also, this family of templates is not for use as wikitext markup for quotations on talk pages; use {{#Invoke:Template link general|main|code=on}} instead.
For cases where the serif typeface is not desirable (e.g. in blocks of computer code), use {{#Invoke:Template link general|main|code=on}}, which substitutes boldfacing, or {{#Invoke:Template link general|main|code=on}}, which substitutes a mono-spaced font. For style examples that break to their own line (e.g. paragraphs), use {{#Invoke:Template link general|main|code=on}}.
For examples of {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|bad/wrong style, in red}}, use {{#Invoke:Template link general|main|code=on}}, {{#Invoke:Template link general|main|code=on}}, {{#Invoke:Template link general|main|code=on}}, or {{#Invoke:Template link general|main|code=on}}, respectively.
The {{#Invoke:Template link general|main|code=on}} template exists for {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|deprecated}} examples. Its alias {{#Invoke:Template link general|main|code=on}} (for "grey") can be used to indicate uncertain, unavailable, disabled, lorem, etc., examples without implying deprecation. The bold, sans-serif equivalent is {{#Invoke:Template link general|main|code=on}} (and {{#Invoke:Template link general|main|code=on}} alias). The mono-spaced equivalent is {{#Invoke:Template link general|main|code=on}}.
The {{#Invoke:Template link general|main|code=on}} template is for {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|neutral}} examples, and has no color change, but is otherwise identical to {{#Invoke:Template link general|main|code=on}}. It can be used with {{#Invoke:Template link general|main|nolink=yes|code=yes}} and {{#Invoke:Template link general|main|nolink=yes|code=yes}} to indicate usage that is neither advised nor advised against or deprecated. The bold, sans-serif equivalent is {{#Invoke:Template link general|main|code=on}}.
Parameters
|{{SAFESUBST:#if:|=}}text hereor|{{SAFESUBST:#if:1|1=}}text here– The text to which to apply the markup. As with all templates, when the text has any equals characters ("="), explicitly prefix the text with|{{SAFESUBST:#if:1|1=}}or the template will break.|{{SAFESUBST:#if:title|title=}}tooltip text here– 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
Accessibility
The accompanying change in typeface to a serif or mono-spaced type style (as in {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|example text}}) is to make it fully accessible for those with color blindness.
Keep accessibility 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, or with "deprecated", "avoid", etc., that deprecated material is deprecated.
Examples of {{xt}} syntax and result
- What you write
...for example, {{xt|1=''T'' = 293.15 K}}, but not {{!xt|1=''m''=5.4kg}}.
- What you get
- ...for example, {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|T = 293.15 K}}, but not {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|m=5.4kg}}.
| What you type | What you get | |||||||
|---|---|---|---|---|---|---|---|---|
| this is an {{xt|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{!xt|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{xtn|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{xtd|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{mxt|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{!mxt|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{mxtn|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{mxtd|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{bxt|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{!bxt|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{bxtn|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison | |
| this is an {{bxtd|inline typeface change}} for comparison | this is an {{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|inline typeface change}} for comparison |
User CSS for a monospaced coding font
style="background: #{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = F0F2F5 | other | #default = CCFFCC
}}; font-size:87%; padding:0.2em 0.3em; text-align:{{safesubst:#if:y|left|{{safesubst:#if:|left|center}}}}; {{safesubst:#if:|color: {{{fc}}};|}}" | Have monospaced templates in this group – and your editing window – use your preferred monospaced font:
{{safesubst:#if: |
- | The following is a closed discussion. {{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
error|Template:Strongbad is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }} |
other | #default = Please do not modify it.
}} }} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{#invoke:Navbar|navbar}}
You can consistently use a monospaced font with well-designed characters for coding (e.g., to distinguish clearly between Add something like one of the code snippets below into your Special:MyPage/common.css page, replacing "Roboto Mono" with whatever your preferred coding font is (Roboto Mono was picked as a freely-available coding font for this example). If you don't want to manually add this code to your CSS page but would rather This code will do the following:
|
close = | empty|s|single|v|void | open | pair = <{{#if:|code|code}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
|
close = | empty|s|single|v|void = /> | open = > | pair = {{#ifeq:code|!-- | >}}...
}}{{#switch:o
|
empty|s|single|v|void | open = | close | pair = {{#ifeq:code|!--|-->|</code>}}
}},
|
close = | empty|s|single|v|void | open | pair = <{{#if:|pre|pre}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
|
close = | empty|s|single|v|void = /> | open = > | pair = {{#ifeq:pre|!-- | >}}...
}}{{#switch:o
|
empty|s|single|v|void | open = | close | pair = {{#ifeq:pre|!--|-->|</pre>}}
}}, etc.
If you know of an additional class to add here, please update this page or mention it on the talk page. Horizontal style <syntaxhighlight lang="css">/* Use my font, when available, for code */ code, pre, samp, kbd, tt, .example-mono, .userlinks-username, .monospaced, .keyboard-key, .button, .plaincode { font-family: "Roboto Mono", monospace !important; } /* Make some of the editable stuff monospaced */
Vertical style <syntaxhighlight lang="css">/* Use my font, when available, for code */ code, pre, samp, kbd, tt, .example-mono, .userlinks-username, .monospaced, .keyboard-key, .button .plaincode { font-family: "Roboto Mono", monospace !important; } /* Make some of the editable stuff monospaced */
font-family: "Roboto Mono", monospace !important; }</syntaxhighlight> {{safesubst:#invoke:anchor|main}}Cleanup efforts If you'd like to help clean up instances of the
|
close = | empty|s|single|v|void | open | pair = <{{#if:|[[HTML element#{{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}|{{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон |
Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}]]|{{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон |
Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}}}{{#if:| {{{attribs}}}}} }}{{#switch:pair
|
close = | empty|s|single|v|void = /> | open = > | pair = {{#ifeq:{{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}|!--||>}}... }}{{#switch:pair
|
empty|s|single|v|void | open = | close | pair = {{#ifeq:{{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}|!--|-->|</{{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон |
Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}>}} }} element – which has not been valid HTML since the 1990s, and should usually be replaced with
|
close = | empty|s|single|v|void | open | pair = <{{#if:|[[HTML element#{{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|code}}|{{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон |
Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|code}}]]|{{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон |
Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|code}}}}{{#if:| {{{attribs}}}}} }}{{#switch:pair
|
close = | empty|s|single|v|void = /> | open = > | pair = {{#ifeq:{{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|code}}|!--||>}}... }}{{#switch:pair
|
empty|s|single|v|void | open = | close | pair = {{#ifeq:{{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|code}}|!--|-->|</{{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон |
Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|code}}>}} }} (this may vary by context) – you can add something like the following to your common.css to make
|
close = | empty|s|single|v|void | open | pair = <{{#if:|[[HTML element#{{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}|{{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон |
Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}]]|{{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон |
Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}}}{{#if:| {{{attribs}}}}} }}{{#switch:o
|
close = | empty|s|single|v|void = /> | open = > | pair = {{#ifeq:{{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}|!--||>}}... }}{{#switch:o
|
empty|s|single|v|void | open = | close | pair = {{#ifeq:{{#ifeq:Шаблон | error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон | Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}|!--|-->|</{{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон |
Обсуждение | Участник | Обсуждение участника | Шаблон:Ns:Wikipedia talk= |
}} }}|tt}}>}} }} stick out like a sore thumb: <syntaxhighlight lang="css">/* Flag bad code for cleanup */ tt { color: DarkRed; background: Pink; }</syntaxhighlight> You can also do this with
|
close = | empty|s|single|v|void | open | pair = <{{#if:|font|font}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
|
close = | empty|s|single|v|void = /> | open = > | pair = {{#ifeq:font|!-- | >}}...
}}{{#switch:o
|
empty|s|single|v|void | open = | close | pair = {{#ifeq:font|!--|-->|</font>}}
}},
|
close = | empty|s|single|v|void | open | pair = <{{#if:|center|center}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
|
close = | empty|s|single|v|void = /> | open = > | pair = {{#ifeq:center|!-- | >}}...
}}{{#switch:o
|
empty|s|single|v|void | open = | close | pair = {{#ifeq:center|!--|-->|</center>}}
}},
|
close = | empty|s|single|v|void | open | pair = <{{#if:|strike|strike}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
|
close = | empty|s|single|v|void = /> | open = > | pair = {{#ifeq:strike|!-- | >}}...
}}{{#switch:o
|
empty|s|single|v|void | open = | close | pair = {{#ifeq:strike|!--|-->|</strike>}}
}}, and other deprecated elements. For CSS you can just import for this, see meta:User:SMcCandlish/lint.css. |
See also
- {{#Invoke:Template link general|main|code=on}} inline {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|positive example text}}, in green, with serif font
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but for blocks of text
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but uses {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|bold instead of serif font}}
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but uses {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|mono-spaced font}} (especially useful in source code)
- {{#Invoke:Template link general|main|code=on}} inline {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|negative example text}}, in red, with serif font
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but for blocks (i.e., same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but red)
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but uses {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|boldface}}
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but uses {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|mono-spaced font}}; used for incorrect or strongly deprecated code/output/input examples and should usually be wrapped in {{#switch:o
|c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|code|code}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:code|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:code|!--|-->|</code>}} }},{{#switch:o |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|samp|samp}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:samp|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:samp|!--|-->|</samp>}} }}, or{{#switch:o |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|kbd|kbd}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:kbd|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:kbd|!--|-->|</kbd>}} }}as appropriate; see also {{#Invoke:Template link general|main|code=on}} and its variants below
- {{#Invoke:Template link general|main|code=on}} inline
strongly deprecated or deleted material; {{#Invoke:Template link general|main|code=on}} variant hasstrikethrough(they both use the{{#switch:open
|c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|del|del}}{{#if:| {{{attribs}}}}} }}{{#switch:open |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:del|!--||>}}... }}{{#switch:open |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:del|!--|-->|</del>}} }}element, and do not add monospace font on their own; can be used in mainspace (articles), and where necessary wrapped in{{#switch:o |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|code|code}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:code|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:code|!--|-->|</code>}} }},{{#switch:o |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|samp|samp}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:samp|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:samp|!--|-->|</samp>}} }}, or{{#switch:o |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|kbd|kbd}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:kbd|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:kbd|!--|-->|</kbd>}} }}); see also {{#Invoke:Template link general|main|code=on}} below
- {{#Invoke:Template link general|main|code=on}} inline {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|deprecated (or uncertain, unavailable, lorem, etc.) example text}}, in grey
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but uses {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|boldface}}
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but uses {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|mono-spaced font}}
- {{#Invoke:Template link general|main|code=on}} inline
deprecated or deleted material; (uses the{{#switch:open
|c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|del|del}}{{#if:| {{{attribs}}}}} }}{{#switch:open |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:del|!--||>}}... }}{{#switch:open |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:del|!--|-->|</del>}} }}element, and does not add monospace font on it own; can be used in mainspace (articles), and where necessary wrapped in{{#switch:o |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|code|code}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:code|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:code|!--|-->|</code>}} }},{{#switch:o |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|samp|samp}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:samp|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:samp|!--|-->|</samp>}} }}, or{{#switch:o |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|kbd|kbd}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:kbd|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:kbd|!--|-->|</kbd>}} }}); see also {{#Invoke:Template link general|main|code=on}} above
- {{#Invoke:Template link general|main|code=on}} inline {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|neutral example text}}, with no color change, when none of the above applies; used for "permissible" examples neither favored nor deprecated
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but for blocks of text
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but uses {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|boldface}}; it still applies a CSS class, so it's not simply boldfacing
- {{#Invoke:Template link general|main|code=on}} same as {{#Invoke:Template link general|main|nolink=yes|code=yes}} but uses {{#ifeq:Шаблон||{{#invoke:Error|error|[[:{{#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.|tag=}}{{#switch:Шаблон
|Обсуждение |Участник |Обсуждение участника |Шаблон:Ns:Wikipedia talk= |#default={{#if:| | }}
}}|mono-spaced font}}; this is a good template to use when the shaded box formatting of {{#switch:pair
|c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|code|code}}{{#if:| {{{attribs}}}}} }}{{#switch:pair |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:code|!--||>}}... }}{{#switch:pair |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:code|!--|-->|</code>}} }}might be undesirable, or the semantics of it is incorrect in the context{{#if:||
- {{#Invoke:Template link general|main|code=on}} – for introducing something as deprecated or issuing some other warning in documentation, e.g.: {{#Invoke:Template link general|main|code=on}}
}}