This site is supported by donations to The OEIS Foundation.

Template:"/doc

From OeisWiki
Jump to: navigation, search
This documentation subpage contains instructions, categories, or other information for Template:".

The {{"}} (double quote) HTML numeric character entity template gives the UTF-16 HTML [hexadecimal] numeric character entity for the dumb double quote character (dumb ditto mark) " (which has a special meaning in HTML and wiki markup), for the english ditto mark ” and for the french ditto mark ».

It may also be used to enclose text within double quotes ("dumb double quotes" or [“english” or «french»] smart double quotes).

Note: This is for XHTML5 future proofing, where named character entities should not be used, except the following five

Named entity Glyph
" "
& &
' '
&lt; <
&gt; >
Numeric entity Glyph
&#x0022; "
&#x0026; &
&#x0027; '
&#x003C; <
&#x003E; >

Numeric character entities or glyphs (except the five above glyphs, which have a special meaning in HTML) should be used instead.[1]

Tests

Named entity Glyph
&apos; '
&quot; "
&lsquo;
&rsquo;
&ldquo;
&rdquo;
&lsaquo;
&rsaquo;
&laquo; «
&raquo; »
Numeric entity Glyph
&#x0027; '
&#x0022; "
&#x2018;
&#x2019;
&#x201C;
&#x201D;
&#x2039;
&#x203A;
&#x00AB; «
&#x00BB; »
Comments
Typewriter ("programmer's") straight single quote, ambidextrous. Also known as "single quote."
Typewriter ("programmer's") straight double quote, ambidextrous. Also known as "double quote."
English left single quote
English right single quote
English left double quote
English right double quote
French left single angle quote
French right single angle quote
French left double angle quote
French right double angle quote

Usage

{{"|"}} or {{"|" d}}      (to get " or ", a dumb ditto mark or a dumb double quote)

or

{{"}} or {{"|" e}}      (to get ” or ”, an english ditto mark)

or

{{"|" f}}      (to get », a french ditto mark)

or

{{"|Quoted text}}      (to get "Quoted text", with dumb double quotes)

or

{{"|Quoted text|e}} or {{"|Quoted text|" e}} or {{"|Quoted text|"}}      (to get “Quoted text” or “Quoted text” or “Quoted text”, with english smart double quotes)

or

{{"|Quoted text|f}} or {{"|Quoted text|" f}}      (to get «Quoted text» or «Quoted text», with french smart double quotes, called «guillemets» in french)

Examples

Code Result Comment
{{"|"}} " (dumb double quote, dumb ditto mark)
{{"|" d}} " (dumb ditto mark)
{{"}} (english ditto mark)
{{"|" e}} (english ditto mark)
{{"|" f}} » (french ditto mark)
{{"|between dumb quotes}} "between dumb quotes"
{{"|between dumb quotes|d}} "between dumb quotes"
{{"|between dumb quotes|" d}} "between dumb quotes"
{{"|between english quotes|e}} “between english quotes”
{{"|between english quotes|" e}} “between english quotes”
{{"|between english quotes|"}} “between english quotes”
{{"|{{nbsp}}|"}} “ ”
{{"|between french quotes|f}} «between french quotes»
{{"|between french quotes|" f}} «between french quotes»

Examples where you should use the {{prime}} template

Code Result Comment
length of 10' 6" length of 10' 6" (not proper feet and inches symbols)
length of 10{{prime}} 6{{prime|2}} length of 10 6′′
length of 10{{prime}}{{thinsp}}6{{prime|2}} length of 10 6′′ (better spacing)
5{{sup|o}} 30' 15" angle 5o 30' 15" angle (not proper minutes and seconds symbols)
5{{sup|o}} 30{{prime}} 15{{prime|2}} angle 5o 30 15′′ angle
5{{sup|o}}{{thinsp}}30{{prime}}{{thinsp}}15{{prime|2}} angle 5o 30 15′′ angle (better spacing)

Examples with invalid arguments

Code Result
{{"|between "dumb" quotes}} " (double quote) error: First parameter text cannot contain " when enclosing it within ".
{{"|between "dumb" quotes|d}} " (double quote) error: First parameter text cannot contain " when enclosing it within ".
{{"|Quoted text|g}} " (double quote) error: Second parameter must be from d or " d (dumb quotes), e or " e or " (english quotes), f or " f (french quotes).

See also

  • {{'}} (dumb single quote '  ) (apostrophe ’  ) (to get text within: 'dumb single quotes', smart [‘english’ or ‹french›] single quotes)
  • {{prime}} (prime, feet or minutes symbol   )

Notes

External links