Template:'s: Difference between revisions

m
Protected "Template:'s": High traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
(Created page with "'<noinclude> An apostrophe. Used when you want an actual apostrophe, but MediaWiki markup thinks your apostrophe is part of an italics or bold indicator. Example: <code><now...")
 
m (Protected "Template:'s": High traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'<noinclude>
<span class="nowrap" style="padding-left:0.1em;">&#39;s</span><noinclude>


An apostrophe. Used when you want an actual apostrophe, but MediaWiki markup thinks your apostrophe is part of an italics or bold indicator.
==Info==
An apostrophe and an s. Used when you want to add <code>'s</code> to something, but MediaWiki markup thinks the apostrophe is part of an italics or bold indicator.


Example: <code><nowiki>''Pikmin 2'''s leaders and ''Pikmin 3'''s enemies.</nowiki></code> results in:
==Example==
:''Pikmin 2'''s leaders and ''Pikmin 3'''s enemies.
The MediaWiki code <code><nowiki>''Pikmin 2'''s leaders and ''Pikmin 3'''s enemies</nowiki></code> results in:
which is incorrect. To fix this with the template, add it like this: <code><nowiki>''Pikmin 2'' and ''Pikmin 3''{{'}}s enemies.</nowiki></code>.
:''Pikmin 2'''s leaders and ''Pikmin 3'''s enemies
which is incorrect. To fix this problem with this template, add it like this: <code><nowiki>''Pikmin 2''{{'s}} leaders and ''Pikmin 3''{{'s}} enemies</nowiki></code>, which results in:
:''Pikmin 2''{{'s}} leaders and ''Pikmin 3''{{'s}} enemies
which is correct.


[[Category:Inline templates]]
[[Category:Inline templates]]</noinclude>
 
</noinclude>