Template:Last N contributions/testcases

Group 1: Smoke test

edit
1a. just p1 (userid)
1b-1. p2 (Number of edits to return)
1c. p3 (Timestamp)
{{Last N contributions|ClueBot NG|15|20211025083015}}

{{Last N contributions}}

these 15 contributions

{{Last N contributions/sandbox}}

these 15 contributions

1d. p4 (Name space)
{{Last N contributions|Jimbo Wales|25|20180715|Talk}}

{{Last N contributions}}

these 25 contributions

{{Last N contributions/sandbox}}

these 25 contributions

1e. named param 'disp'
{{Last N contributions|Jimbo Wales|25|20180715|Talk|disp=25 of Jimbo's Talk page edits from July 2018}}

{{Last N contributions}}

25 of Jimbo's Talk page edits from July 2018

{{Last N contributions/sandbox}}

25 of Jimbo's Talk page edits from July 2018

1f. named param 'new' (New pages only)
{{Last N contributions|Jimbo Wales|5|disp=Jimbo's last five mainspace creations |new=1 |ns=0}}

{{Last N contributions}}

Jimbo's last five mainspace creations

{{Last N contributions/sandbox}}

Jimbo's last five mainspace creations

Group 2: Param aliases

edit
Param aliases
2a-2 param 1 (alias: user)
2b-1. param 2
2b-2. param 2 (alias: num)
2c-1. param 3
{{Last N contributions|ClueBot NG|7|20210625083015}}

{{Last N contributions}}

these 7 contributions

{{Last N contributions/sandbox}}

these 7 contributions

2c-2. param 3 (alias: ts)
{{Last N contributions|ClueBot NG|7|ts=20210625083015}}

{{Last N contributions}}

these 7 contributions

{{Last N contributions/sandbox}}

these 7 contributions

2d-1. param ns (namespace)
{{Last N contributions|Jimbo Wales|25|20180715|ns=Talk}}

{{Last N contributions}}

these 25 contributions

{{Last N contributions/sandbox}}

these 25 contributions

2d-2. param ns with numeric value
{{Last N contributions|Jimbo Wales|20180715|ns=1 |num=25}}

{{Last N contributions}}

the last 25 contributions

{{Last N contributions/sandbox}}

the last 25 contributions

2e-1. named param 'disp'
{{Last N contributions|Jimbo Wales|13|20180715|Talk|disp=25 of Jimbo's Talk page edits from July 2018}}

{{Last N contributions}}

25 of Jimbo's Talk page edits from July 2018

{{Last N contributions/sandbox}}

25 of Jimbo's Talk page edits from July 2018

Group 3: Param 4 – namespace numeric & alphabetic values

edit
Param 4 – namespace numeric & alphabetic values
3-0a Article space (numeric)
3-0b Article space (alpha)
3-1a Talk space (numeric)
3-1b Talk space (alpha)
3-2a User space (numeric)
3-2b User space (alpha)
3-3a User talk space (numeric)
3-3b User talk space (alpha)
3-4a Wikipedia space (numeric)
3-4b Wikipedia space (alpha)
3-5a Wikipedia talk space (numeric)
3-5b Wikipedia talk space (alpha)
{{Last N contributions|Jimbo Wales|ns=Wikipedia talk}}

{{Last N contributions}}

the last 50 contributions

{{Last N contributions/sandbox}}

the last 50 contributions

3-6a File space (numeric)
3-6b File space (alpha)
3-7a File talk space (numeric)
3-7b File talk space (alpha)
3-8a MediaWiki space (numeric)
3-8b MediaWiki space (alpha)
3-9a MediaWiki talk space (numeric)
3-9b MediaWiki talk space (alpha)
{{Last N contributions|Jimbo Wales|ns=MediaWiki talk}}

{{Last N contributions}}

the last 50 contributions

{{Last N contributions/sandbox}}

the last 50 contributions

3-10a Template space (numeric)
3-10b Template space (alpha)
3-11a Template talk space (numeric)
3-11b Template talk space (alpha)
{{Last N contributions|Jimbo Wales|ns=Template talk}}

{{Last N contributions}}

the last 50 contributions

{{Last N contributions/sandbox}}

the last 50 contributions

3-12a Help space (numeric)
3-12b Help space (alpha)
3-13a Help talk space (numeric)
3-13b Help talk space (alpha)
3-14a Category space (numeric)
3-14b Category space (alpha)
3-15a Category talk space (numeric)
3-15b Category talk space (alpha)
{{Last N contributions|Jimbo Wales|ns=Category talk}}

{{Last N contributions}}

the last 50 contributions

{{Last N contributions/sandbox}}

the last 50 contributions

3-100a Portal space (numeric)
3-100b Portal space (alpha)
3-101a Portal talk space (numeric)
3-101b Portal talk space (alpha)
3-118a Draft space (numeric)
3-118b Draft space (alpha)
3-119a Draft talk space (numeric)
3-119b Draft talk space (alpha)
3-828a Module space (numeric)
3-828b Module space (alpha)
3-829a Module talk space (numeric)


Group 4: Default display text variations

edit
Default display text variations
4-1: Regression tests – should all show default of "the last N contributions" or "these N contributions"
4-1a. just p1 (userid) Expect: these 50 contributions
4-1b. p2 (Number of edits to return)
4-1c. p3 (Timestamp)
{{Last N contributions|ClueBot NG|15|20211025083015}}

{{Last N contributions}}

these 15 contributions

{{Last N contributions/sandbox}}

these 15 contributions

4-1d. (Name space: numeric – Article space)
4-1e ns (Name space: alpha – Project space)
{{Last N contributions|Jimbo Wales|7|ns=Wikipedia}}

{{Last N contributions}}

the last 7 contributions

{{Last N contributions/sandbox}}

the last 7 contributions

4-2 new + ns (numeric; WP space) Expect last N new pages
{{Last N contributions|Jimbo Wales|7|new=1 |ns=Wikipedia}}

{{Last N contributions}}

the last 7 contributions

{{Last N contributions/sandbox}}

the last 7 new pages

4-3 new) Expect last N new pages
{{Last N contributions|ClueBot NG|15|20231125|new=1}}

{{Last N contributions}}

these 15 contributions

{{Last N contributions/sandbox}}

these 15 new pages

4-4 new + ns (numeric; mainspace) Expect last N new articles

Substitution

edit

{{subst:Last N contributions|Jimbo Wales}}

last 50 contributions


{{subst:Last N contributions/sandbox|Jimbo Wales}}

these 50 contributions