Predloga:Starost v letih, mesecih, tednih in dnevih
Videz
(Preusmerjeno s strani Predloga:Age in years, months, weeks and days)
This template returns the number of months, weeks and days that have elapsed between two dates.
Usage
[uredi kodo]{{Starost v letih, mesecih, tednih in dnevih |month1 = |day1 = |year1 = |month2 = |day2 = | year2 = }}
Note that all parameters default to the current date, so for example, the second set of parameters can be left out to calculate elapsed time since a past date:
{{Age in years, months, weeks and days |month1 = 1 |day1 = 1 |year1 = 1 }}
→ 2.023 let in 359 dni
Or simply, using the simpler parameter names, compatible with {{Age in years, months and days}}:
{{Age in years, months, weeks and days |month = 1 |day = 1 |year = 1 }}
→ 2.023 let in 359 dni
Alternatively, the first set of parameters can be left out to get the time left until a future date, such as the next Wikipedia Day:
{{Age in years, months, weeks and days |month2 = 1 |day2 = 15 |year2 = 2025 }}
→ Napaka: Napaka v izrazu: Operatorju - manjka operand To ni veljavno število. Prosimo, da o vnosih prebereš dokumentacijo {{Sortiranje številčne tabele}}. let in Napaka: Error: Need valid year. month. day To ni veljavno število. Prosimo, da o vnosih prebereš dokumentacijo {{Sortiranje številčne tabele}}. dni
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