Template:'/doc: Difference between revisions
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{dochead}}{{wikipedia|Template:Apostrophe}} | {{dochead}}{{wikipedia|Template:Apostrophe}} | ||
This template uses the [[wikipedia:List of XML and HTML character entity references|decimal code]] for the apostrophe or single-quote character. When taking the possessive of titles, or when indicating the derivative of a function, this template prevents an apostrophe or single quote from becoming mistakenly interpreted with adjacent '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) Wiki markup. | This template uses the [[wikipedia:List of XML and HTML character entity references|decimal code]] for the apostrophe or single-quote character. When taking the possessive of titles, or when indicating the derivative of a function, this template prevents an apostrophe or single quote from becoming mistakenly interpreted with adjacent '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) Wiki markup. | ||
To insert an apostrophe and have it slightly spaced out from the rest of the text, use {{tlx|`}}.<br /><br /> | To insert an apostrophe and have it slightly spaced out from the rest of the text, use {{tlx|`}}.<br /><br /> | ||
| Line 16: | Line 14: | ||
== Technical note == | == Technical note == | ||
When inserting an apostrophe before a lowercase "s", it is recommended to use {{tlx|'s}} instead. For example: | The templates {{tlx|'|plaincode}} and {{plaincode|<nowiki>{{'}}</nowiki>}} are used in the ''opposite'' manner compared to on Wikipedia: On Wikipedia {{tlx|`|plaincode}} adds a space before the apostrophe and {{plaincode|<nowiki>{{'}}</nowiki>}} does not, whereas on the Xenharmonic Wiki {{plaincode|<nowiki>{{'}}</nowiki>}} adds spacing and {{tlx|`|plaincode}} does not. | ||
When inserting an apostrophe before a lowercase "s", it is recommended to use {{tlx|'s|plaincode}} instead. For example: | |||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
Revision as of 17:51, 16 January 2026
This template uses the decimal code for the apostrophe or single-quote character. When taking the possessive of titles, or when indicating the derivative of a function, this template prevents an apostrophe or single quote from becoming mistakenly interpreted with adjacent bold (''') or italic ('') Wiki markup.
To insert an apostrophe and have it slightly spaced out from the rest of the text, use {{`}}.
| You type | You get |
|---|---|
'''Sara Bareilles'''{{'}} latest album
|
Sara Bareilles' latest album |
Technical note
The templates {{'}} and {{'}} are used in the opposite manner compared to on Wikipedia: On Wikipedia {{`}} adds a space before the apostrophe and {{'}} does not, whereas on the Xenharmonic Wiki {{'}} adds spacing and {{`}} does not.
When inserting an apostrophe before a lowercase "s", it is recommended to use {{'s}} instead. For example:
The '''Illiad'''{{'s}} vocabulary
| Template call* | Output** | HTML alternative*** |
|---|---|---|
{{!}} (m) |
| | | or {{pipe}}
|
{{=}} (m) |
= | =
|
{{!!}} |
|| | ||
|
{{!(}} |
[ | [ or {{lbrack}}
|
{{)!}} |
] | ] or {{rbrack}}
|
{{!((}} |
[[ | [[
|
{{))!}} |
]] | ]]
|
{{(}} |
{ | {
|
{{)}} |
} | }
|
{{((}} |
{{ | {{
|
{{))}} |
}} | }}
|
{{(((}} |
{{{ | {{{
|
{{)))}} |
}}} | }}}
|
{{(!}} |
{| | {|
|
{{!+}} |
|+ | |+
|
{{!-}} |
|- | |-
|
{{!)}} |
|} | |}
|
{{'}} |
' | '
|
{{colon}} |
: | :
|
{{^(}} |
< | < or <
|
{{)^}} |
> | > or >
|
| This table: View • Talk • Edit | ||
* m for magic word
** Delayed interpretation as Wiki markup
*** Never interpreted as Wiki markup
