Template:'/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
{{dochead}}{{wikipedia}} | {{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 | 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. | ||
Sometimes, when placing an apostrophe after ''italic'' text, apostrophes may collide with certain characters such as lowercase ''d''{{nbhsp}}{{'}}s and ''l''{{nbhsp}}{{'}}s. In these cases, it is best to use {{tlx|nbhsp|plaincode}} place a small amount of space before the apostrophe to avoid such collisions. | |||
<br /><br /> | |||
{| class="wikitable" style="text-align: center; margin: auto;" | |||
|- | |||
! You type | |||
! You get | |||
|- | |||
| <code><nowiki>''Z''{{'}}(</nowiki>{{nowrap|<nowiki>''x'' + ''y''</nowiki>}})</code> | |||
| ''Z''{{'}}({{nowrap|''x'' + ''y''}}) | |||
|- | |||
| <code>The <nowiki>''Illiad''{{nbhsp}}{{'}}s</nowiki> vocabulary</code> | |||
| The ''Illiad''{{nbhsp}}{{'}}s vocabulary | |||
|} | |||
<br /><hr /> | |||
{{esctl}} | {{esctl}} | ||
Revision as of 16:48, 24 December 2024
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.
Sometimes, when placing an apostrophe after italic text, apostrophes may collide with certain characters such as lowercase d 's and l 's. In these cases, it is best to use {{nbhsp}} place a small amount of space before the apostrophe to avoid such collisions.
| You type | You get |
|---|---|
''Z''{{'}}(''x'' + ''y'')
|
Z'(x + y) |
The ''Illiad''{{nbhsp}}{{'}}s vocabulary
|
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
