Template:Infobox
From Iwe
(Difference between revisions)
| Line 1: | Line 1: | ||
| - | + | {{Documentation subpage}} | |
| - | + | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> | |
| - | + | ==Usage== | |
| - | + | This template returns the number of days between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today. | |
| - | + | ||
| - | + | To use, type: | |
| - | + | :<nowiki>{{age in days|month1= |day1= |year1= |month2= |day2= | year2=}}</nowiki> | |
| - | + | ||
| - | + | Or with unnamed parameters: | |
| - | + | :<nowiki>{{age in days|year1|month1|day1|year2|month2|day2}}</nowiki> or | |
| - | + | :<nowiki>{{age in days|year1|month1|day1}}</nowiki> | |
| - | {{ | + | |
| - | </ | + | Examples: |
| + | *<nowiki>{{age in days|2007|5|24|2008|4|23}}</nowiki> gives {{age in days|2007|5|24|2008|4|23}} | ||
| + | *<nowiki>{{age in days|2007|5|24}}</nowiki> gives {{age in days|2007|5|24}} | ||
| + | |||
| + | == See also == | ||
| + | * {{tl|age}} — Age in years | ||
| + | * {{tl|age in years and days}} — Age in years and days | ||
| + | * {{tl|birth date and age}} | ||
| + | * {{tl|Age in days nts}} — Like this template, but will sort correctly in sortable tables. | ||
| + | * {{tl|time ago}} | ||
| + | * [[Wikipedia:Age calculation templates]] | ||
| + | |||
| + | <includeonly><!-- | ||
| + | ++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> | ||
| + | [[Category:Date mathematics templates|{{PAGENAME}}]] | ||
| + | [[Category:Date-computing templates|{{PAGENAME}}]] | ||
| + | |||
| + | {{commons|Template:Age in days}} | ||
| + | |||
| + | [[ar:قالب:Age in days]] | ||
| + | [[be-x-old:Шаблён:Тэрмін у днях]] | ||
| + | [[cs:Šablona:Věk ve dnech]] | ||
| + | [[de:Vorlage:Tagesdifferenz]] | ||
| + | [[es:Plantilla:Edad en días]] | ||
| + | [[dsb:Pśedłoga:Diferenca pó dnjach]] | ||
| + | [[eo:Ŝablono:Tagdiferenco]] | ||
| + | [[fa:الگو:سن به روز]] | ||
| + | [[fr:Modèle:Age en jours]] | ||
| + | [[hsb:Předłoha:Diferenca po dnjach]] | ||
| + | [[is:Snið:Aldur í dögum]] | ||
| + | [[ja:Template:Age in days]] | ||
| + | [[ko:틀:날짜세기]] | ||
| + | [[hu:Sablon:Age in days]] | ||
| + | [[nl:Sjabloon:Aantal dagen]] | ||
| + | [[pt:Predefinição:Idade em dias]] | ||
| + | [[ru:Шаблон:Days between]] | ||
| + | [[sv:Mall:Dagar från idag]] | ||
| + | [[uk:Шаблон:Age in days]] | ||
| + | [[vi:Tiêu bản:Tuổi theo ngày]] | ||
| + | </includeonly> | ||
Revision as of 09:29, 8 October 2012
{{#ifeq: infobox | doc
|
{{
#ifeq: show | show| {{#ifeq:|yes||
| {{{topimage}}}{{#if: | {{{topcaption}}} }} |
| {{{pretitle}}} |
| }}Message box meta-templates |
|---|
| {{{image}}}{{#if: | {{{caption}}} }} |
| {{{above}}} |
| {{{heading1}}} |
|
| {{{heading2}}} |
| {{{content2}}} |
| {{{heading3}}} |
| {{{content3}}} |
| {{{heading4}}} |
| {{{heading5}}} |
| {{{content5}}} |
| {{{heading6}}} |
| {{{content6}}} |
| {{{heading7}}} |
| {{{content7}}} |
| {{{heading8}}} |
| {{{content8}}} |
| {{{heading9}}} |
| {{{content9}}} |
| {{{heading10}}} |
| {{{content10}}} |
| {{{heading11}}} |
| {{{content11}}} |
| {{{heading12}}} |
| {{{content12}}} |
| {{{heading13}}} |
| {{{content13}}} |
| {{{heading14}}} |
| {{{content14}}} |
| {{{heading15}}} |
| {{{content15}}} |
| {{{heading16}}} |
| {{{content16}}} |
| {{{heading17}}} |
| {{{content17}}} |
| {{{heading18}}} |
| {{{content18}}} |
| {{{heading19}}} |
| {{{content19}}} |
| {{{heading20}}} |
| {{{content20}}} |
| {{{heading21}}} |
| {{{content21}}} |
| {{{heading22}}} |
| {{{content22}}} |
| {{{heading23}}} |
| {{{content23}}} |
| {{{heading24}}} |
| {{{content24}}} |
| {{{heading25}}} |
| {{{content25}}} |
| {{{heading26}}} |
| {{{content26}}} |
| {{{heading27}}} |
| {{{content27}}} |
| {{{heading28}}} |
| {{{content28}}} |
| {{{heading29}}} |
| {{{content29}}} |
| {{{heading30}}} |
| {{{content30}}} |
| {{{heading31}}} |
| {{{content31}}} |
| {{{heading32}}} |
| {{{content32}}} |
| {{{heading33}}} |
| {{{content33}}} |
| {{{heading34}}} |
| {{{content34}}} |
| {{{heading35}}} |
| {{{content35}}} |
| {{{below}}} |
| {{#switch: mbox templates
|table={ class="wikitable" !Comenius OSM and Tourism !Sl: Life Long Learning Mapping Project !Ro: Life Long Learning Mapping Project !Pt:Life Long Learning Mapping Project !Tr: Life Long Learning Mapping Project !DE: Life Long Learning Mapping Project } |line=Comenius - To boost local and international tourism with OpenStreetMap - BoostOSM
{ class="center" - style="width:16%;vertical-align:bottom;" File:Merge.png } |small=Template:Navigation bar | #default =Template:Navigation bar }}
|
}}{{
#if:
|
| {{#ifexist:Template:Infobox|[[Category:{{
#switch: Template
| Template = Template
| User = User
| #default = Wikipedia
}} documentation pages]]|}}
}}
| }}
Usage
This template returns the number of days between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today.
To use, type:
- {{age in days|month1= |day1= |year1= |month2= |day2= | year2=}}
Or with unnamed parameters:
- {{age in days|year1|month1|day1|year2|month2|day2}} or
- {{age in days|year1|month1|day1}}
Examples:
- {{age in days|2007|5|24|2008|4|23}} gives {{#invoke:age|age_generic|template=age_days}}
- {{age in days|2007|5|24}} gives {{#invoke:age|age_generic|template=age_days}}
See also
- {{age}} — Age in years
- {{age in years and days}} — Age in years and days
- {{birth date and age}}
- {{Age in days nts}} — Like this template, but will sort correctly in sortable tables.
- {{time ago}}
- Wikipedia:Age calculation templates
