Template:'/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
Documentation page update
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.
The templates {{tlx|'}} and {{tlx|`}} are the ''opposite'' of the ones on Wikipedia: On Wikipedia {{tlx|'}} adds a space before the apostrophe and {{tlx|`}} does not, whereas on the Xenharmonic Wiki {{tlx|`}} adds spacing and {{tlx|'}} does not.


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 14: Line 16:


== Technical note ==
== Technical note ==
When inserting an apostrophe before a lowercase "s", it is recommended to use {{tlx|'s}} instead. For example:
<syntaxhighlight lang="wikitext">
The '''Illiad'''{{'s}} vocabulary
</syntaxhighlight>
<hr />
<hr />
{{esctl}}
{{esctl}}

Revision as of 21:34, 15 January 2026

English Wikipedia has an article on:

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.

The templates {{'}} and {{`}} are the opposite of the ones on Wikipedia: On Wikipedia {{'}} adds a space before the apostrophe and {{`}} does not, whereas on the Xenharmonic Wiki {{`}} adds spacing and {{'}} does not.

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

When inserting an apostrophe before a lowercase "s", it is recommended to use {{'s}} instead. For example:

The '''Illiad'''{{'s}} vocabulary

Template calls for escaping characters
Template call* Output** HTML alternative***
{{!}} (m) | &#124; or {{pipe}}
{{=}} (m) = &#61;
{{!!}} || &#124;&#124;
{{!(}} [ &#91; or {{lbrack}}
{{)!}} ] &#93; or {{rbrack}}
{{!((}} [[ &#91;&#91;
{{))!}} ]] &#93;&#93;
{{(}} { &#123;
{{)}} } &#125;
{{((}} {{ &#123;&#123;
{{))}} }} &#125;&#125;
{{(((}} {{{ &#123;&#123;&#123;
{{)))}} }}} &#125;&#125;&#125;
{{(!}} {| &#123;&#124;
{{!+}} |+ &#124;&#43;
{{!-}} |- &#124;&#45;
{{!)}} |} &#124;&#125;
{{'}} ' &#39;
{{colon}} : &#58;
{{^(}} < &#60; or &lt;
{{)^}} > &#62; or &gt;
This table: ViewTalkEdit

* m for magic word

** Delayed interpretation as Wiki markup

*** Never interpreted as Wiki markup