Template:User Twenty Year Society
![]() | This user has been editing Wikipedia for more than twenty years. |
Usage
[edit]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. This userbox will automatically add your userpage to category Members of the Twenty Year Society of Wikipedia editors.
You can disable automatic categorization using |nocat=true
.
Parameters
[edit]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
[edit]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.
{{User Twenty Year Society| (since 2002)}}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years (since 2002). |
{{User Twenty Year Society|—since July 28, 2002}}
(note the lack of a space after "|" here) renders as:
![]() | This user has been editing Wikipedia for more than twenty years—since July 28, 2002. |
If you use 1 = you will need to specify any leading space explicitly, for example:
{{User Twenty Year Society|1 = (since 2002)}}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years (since 2002). |
year, month, and day
[edit]If desired, the named parameters year
, month
, and day
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.
{{User Twenty Year Society|year=2002|month=7|day=28}}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years (22 years and 4 days). |
format
[edit]By default, the duration is output as years, months, and days, but format=ym
can be specified to only show years and months, or format=y
can be used to display only the years.
{{User Twenty Year Society|year=2002|month=7|day=28|format=ym}}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years (22 years). |
{{User Twenty Year Society|year=2002|month=7|day=28|format=y}}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years (22+). |
period
[edit]By default, the sentence in the userbox will end with a period (full stop). This can be suppressed by setting period
to a blank value.
{{User Twenty Year Society|year=2002|month=7|day=28|period=}}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years (22 years and 4 days) |
period
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
[edit]Specifying sc=n
or sc=no
will suppress the serial comma used before the "and" in ymd format.
{{User Twenty Year Society|year=2002|month=7|day=28|sc=n}}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years (22 years and 4 days). |
whitespace
[edit]By default, one space will appear between the userbox's default text and the calculated duration. whitespace=<br>
can be used to output a line break before the duration instead.
{{User Twenty Year Society|year=2002|month=7|day=28|whitespace=<br />}}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years (22 years and 4 days). |
Note that due to template limitations (and unlike the unnamed parameter), if the value of whitespace
contains leading or trailing spaces, they need to be specified as HTML character references, e.g.
or  
.
{{User Twenty Year Society|year=2002|month=7|day=28|period=|whitespace=<br /> }}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years (22 years and 4 days) |
nocat
[edit]This userbox will automatically add your userpage to category Members of the Twenty Year Society of Wikipedia editors.
You can disable automatic categorization using |nocat=true
.
{{User Twenty Year Society|nocat=true}}
renders as:
![]() | This user has been editing Wikipedia for more than twenty years. |