Template:'/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 2: | Line 2: | ||
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. | ||
Sometimes, apostrophes may collide with certain characters such as lowercase ''d''{{ | Sometimes, apostrophes may collide with certain characters such as lowercase ''d''{{-'}}s and ''l''{{-'}}s, especially after '''bold''' or ''italic'' text. In such cases, use {{tlx|-'|plaincode}} instead, or {{tlx|nbhsp|plaincode}} to insert a small amount of space before the apostrophe to avoid such collisions. | ||
<br /><br /> | <br /><br /> | ||
| Line 12: | Line 12: | ||
| <code><nowiki>''Z''{{'}}(</nowiki>{{nowrap|<nowiki>''x'' + ''y''</nowiki>}})</code> | | <code><nowiki>''Z''{{'}}(</nowiki>{{nowrap|<nowiki>''x'' + ''y''</nowiki>}})</code> | ||
| ''Z''{{'}}({{nowrap|''x'' + ''y''}}) | | ''Z''{{'}}({{nowrap|''x'' + ''y''}}) | ||
|} | |} | ||
<br /><hr /> | <br /><hr /> | ||
{{esctl}} | {{esctl}} | ||
Revision as of 23:44, 25 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, apostrophes may collide with certain characters such as lowercase dTemplate:-'s and lTemplate:-'s, especially after bold or italic text. In such cases, use {{-'}} instead, or {{nbhsp}} to insert a small amount of space before the apostrophe to avoid such collisions.
| You type | You get |
|---|---|
''Z''{{'}}(''x'' + ''y'')
|
Z'(x + y) |
| 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
