Template:User Twenty Year Society/doc

Usage
This userbox may be used by members of the Twenty Year Society or Wikipedians that have been editing for twenty years or more to indicate their membership if they so wish.

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 or 1
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:

If you use 1 = you will need to specify any leading space explicitly, for example: renders as:

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:

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:

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.

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

renders as:

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:

renders as: