User:FlightTime/UBX/Ten years/doc

Usage
This userbox may be used by members of the Ten Year Society of Wikipedians that have been editing for ten years or more to indicate their membership if they so wish. It adds a user to Category:Members of the Ten Year Society of Wikipedia editors.

Parameters
If no parameters are given, the userbox displays as above. Optionally, the following parameters may be supplied to modify the display of the userbox.

Unnamed parameter
If the first parameter is unnamed, it will specify free text to append to the end of the default text. No space will appear between the two unless given at the beginning of the supplied text.

renders as:

(note the lack of a space after "|" here) renders as:

year, month, and day
If desired, the named parameters,  , and   can be given as the date the user first started editing Wikipedia, to cause the userbox to calculate the amount of time that has elapsed since then automatically.

renders as:

format
By default, the duration is output as years, months, and days, but  can be specified to only show years and months, or   can be used to display only the years.

renders as:

renders as:

period
By default, the sentence in the userbox will end with a period (full stop). This can be suppressed by setting  to a blank value.

renders as:

can be set to a non-blank value to provide a substitute for the usual ".", but note that due to template limitations (and unlike the unnamed parameter), if the value contains leading (or trailing) spaces, they need to be specified as HTML character references, e.g.  or.

sc
Specifying  or   will suppress the serial comma used before the "and" in ymd format.

renders as:

whitespace
By default, one space will appear between the userbox's default text and the calculated duration. can be used to output a line break before the duration instead.

renders as:

Note that due to template limitations (and unlike the unnamed parameter), if the value of  contains leading or trailing spaces, they need to be specified as HTML character references, e.g.   or.

renders as: