Revision as of 15:48, 11 December 2015 editTrappist the monk (talk | contribs)Administrators479,807 editsm →Strange: too many indents;← Previous edit | Revision as of 15:52, 11 December 2015 edit undoIceWelder (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, File movers, New page reviewers, Pending changes reviewers, Rollbackers, Template editors125,099 editsNo edit summaryNext edit → | ||
Line 38: | Line 38: | ||
:::the final transclusion was (invisible characters in parentheses): | :::the final transclusion was (invisible characters in parentheses): | ||
::::<code><nowiki>&zwj;&zwj;(hsp)'(zws)&zwj;s</nowiki></code> | ::::<code><nowiki>&zwj;&zwj;(hsp)'(zws)&zwj;s</nowiki></code> | ||
:::Were it up to me I would suggest this might be the correct form for {{tld|'s}}: | :::Were it up to me I would suggest this might be the correct form for {{tld|'s}}: | ||
::::<code><nowiki>&zwj;&#8202;'&zwj;s</nowiki></code> | ::::<code><nowiki>&zwj;&#8202;'&zwj;s</nowiki></code> | ||
Line 44: | Line 43: | ||
::::''T''{{'s/sandbox}} (<code><nowiki>''T''{{'s/sandbox}}</nowiki></code> | ::::''T''{{'s/sandbox}} (<code><nowiki>''T''{{'s/sandbox}}</nowiki></code> | ||
:::Here is a test. All words are separated with {{tld|'s/sandbox}} except the first which is has a space after {{tld|'s/sandbox}}. The string should only break between the first and second words: | :::Here is a test. All words are separated with {{tld|'s/sandbox}} except the first which is has a space after {{tld|'s/sandbox}}. The string should only break between the first and second words: | ||
::::Lorem{{'s/sandbox}} |
::::Lorem{{'s/sandbox}}Ipsum{{'s/sandbox}}Dolor{{'s/sandbox}}Sit{{'s/sandbox}}Amet{{'s/sandbox}}Consectetur{{'s/sandbox}}Adipisicing{{'s/sandbox}}Elit{{'s/sandbox}}Sed{{'s/sandbox}}Do{{'s/sandbox}}Eiusmod{{'s/sandbox}}Tempor{{'s/sandbox}}Incididunt{{'s/sandbox}}Ut{{'s/sandbox}}Labore{{'s/sandbox}} | ||
::::Et{{'s/sandbox}}Dolore{{'s/sandbox}}Magna{{'s/sandbox}}Aliqua{{'s/sandbox}}Ut{{'s/sandbox}}Enim{{'s/sandbox}}Ad{{'s/sandbox}}Minim{{'s/sandbox}}Veniam{{'s/sandbox}}Quis{{'s/sandbox}}Nostrud{{'s/sandbox}}Exercitation{{'s/sandbox}}Ullamco{{'s/sandbox}}Laboris{{'s/sandbox}}Nisi{{'s/sandbox}}Ut{{'s/sandbox}}Aliquip{{'s/sandbox}}Ex{{'s/sandbox}}Ea{{'s/sandbox}}Commodo{{'s/sandbox}}Consequat{{'s/sandbox}}Duis{{'s/sandbox}}Aute{{'s/sandbox}}Irure{{'s/sandbox}}Dolor{{'s/sandbox}}In | |||
:::—] (]) 13:29, 11 December 2015 (UTC) | :::—] (]) 13:29, 11 December 2015 (UTC) | ||
::::I've removed both instances of <code>&zwj;</code> from {{tlx|'s/sandbox}} so that the transclusion is just: | ::::I've removed both instances of <code>&zwj;</code> from {{tlx|'s/sandbox}} so that the transclusion is just: | ||
:::::<code>&#8202;'s</code> | :::::<code>&#8202;'s</code> | ||
::::The above test still works | ::::The above test still works | ||
::::—] (]) 14:41, 11 December 2015 (UTC) | ::::—] (]) 14:41, 11 December 2015 (UTC) | ||
:::::Thank you Trappist, I learned something. But for me your test does break before the 's. I am using Firefox. ] (]) 15:20, 11 December 2015 (UTC) | :::::Thank you Trappist, I learned something. But for me your test does break before the 's. I am using Firefox. ] (]) 15:20, 11 December 2015 (UTC) | ||
:::::Though it does not trigger that CSS bug. ] (]) 15:25, 11 December 2015 (UTC) | :::::Though it does not trigger that CSS bug. ] (]) 15:25, 11 December 2015 (UTC) | ||
::::::What CSS bug? This template hasn't used CSS since 2008 (removed at {{diff|Template:%27s|240932290|236465851|this edit}}). | ::::::What CSS bug? This template hasn't used CSS since 2008 (removed at {{diff|Template:%27s|240932290|236465851|this edit}}). | ||
::::::I've restored the leading <code>&zwj;</code> to {{tlx|'s/sandbox}} so the transclusion is now: | ::::::I've restored the leading <code>&zwj;</code> to {{tlx|'s/sandbox}} so the transclusion is now: | ||
:::::::<code>&zwj;&#8202;'s</code> | :::::::<code>&zwj;&#8202;'s</code> | ||
::::::The Lorem'sIpsum's test above works in Google. Does it work in Firefox? Anyone using browsers where it doesn't work? | ::::::The Lorem'sIpsum's test above works in Google. Does it work in Firefox? Anyone using browsers where it doesn't work? | ||
::::::—] (]) 15:43, 11 December 2015 (UTC) | ::::::—] (]) 15:43, 11 December 2015 (UTC) | ||
::As discussed below, the template should be changed to <code>&#8202&#39;s</code>, thus, why don't you try it on the sandbox. ] (]) 15:51, 11 December 2015 (UTC) | |||
::Since the {{'}} template still uses zero width spaces, I'd suggest to 1) Turn the {{tl|'}} template into <code>&#39;</code>, which produces the apostrophe just fine without any complications, then 2) Make the {{tl|`}} template redirect to {{'}}, since it does the exact same thing, and 3) Make this template independent by turning it into <code>&#39;s</code>, which also works fine. (1 and 2 have also been stated on the {{tl|'}} talkpage) ] (]) 08:09, 11 December 2015 (UTC) | ::Since the {{'}} template still uses zero width spaces, I'd suggest to 1) Turn the {{tl|'}} template into <code>&#39;</code>, which produces the apostrophe just fine without any complications, then 2) Make the {{tl|`}} template redirect to {{'}}, since it does the exact same thing, and 3) Make this template independent by turning it into <code>&#39;s</code>, which also works fine. (1 and 2 have also been stated on the {{tl|'}} talkpage) ] (]) 08:09, 11 December 2015 (UTC) | ||
:::That sounds good. It seems to me that proper kerning is the browser's job. I understand that many browsers are incapable of doing this right, but adding our own HSP guarantees that it will be impossible for a correctly behaving browser to do the kerning itself. Making these templates simply insert their corresponding characters with no extra space or space-like characters would be fine. ] (]) 12:19, 11 December 2015 (UTC) | :::That sounds good. It seems to me that proper kerning is the browser's job. I understand that many browsers are incapable of doing this right, but adding our own HSP guarantees that it will be impossible for a correctly behaving browser to do the kerning itself. Making these templates simply insert their corresponding characters with no extra space or space-like characters would be fine. ] (]) 12:19, 11 December 2015 (UTC) | ||
::::For maximum compatiblity, I'd suggest to turn {{tl|'}} into <code>&#8202&#39;</code> (&#8202 being the hair space and &#39; the apostrophe) and {{tl|'s}} either into <code><nowiki>{{'}}s</nowiki></code> (dependent) or into <code>&#8202&#39;s</code> (independent). Then, again, {{tl|`}} should redirect to {{tl|'}}, since it produces the same character, so that those are covered as well and that there is no need for to make a bot do it. ] (]) 14:14, 11 December 2015 (UTC) | ::::For maximum compatiblity, I'd suggest to turn {{tl|'}} into <code>&#8202&#39;</code> (&#8202 being the hair space and &#39; the apostrophe) and {{tl|'s}} either into <code><nowiki>{{'}}s</nowiki></code> (dependent) or into <code>&#8202&#39;s</code> (independent). Then, again, {{tl|`}} should redirect to {{tl|'}}, since it produces the same character, so that those are covered as well and that there is no need for to make a bot do it. ] (]) 14:14, 11 December 2015 (UTC) | ||
::Hunsters edit fixed the CSS issue. It doesn't produces unicode anymore. The strange combination was probably triggering a browser bug. I would still like to understand how the HSP and ZWS got in there. Thank you all! ] (]) 12:35, 11 December 2015 (UTC) | ::Hunsters edit fixed the CSS issue. It doesn't produces unicode anymore. The strange combination was probably triggering a browser bug. I would still like to understand how the HSP and ZWS got in there. Thank you all! ] (]) 12:35, 11 December 2015 (UTC) |
Revision as of 15:52, 11 December 2015
Delete?
As this is now unused (except in examples), should a request to delete this be submitted so that it doesn't get confused with the standard solution at {{'}}. At the very least, I think that this one should probably be marked with the {{tdeprecated}} tag. --- Barek (talk • contribs) - 16:49, 10 September 2008 (UTC)
- Comment: Over the past several months, this template has begun to get used in various articles ... so no point deprecating it now that it's in use again. --- Barek (talk • contribs) - 19:50, 29 January 2009 (UTC)
Line break
I was surprised to see my browser insert a line break between an italicized ship name and this template. Shouldn't they keep together? This was at USS Indianapolis (CA-35), although obviously your browser is unlikely to break lines at the same place mine does. Kendall-K1 (talk) 04:48, 31 July 2015 (UTC)
- It's a useless, unnecessary template. For the reason you describe, I remove all instances of it when I encounter it and replace it with
's
. By using HTML instead of the template, it also reduces processing overhead on the server. — Quicksilver 14:55, 11 August 2015 (UTC)
- Thanks, will do. I see that Template:' has been fixed to keep with the previous text, but that doesn't seem to always work for me. Kendall-K1 (talk) 16:39, 11 August 2015 (UTC)
‍
The {{'}}
template already contains ‍
. Is there a reason that this template also begins with ‍
?
{{'}}
produces:<span class="nowrap" style="padding-left:0.1em;">'</span>
{{'s}}
produces:<span class="nowrap" style="padding-left:0.1em;">'s</span>
—Trappist the monk (talk) 14:53, 8 December 2015 (UTC)
Strange
I just noticed this template for the first time because it was used in DYK. It renders really strange !!! Try saving the page and look at the HTML. It produces the following Unicode: e2 80 8d e2 80 8d e2 80 8a 27 e2 80 8b e2 80 8d 73. That is: ZERO WIDTH JOINER, ZERO WIDTH JOINER, HSP (whatever that is ???), ', ZERO WIDTH SPACE, ZERO WIDTH JOINER, s. The product of this strange combination does not honor the CSS I have set (wrong font and font size). I checked, and it does this wherever it is used. Does anyone know what is going on ? And is the template really worth the trouble? 80.132.94.160 (talk) 02:58, 11 December 2015 (UTC)
- Found HSP. It's "HAIR SPACE", uhm. 80.132.94.160 (talk) 03:02, 11 December 2015 (UTC)
- You might want to read the previous sections in this talk page. Kendall-K1 (talk) 03:07, 11 December 2015 (UTC)
- I did. That explains the redundant ZWJs but not the rest of the strange behavior. 80.132.94.160 (talk) 03:11, 11 December 2015 (UTC)
- OMFG, 5955 transclusions. I guess deletion of this template is not an option. Does anyone know a template-wizard who could fix it? 80.132.94.160 (talk) 03:18, 11 December 2015 (UTC)
- I did. That explains the redundant ZWJs but not the rest of the strange behavior. 80.132.94.160 (talk) 03:11, 11 December 2015 (UTC)
- You might want to read the previous sections in this talk page. Kendall-K1 (talk) 03:07, 11 December 2015 (UTC)
- Taking out the ZERO WIDTH SPACE after the ' fixes the CSS problem. I have no idea where the ZWS is coming from in the first place,it is neither in this template nor in template '. 80.132.94.160 (talk) 03:31, 11 December 2015 (UTC)
- I suggest deprecation followed by a bot to nuke all uses. It doesn't seem to do what it claims to, and no one knows what it's good for. Kendall-K1 (talk) 04:01, 11 December 2015 (UTC)
- This template was created long ago to provide a simple solution for adding possessives to italicised words. Sometimes writing ''Test'''s does not play well in the wikicode. However, there is an issue with "Test" and " 's " line-wrapping separately, which is why I added the zero-width joiners. For some bizarre reason, what worked when I added them no longer does, which makes no sense, but I've removed the zero-width joiners from both this and the " ' " template. I do not know where the HSP and ZWS is coming from, but I do believe deleting these templates would not be the best option. — Huntster (t @ c) 04:21, 11 December 2015 (UTC)
- The hair space character is the first character in the
{{'}}
template's transclusion and is there so that the apostrophe isn't too close to a preceding tall character, compare:- T' (
''T'''
) - T' (
''T''{{'}}
)
- T' (
- I am not sure why the zero-width space is the last character in the
{{'}}
transclusion, but that is what allows line-breaks. So, when this template was:‍{{'}}‍s
- the final transclusion was (invisible characters in parentheses):
‍‍(hsp)'(zws)‍s
- Were it up to me I would suggest this might be the correct form for
{{'s}}
:‍ '‍s
- I have a mockup of this in
{{'s/sandbox}}
:- T's (
''T''{{'s/sandbox}}
- T's (
- Here is a test. All words are separated with
{{'s/sandbox}}
except the first which is has a space after{{'s/sandbox}}
. The string should only break between the first and second words:- Lorem'sIpsum'sDolor'sSit'sAmet'sConsectetur'sAdipisicing'sElit'sSed'sDo'sEiusmod'sTempor'sIncididunt'sUt'sLabore's
- Et'sDolore'sMagna'sAliqua'sUt'sEnim'sAd'sMinim'sVeniam'sQuis'sNostrud'sExercitation'sUllamco'sLaboris'sNisi'sUt'sAliquip'sEx'sEa'sCommodo'sConsequat'sDuis'sAute'sIrure'sDolor'sIn
- —Trappist the monk (talk) 13:29, 11 December 2015 (UTC)
- I've removed both instances of
‍
from{{'s/sandbox}}
so that the transclusion is just: 's
- The above test still works
- —Trappist the monk (talk) 14:41, 11 December 2015 (UTC)
- Thank you Trappist, I learned something. But for me your test does break before the 's. I am using Firefox. 80.132.105.11 (talk) 15:20, 11 December 2015 (UTC)
- Though it does not trigger that CSS bug. 80.132.105.11 (talk) 15:25, 11 December 2015 (UTC)
- What CSS bug? This template hasn't used CSS since 2008 (removed at this edit).
- I've restored the leading
‍
to{{'s/sandbox}}
so the transclusion is now:‍ 's
- The Lorem'sIpsum's test above works in Google. Does it work in Firefox? Anyone using browsers where it doesn't work?
- —Trappist the monk (talk) 15:43, 11 December 2015 (UTC)
- I've removed both instances of
- The hair space character is the first character in the
- As discussed below, the template should be changed to
 's
, thus, why don't you try it on the sandbox. Lordtobi (talk) 15:51, 11 December 2015 (UTC)
- Since the ' template still uses zero width spaces, I'd suggest to 1) Turn the {{'}} template into
'
, which produces the apostrophe just fine without any complications, then 2) Make the {{`}} template redirect to ', since it does the exact same thing, and 3) Make this template independent by turning it into's
, which also works fine. (1 and 2 have also been stated on the {{'}} talkpage) Lordtobi (talk) 08:09, 11 December 2015 (UTC)- That sounds good. It seems to me that proper kerning is the browser's job. I understand that many browsers are incapable of doing this right, but adding our own HSP guarantees that it will be impossible for a correctly behaving browser to do the kerning itself. Making these templates simply insert their corresponding characters with no extra space or space-like characters would be fine. Kendall-K1 (talk) 12:19, 11 December 2015 (UTC)
- For maximum compatiblity, I'd suggest to turn {{'}} into
 '
(  being the hair space and ' the apostrophe) and {{'s}} either into{{'}}s
(dependent) or into 's
(independent). Then, again, {{`}} should redirect to {{'}}, since it produces the same character, so that those are covered as well and that there is no need for to make a bot do it. Lordtobi (talk) 14:14, 11 December 2015 (UTC)
- For maximum compatiblity, I'd suggest to turn {{'}} into
- That sounds good. It seems to me that proper kerning is the browser's job. I understand that many browsers are incapable of doing this right, but adding our own HSP guarantees that it will be impossible for a correctly behaving browser to do the kerning itself. Making these templates simply insert their corresponding characters with no extra space or space-like characters would be fine. Kendall-K1 (talk) 12:19, 11 December 2015 (UTC)
- Hunsters edit fixed the CSS issue. It doesn't produces unicode anymore. The strange combination was probably triggering a browser bug. I would still like to understand how the HSP and ZWS got in there. Thank you all! 80.132.105.11 (talk) 12:35, 11 December 2015 (UTC)
- Since the ' template still uses zero width spaces, I'd suggest to 1) Turn the {{'}} template into