Predloga:Age in years
Videz
0
| Predloga se uporablja na 3300 straneh, zato bo vsaka njena sprememba takoj zelo opazna. Prosimo, da vse spremembe, ki jih želite uvesti, pred uvedbo preizkusite na podstraneh predloge (/peskovnik in /testniprimeri) ali na svojih lastnih podstraneh. Pred spreminjanjem te predloge se o želenih spremembah rajši pogovorite na pogovorni strani. |
| Uporablja Lua: |
Usage
[uredi kodo]{{Age in years|2000}} yields 25–26.
{{Age in years|2000|2015}} yields 14–15.
{{Age in years|2000-06-01|2015-06-01}} yields 15.
{{Age in years|2000-06-02|2015-06-01}} yields 14.
{{Age in years|2000-01-01}} yields 26.
{{Age in years|2000-12-31}} yields 25.
Note that the template provides an age range if a year and not a full date is given: during the year 2015, someone born in 2000 is either 14 or 15 years old, depending on whether they have passed their birth date in the later year. If no end date is given then the current date is used.
See also
[uredi kodo]- Rojstvo, smrt, starost
- {{BirthDeathAge}} – kombinacija funkcij {{Birth-date}}, {{Datum rojstva}}, {{Datum rojstva in starost}}, {{Leto rojstva in starost}}, {{Death-date}}, {{Datum smrti}}, {{Datum smrti in starost}}, {{Leto smrti in starost}}
- {{Datum rojstva}} – izpiše datum in povezane skrite meta podatke
- {{Datum rojstva in starost}} – enako kot {{Datum rojstva}}, razen da se izza datuma rojstva izpiše tudi "(## let)"
- {{Datum rojstva in starost2}} – izpiše starost za določeni datum in datum rojstva, "## let (datum rojstva)"
- {{Birth-date and age}} – display birth date and age, accepts dates as text (15 June 1950; June 15, 1950; June 1950; etc.)
- {{Leto rojstva in starost}} – leto rojstva in približna starost
- {{Birth based on age as of date}} – displays approximate birth year and current age; used when a dated reference mentions the age of a person as of the date of publication
- {{Birth date based on age at death}} – displays approximate birth year based on age at death (useful if exact birth date is not known, but age at death is)
- {{Datum smrti}} – izpiše datum in povezane skrite meta podatke
- {{Datum smrti in starost}} – enako kot {{Datum smrti}}, razen da se izza datuma smrti izpiše tudi "(## let)"
- {{Death-date and age}} – display death date and age, accepts date as text (15 June 1950; June 15, 1950; June 1950; etc.)
- {{Death date and given age}} – displays death date and specified age (useful if exact birth date is not known, but age at death is)
- {{Leto smrti in starost}} – leto smrti in približna starost ob smrti
- Samo starost
- {{Starost}} – starost, ki temelji na celih letih med dvema datumoma (ali med določenim in današnjim datumom)
- {{Starost nts}} – kot {{Starost}}, vendar pravilno razvrsti v razvrstljivih tabelah
- {{Age as of date}} – current age in years, based on a known age as of a specified date
- {{Starost v letih in dnevih}} – cela leta in dnevi med dvema datumoma (določen in trenutni datum)
- {{Starost v letih in dnevih kot besedilo}} – za uporabo v besedilu (uporablja "in" namesto vejice)
- {{Starost v letih, mesecih in dnevih}} – celotna leta, meseci in dnevi med dvema datumoma (ali določenim datumom in trenutnim datumom)
- {{Starost v dnevih}} – starost v dnevih med dvema datumoma (ali določenim in trenutnim datumom)
- {{Starost v dnevih nts}} – starost v dnevih; števila se bodo v tabelah pravilno sortirala