User:Jokes Free4Me/Sandbox

Testing reference markers cross-browsers

  • Most complete test-case, using refs and no punctuationfirst ref textsecond ref textthird ref textfourth ref textfifth ref textsixth ref text

  • Most complete test-case, using refs after a semi-colon;first ref textsecond ref textthird ref textfourth ref textfifth ref textsixth ref text

  • Most complete test-case, using templates and no punctuation{{sfn|first}}{{sfn|second}}{{sfn|third}}{{sfn|fourth}}{{sfn|fifth}}{{sfn|sixth}}

  • Minimal test-case, using a single ref and no punctuationstandalone

  • etc...

= Results =

class="wikitable"

! rowspan="3" | Location

! colspan="14" | Can be separated?

colspan="7" | Windows

! colspan="3" | Linux

! colspan="4" | Mac

IE8IE9IE1xChromeFirefoxOperaSafari...ChromeFirefoxSafariChromeFirefoxOpera
word - first ref (adjacent)yesyesyesnononono
word - first ref (with punctuation)yesyesyesnoyesnono
first - second refnoyesyesnodependsyesno
inner - inner refnoyesyesnodependsyesno
inner - last refnoyesyesnonoyesno

Firefox seems to create groups of usually two elements (or three for the last group if needed):

  • if there's no separation between the preceding word and the 1st ref:
  • word+1st, 2nd+3rd, 4th+5th, ..., [2q]th+[2q+1]th.
  • word+1st, 2nd+3rd, 4th+5th, ..., [2q]th+[2q+1]th+[2q+2]th.
  • if the word before the 1st ref is separated (either by white-space or by punctuation):
  • 1st+2nd, 3rd+4th, 5th+6th, ..., [2q-1]th+[2q]th.
  • 1st+2nd, 3rd+4th, 5th+6th, ..., [2q-1]th+[2q]th+[2q+1]th.