Template:Last N contributions/testcases
Appearance
This is the template test cases page for the sandbox of Template:Last N contributions. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Group 1: Smoke test
[edit]1a. just p1 (userid)
{{Last N contributions|Jimbo Wales}}
1b-1. p2 (Number of edits to return)
{{Last N contributions|Jimbo Wales|10}}
1b-2. p2 (Number of edits, + embedded blanks) BROKEN!!
{{Last N contributions|Jimbo Wales| 10}}
10&newOnly=0&target=Jimbo_Wales&namespace=all the last 10 contributions
{{Last N contributions/sandbox}}
10&newOnly=0&target=Jimbo_Wales&namespace=all the last 10 contributions
1c. p3 (Timestamp)
{{Last N contributions|ClueBot NG|15|20211025083015}}
1d. p4 (Name space)
{{Last N contributions|Jimbo Wales|25|20180715|Talk}}
1e. named param 'disp'
{{Last N contributions|Jimbo Wales|25|20180715|Talk|disp=25 of Jimbo's Talk page edits from July 2018}}
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}}
Jimbo's last five mainspace creations
Group 2: Param aliases
[edit]Param aliases
|
---|
2a-1 param 1 {{Last N contributions|Jimbo Wales}} 2a-2 param 1 (alias: user) {{Last N contributions|user=Jimbo Wales}} 2b-1. param 2 {{Last N contributions|Jimbo Wales|23}} 2b-2. param 2 (alias: num) {{Last N contributions|Jimbo Wales|num=23}} 2c-1. param 3 {{Last N contributions|ClueBot NG|7|20210625083015}} 2c-2. param 3 (alias: ts) {{Last N contributions|ClueBot NG|7|ts=20210625083015}} 2d-1. param ns (namespace) {{Last N contributions|Jimbo Wales|25|20180715|ns=Talk}} 2d-2. param ns with numeric value {{Last N contributions|Jimbo Wales|20180715|ns=1 |num=25}} 2e-1. named param 'disp' {{Last N contributions|Jimbo Wales|13|20180715|Talk|disp=25 of Jimbo's Talk page edits from July 2018}} 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) {{Last N contributions|Jimbo Wales|ns=0}} 3-0b Article space (alpha) {{Last N contributions|Jimbo Wales|ns=Article}} 3-1a Talk space (numeric) {{Last N contributions|Jimbo Wales|ns=1}} 3-1b Talk space (alpha) {{Last N contributions|Jimbo Wales|ns=Talk}} 3-2a User space (numeric) {{Last N contributions|Jimbo Wales|ns=2}} 3-2b User space (alpha) {{Last N contributions|Jimbo Wales|ns=User}} 3-3a User talk space (numeric) {{Last N contributions|Jimbo Wales|ns=3}} 3-3b User talk space (alpha) {{Last N contributions|Jimbo Wales|ns=User talk}} 3-4a Wikipedia space (numeric) {{Last N contributions|Jimbo Wales|ns=4}} 3-4b Wikipedia space (alpha) {{Last N contributions|Jimbo Wales|ns=Wikipedia}} 3-5a Wikipedia talk space (numeric) {{Last N contributions|Jimbo Wales|ns=5}} 3-5b Wikipedia talk space (alpha) {{Last N contributions|Jimbo Wales|ns=Wikipedia talk}} 3-6a File space (numeric) {{Last N contributions|Jimbo Wales|ns=6}} 3-6b File space (alpha) {{Last N contributions|Jimbo Wales|ns=File}} 3-7a File talk space (numeric) {{Last N contributions|Jimbo Wales|ns=7}} 3-7b File talk space (alpha) {{Last N contributions|Jimbo Wales|ns=File talk}} 3-8a MediaWiki space (numeric) {{Last N contributions|Jimbo Wales|ns=8}} 3-8b MediaWiki space (alpha) {{Last N contributions|Jimbo Wales|ns=MediaWiki}} 3-9a MediaWiki talk space (numeric) {{Last N contributions|Jimbo Wales|ns=9}} 3-9b MediaWiki talk space (alpha) {{Last N contributions|Jimbo Wales|ns=MediaWiki talk}} 3-10a Template space (numeric) {{Last N contributions|Jimbo Wales|ns=10}} 3-10b Template space (alpha) {{Last N contributions|Jimbo Wales|ns=Template}} 3-11a Template talk space (numeric) {{Last N contributions|Jimbo Wales|ns=11}} 3-11b Template talk space (alpha) {{Last N contributions|Jimbo Wales|ns=Template talk}} 3-12a Help space (numeric) {{Last N contributions|Jimbo Wales|ns=12}} 3-12b Help space (alpha) {{Last N contributions|Jimbo Wales|ns=Help}} 3-13a Help talk space (numeric) {{Last N contributions|Jimbo Wales|ns=13}} 3-13b Help talk space (alpha) {{Last N contributions|Jimbo Wales|ns=Help talk}} 3-14a Category space (numeric) {{Last N contributions|Jimbo Wales|ns=14}} 3-14b Category space (alpha) {{Last N contributions|Jimbo Wales|ns=Category}} 3-15a Category talk space (numeric) {{Last N contributions|Jimbo Wales|ns=15}} 3-15b Category talk space (alpha) {{Last N contributions|Jimbo Wales|ns=Category talk}} 3-100a Portal space (numeric) {{Last N contributions|Jimbo Wales|ns=100}} 3-100b Portal space (alpha) {{Last N contributions|Jimbo Wales|ns=Portal}} 3-101a Portal talk space (numeric) {{Last N contributions|Jimbo Wales|ns=101}} 3-101b Portal talk space (alpha) {{Last N contributions|Jimbo Wales|ns=Portal talk}} 3-118a Draft space (numeric) {{Last N contributions|Jimbo Wales|ns=118}} 3-118b Draft space (alpha) {{Last N contributions|Jimbo Wales|ns=Draft}} 3-119a Draft talk space (numeric) {{Last N contributions|Jimbo Wales|ns=119}} 3-119b Draft talk space (alpha) {{Last N contributions|Jimbo Wales|ns=Draft talk}} 3-828a Module space (numeric) {{Last N contributions|Jimbo Wales|ns=828}} 3-828b Module space (alpha) {{Last N contributions|Jimbo Wales|ns=Module}} 3-829a Module talk space (numeric) {{Last N contributions|Jimbo Wales|ns=829}} |
Group 4: Default display text variations
[edit]Default display text variations
| ||
---|---|---|
4-2 new + ns (numeric; WP space) Expect last N new pages {{Last N contributions|Jimbo Wales|7|new=1 |ns=Wikipedia}} 4-3 new) Expect last N new pages {{Last N contributions|ClueBot NG|15|20231125|new=1}} 4-4 new + ns (numeric; mainspace) Expect last N new articles {{Last N contributions|AnomieBOT|4|new=1 |ns=0}} |
Substitution
[edit]{{subst:Last N contributions|Jimbo Wales}}
→
{{subst:Last N contributions/sandbox|Jimbo Wales}}
→