Predloga:Starost v tednih
Videz
Uporablja Lua: |
This template returns the number of weeks that have elapsed between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today.
Usage
[uredi kodo]Each date can be entered in a single parameter, or each date can be entered as three parameters: year, month, day.
{{age in weeks|month1=6|day1=14|year1=1946|month2=8|day2=19|year2=1946}}
→ 9{{age in weeks|1946|6|14|1946|8|19}}
→ 9{{age in weeks|1946-6-14|1946-8-19}}
→ 9{{age in weeks|14 June 1946|Aug 19, 1946}}
→ 9{{age in weeks|month1=11|day1=07|year1=2012}}
→ 628{{age in weeks|7 November 2012}}
→ 628
An error is shown if an entered date is not valid (1900 was not a leap year).
{{age in weeks|31 January 1899|29 February 1900}}
→ Error: Second date should be year, month, day
- 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