• Domov
  • Naključno
  • Bližnje
  • Prijava
  • Nastavitve
Donate Now If Wikipedia is useful to you, please give today.
  • O Wikipediji
  • Zavrnitve odgovornosti
Wikipedija

Predloga:Tts

  • Jezik
  • Opazuj
  • Uredi stran
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]


Tts stands for Time Table Sorting. It is intended for use in sortable tables of results in athletic events, to ensure that columns of times achieved by athletes will sort correctly.

This template is not needed if all the times in the relevant table are of exactly the same length and format. For example, results of a one-mile race for elite athletes will usually be of the form m:ss.dd (minutes, seconds, decimals of a second). These will sort correctly, without this template's being necessary, provided the seconds have leading zeroes, and the decimals trailing zeroes where necessary.

However, in a longer race, where the results include times both below and above 10 minutes, then times of 10 to 19 minutes will sort before any lower time of 2 minutes and above. A similar problem occurs in tables holding results above and below 1 minute, or above and below 1 hour, or in tables holding results above and below 10 hours.

This template supplies one way to avoid this problem (see "Possible workaround" below for another).

Use

uredi

Just wrap each time in the relevant column with this template, for example {{tts|1:05:10}} . If this template is used, then it must be used on every row of the table.

If times are to be displayed in bold, use {{tts|'''1:05:10'''}} . Note that placing the bolding mark up outside the template will not work.

Formatting

uredi

Times displayed by this template are right-aligned to ensure that hours, minutes, seconds and decimals are neatly aligned within the column.

Possible workaround

uredi

Consider typing leading zeroes, so that all times are of the same length and format. This may be preferable if not many of the results require such leading zeroes, or if there is consensus that results should be presented with leading zeroes.

Limitation

uredi

None of the times should need more than 12 characters to represent its value (this limit could be changed if necessary).

See also

uredi
  • Template:Date table sorting - for sorting dates
  • Template talk:Sort - for a discussion of sorting methods
  • m:Help:Sorting
Zgornja dokumentacija je vključena od Predloga:Tts/dok. (uredi | zgodovina)
Urejevalci lahko eksperimentirajo v peskovnik (ustvari | zrcali) in testniprimeri (ustvari) straneh te predloge.
Prosimo dodajte kategorije v /dok podstran. Podstran tega predloga.
Pridobljeno iz »https://sl.wikipedia.org/w/index.php?title=Predloga:Tts&oldid=5384069«
Zadnja sprememba: 27. oktober 2020, ob 13:21

Jeziki

    • Català
    • English
    • Bahasa Indonesia
    • Română
    • Simple English
    • Tiếng Việt
    Wikipedija
    • Wikimedia Foundation
    • Powered by MediaWiki
    • Čas zadnje spremembe strani: 13:21, 27. oktober 2020.
    • Vsebina je na voljo pod licenco CC BY-SA 4.0, razen če je navedeno drugače.
    • Pravilnik o zasebnosti
    • O Wikipediji
    • Zavrnitve odgovornosti
    • Kodeks ravnanja
    • Razvijalci
    • Statistika
    • O piškotkih
    • Pogoji uporabe
    • Namizno