Template:Page views double/testcases
Appearance
This is the template test cases page for the sandbox of Template:Page views double. 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: |
Test case 1
[edit]This page
{{Page views double}}
Daily pageviews of this page Last six months (log scale)
Last 30 days (linear scale)
|
Test case 2
[edit]Note: this test won't work until a couple of days have passed so some data can be acquired.
This page, expanded
{{Page views double|expanded=true}}
Daily pageviews of this page Last six months (log scale)
Last 30 days (linear scale)
|
Test case 3
[edit]Specified target (Pancake), logarithmic scale, top orange and bottom blue (collapsed)
{{Page views double|color1=orange |color2=cobalt |days1=150 |target=Pancake}}
Last 150 days (log scale)
Last 30 days (linear scale)
|
Test case 4
[edit]target page "Rubber duck", linear scale, and both red (uncollapsed)
{{Page views double|color1=red |color2=red |days1=30 |days2=90 |expanded=true |scale1=linear |target=Rubber duck}}
Last 30 days (linear scale)
Last 90 days (linear scale)
|
Test case 5a height
[edit]target page "Rubber duck", linear scale, higher (collapsed)
{{Page views double|height=300 |target=Rubber duck}}
Last six months (log scale)
Last 30 days (linear scale)
|
- (working in rev. 1004349861)
Test case 5b width
[edit]target page 'Rubber duck', linear scale, wider (collapsed)
{{Page views double|target=Megan Thee Stallion |width=700}}
Last six months (log scale)
Last 30 days (linear scale)
|
- Success – (working in rev. 1004349861)
Test case 6
[edit]target page 'Pancake', flip the graphs (six-month red log graph on bottom); collapsed)
{{Page views double|color1=#0c6 |color2=#f30 |days1=30 |days2=182 |scale1=linear |scale2=log |target=Pancake}}
Last 30 days (linear scale)
Last 182 days (log scale)
|
- Success – works in rev 1004349861, but bottom graph says '182 days' not 'six months', but maybe that's a feature, as it wasn't designed to replace the interval on the bottom graph.