Create a link showing user's last N contributions prior to a given date.
Usage
edit{{Last N contributions|username}}
{{Last N contributions|username|number|timestamp|ns=namespace|new=1|disp=display text}}
Parameters
editAll parameters after the first are optional. Unnamed numeric parameters (num, ts) may not have leading or trailing blanks.
|1=
or|user=
userid (required; may be a CIDR range – see Examples)|2=
or|num=
number of contributions to display (optional, default:50)|3=
or|ts=
return edits from strictly before this timestamp; YYYYMMDDhhmmsscc (may be truncated); (optional, default: now )|new=
show page creations only, if evaluates to true|ns=
numeric or alphabetic namespace; e.g. 0 or Article; 1 or Talk; etc. (optional, default: all namespaces)|disp=
specify the text to be displayed in the link (optional, default: 'these/last N contributions')
Details
edit- param
|ts=
When positional parameter 3 (or |ts=
) is given, results are strictly before the value given; so that |ts=20210815231530
returns results on or before 23:15:29. Users may leave off digits on the right, this implies they are zero-filled; i.e, |ts=20210815
is equivalent to |ts=20210815000000
, which means the most recent possible result would be an edit on August 14 just before midnight. Likewise, |ts=202108
returns the last edits in July; |ts=2021
returns the last edit(s) in 2020, and so on.
When |ts=
is absent, the link text displays "last N contributions"; when present, it displays "these N contributions", unless overridden by |disp=
.
Note: when |ts=
is absent, the template provides a link to all contributions up to the present moment. This link may therefore provide different results if you refresh the page at a later time, if the user has made additional contributions in the interim.
To show all contributions up to the moment you placed the template, and freeze it at that point so that future contributions by the user do not affect the results, use |ts={{subst:TIMESTAMP}}
. See Examples below.
- param
|ns=
The namespace parameter is |ns=
. Values may be either the (numeric) namespace number, or the alphabetic namespace name. See Wikipedia:Namespace for the complete list of numeric and alphabetic values.
Examples
edit{{Last N contributions|Jimbo Wales|10|20030724}}
→ these 10 contributions (note: counted as 00:00 on the 24th){{Last N contributions|Jimbo Wales| 10|20030724}}
→ (impermissible leading blank in unnamed numeric parameter causes an error){{Last N contributions|Jimbo Wales|33|200307242300}}
→ these 33 contributions (note: counted as 23:00 on the 24th){{Last N contributions|Jimbo Wales|num=7|ts=20030725}}
→ these 7 contributions{{Last N contributions|Jimbo Wales|ns=1}}
→ the last 50 contributions (note: in Talk space){{Last N contributions|Jimbo Wales|ns=Talk}}
→ the last 50 contributions (note: same as above){{Last N contributions|Jimbo Wales|num=1|ts=2015|disp=last edit in 2014}}
→ last edit in 2014{{lnc|Jimbo Wales|ts={{subst:TIMESTAMP}}}}
→ these 50 contributions (note: freezes the link at the time the page was saved; see Parameter details above){{lnc|2001:569:BF37:5300:9972:3E91:940D:58D9/32}}
→ the last 50 contributions (note: CIDR range){{lnc|Jimbo Wales|5|disp=Jimbo's last five created articles|ns=0|new=1}}
→ Jimbo's last five created articles
See also
editRedirects:
{{last N contribs}}
{{user last N}}
{{user lnc}}
{{lnc}}
Other templates:
- {{Last N edits}}