Template:Birth date and age/doc: Difference between revisions

    From Nonbinary Wiki
    (add documentation)
    (→‎Usage: add nowiki)
    Line 3: Line 3:
    Returns a person's date of birth and his/her age .
    Returns a person's date of birth and his/her age .


    Syntax: {{tl|Birth date and age|year of birth|month of birth|day of birth}}
    Syntax: <nowiki>{{Birth date and age|year of birth|month of birth|day of birth}}</nowiki>


    Example:
    Example:


    {{tl|Birth date and age|1993|2|24}} returns {{Birth date and age|1993|2|24}}
    <nowiki>{{Birth date and age|1993|2|24}}</nowiki> returns {{Birth date and age|1993|2|24}}


    '''Note:''' The template will appear broken when the parameters are left blank (as seen above).
    '''Note:''' The template will appear broken when the parameters are left blank (as seen above).

    Revision as of 00:26, 4 April 2007

    Usage

    Returns a person's date of birth and his/her age .

    Syntax: {{Birth date and age|year of birth|month of birth|day of birth}}

    Example:

    {{Birth date and age|1993|2|24}} returns (1993-02-24) February 24, 1993 (age 31)

    Note: The template will appear broken when the parameters are left blank (as seen above).