Birth, death and age templates |
|---|
|
{{#if:Birth, death, age
| | Birth, death, age |
|---|
| | Template | {{safesubst:#if:Description / use
|Description / use
|110%
}}
| | {{BirthDeathAge}} | Combines functions of {{birth date}}, {{birth-date}}, {{birth date and age}}, {{birth year and age}}, {{death date}}, {{death-date}}, {{death date and age}} and {death year and age}}.
| | {{birth date}} | To display a birth date and related hidden metadata.
| | {{birth-date}} |
| | {{birth date and age}} | {{{{#if:birth date|birth date| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with suffix "(age N)".
| | {{birth date and age2}} | {{{{#if:birth date and age|birth date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} plus age as of a specified date.
| | {{birth-date and age}} | As {{{{#if:birth date and age|birth date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
| | {{birth year and age}} | Year of birth and approximate age.
| | {{Birth based on age as of date}} | To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person).
| | {{Birth date based on age at death}} | To display approximate birth year based on age at death.
|
| Template | {{safesubst:#if:Description / use
|Description / use
|110%
}}
| | {{death date}} | To display a death date and related hidden metadata.
| | {{death-date}} |
| | {{death date and age}} | {{{{#if:death date|death date| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with suffix "(aged N)".
| | {{death-date and age}} | As {{{{#if:death date and age|death date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
| | {{death date and given age}} | To display a death date and specified age.
| | {{death year and age}} | To display a year of and approximate age at death.
|
|
| | Template | {{safesubst:#if:Description / use
|Description / use
|110%
}}
| | {{BirthDeathAge}} | Combines functions of {{birth date}}, {{birth-date}}, {{birth date and age}}, {{birth year and age}}, {{death date}}, {{death-date}}, {{death date and age}} and {death year and age}}.
| | {{birth date}} | To display a birth date and related hidden metadata.
| | {{birth-date}} |
| | {{birth date and age}} | {{{{#if:birth date|birth date| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with suffix "(age N)".
| | {{birth date and age2}} | {{{{#if:birth date and age|birth date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} plus age as of a specified date.
| | {{birth-date and age}} | As {{{{#if:birth date and age|birth date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
| | {{birth year and age}} | Year of birth and approximate age.
| | {{Birth based on age as of date}} | To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person).
| | {{Birth date based on age at death}} | To display approximate birth year based on age at death.
|
| Template | {{safesubst:#if:Description / use
|Description / use
|110%
}}
| | {{death date}} | To display a death date and related hidden metadata.
| | {{death-date}} |
| | {{death date and age}} | {{{{#if:death date|death date| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with suffix "(aged N)".
| | {{death-date and age}} | As {{{{#if:death date and age|death date and age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
| | {{death date and given age}} | To display a death date and specified age.
| | {{death year and age}} | To display a year of and approximate age at death.
|
}} |
|
{{#if:Age only
| | Age only |
|---|
| | Template | {{safesubst:#if:Description / use
|Description / use
|110%
}}
| | {{age in years, months and days}} | Number of complete years, months and days between two dates.
| | {{age in years and months}} | Number of complete years and remaining months between two dates.
| | {{age in years and days}} | Number of complete years and remaining days between two dates.
| | {{age in days}} | Age in days between two dates.
| | {{age in days nts}} | {{{{#if:age in days|age in days| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with output formatted for use in sortable tables.
|
| Template | {{safesubst:#if:Description / use
|Description / use
|110%
}}
| | {{age}} | Age based on number of complete years between two dates.
| | {{age nts}} | {{{{#if:age|age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with output formatted for use in sortable tables.
| | {{age as of date}} | Current age (in years) from a known age at a specified date.
|
|
| | Template | {{safesubst:#if:Description / use
|Description / use
|110%
}}
| | {{age in years, months and days}} | Number of complete years, months and days between two dates.
| | {{age in years and months}} | Number of complete years and remaining months between two dates.
| | {{age in years and days}} | Number of complete years and remaining days between two dates.
| | {{age in days}} | Age in days between two dates.
| | {{age in days nts}} | {{{{#if:age in days|age in days| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with output formatted for use in sortable tables.
|
| Template | {{safesubst:#if:Description / use
|Description / use
|110%
}}
| | {{age}} | Age based on number of complete years between two dates.
| | {{age nts}} | {{{{#if:age|age| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} with output formatted for use in sortable tables.
| | {{age as of date}} | Current age (in years) from a known age at a specified date.
|
}} |
|
{{#if:Start / end dates
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
{{#if:
| |
|
|
Документација шаблона
{{#if: |Склопива група/секција
Ако, подразумевано, овај шаблон има подешавања за сакривање група/секција („collapsed”) при
почетном приказу, користити
{{{{#if:Birth, death and age templates |Birth, death and age templates | tlc|...}}{{#ifeq:{{{1}}}|{{{1}}}| |{{{1}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} да би се исти приказао отворен („expanded”, „uncollapsed”).
| Опција за склопиве групе/секције
- Овај шаблон укључује склопиве групе/секције. Када се први пут прикаже, једна од ових група/секција може да се прикаже (опција „expanded”) док остале могу да с намером остану сакривене (опција „collapsed”) а да се прикаже само наслов. Да{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}би{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}се{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}ово{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}омогућило, користити параметар |име где је име једно од имена коришћених за идентификују група/секција (без наводника): - {{#if: |На пример:
{{{{#if:Birth, death and age templates |Birth, death and age templates | tlc|...}}{{#ifeq:{{{example}}}|{{{example}}}| |{{{example}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} }}
{{#if: |
- Група/секција са именом
{{{default}}} одређено је да буде приказана при почетном приказу односно учитавању странице.
}} }}
Почетни приказ
Да бисте подесили почетни приказ шаблона, потребно је користити параметар |{{SAFESUBST:#if:state|state=}}:
|{{SAFESUBST:#if:state|state=}}collapsed: {{{{{{#if: | |BASE}}PAGENAME}}|state=collapsed}} да би се шаблон приказао затворен, тј. да сви делови осим линије наслова буду сакривени
|{{SAFESUBST:#if:state|state=}}expanded: {{{{{{#if: | |BASE}}PAGENAME}}|state=expanded}} да би се шаблон приказао отворен, тј. да комплетан шаблон буде приказан
|{{SAFESUBST:#if:state|state=}}autocollapse: {{{{{{#if: | |BASE}}PAGENAME}}|state=autocollapse}}
- да би се шаблон приказао затворен ако постоји {{navbar}}, {{sidebar}} или нека друга табела на страници са атрибутом collapsible
- да би се шаблон приказао отворен ако нема других склопљивих елемената на страници
Ако параметар
|{{SAFESUBST:#if:state|state=}} није одређен, почетни приказ шаблона онда контролише параметар
|{{SAFESUBST:#if:default|default=}}. За овај шаблон, исти тренутно има вредност
{{#switch:expanded|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}.{{#if:|
|{{SAFESUBST:#if:align|align=}}вредност је такође доступно; овде вредност може да буде right или left, а подразумевано је center
}}{{#if:|:|{{SAFESUBST:#if:title-background|title-background=}}вредност је такође доступно; овде вредност може да буде navbox или color, а подразумевано је none и navbox узима се подразумевана боја навигационе кутије
}}{{#if:|
|{{SAFESUBST:#if:width|width=}}вредност је такође доступно; овде вредност може да буде N [em/%/px] или auto, а подразумевано је 100%
}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template
| шаблон
| šablon = {{#if: |Lua грешка in Модул:Effective_protection_level at line 52: attempt to index field 'ext' (a nil value).
| {{#if: |Шаблон:Pp-move }}
}}
| other
| #default =
}}