Difference between revisions of "Template:Cite peakfinder/testcases"
imported>RedWolf (br) |
imported>RedWolf (added testcases for new subjects parameter) |
||
| Line 3: | Line 3: | ||
== Testing sandbox version == | == Testing sandbox version == | ||
| − | + | === with named parameters === | |
| − | {{ {{BASEPAGENAME}}/sandbox |name=Mount | + | <div style="margin-left: 20px; "> |
| − | {{ {{BASEPAGENAME}}/sandbox |name=Mount | + | ;no subject should default to "peaks" |
| + | {{ {{BASEPAGENAME}}/sandbox | id = 1193 |name=Mount Rundle |access-date=2019-05-10 }}<br/> | ||
| + | |||
| + | ;same as above but specify old name accessdate instead of access-date | ||
| + | {{ {{BASEPAGENAME}}/sandbox | id = 1193 |name=Mount Rundle |accessdate=2019-05-10 }}<br/> | ||
| + | |||
| + | ;set subject to peaks should give same URL as previous line | ||
| + | {{ {{BASEPAGENAME}}/sandbox | id = 1193 |name=Mount Rundle |subject=peaks |access-date=2019-05-10 }}<br/> | ||
| + | |||
| + | ;to specify a mountain range | ||
| + | {{ {{BASEPAGENAME}}/sandbox | id = 1 |name=Ball Range | subject=ranges |access-date=2019-05-10 }}<br/> | ||
| + | |||
| + | ;to specify people | ||
| + | {{ {{BASEPAGENAME}}/sandbox | id = 2 |name=Samuel Allen | subject=people |access-date=2019-05-10 }}<br/> | ||
| + | |||
| + | ;to specify passes | ||
| + | {{ {{BASEPAGENAME}}/sandbox | id = 85 |name=Athabasca Pass | subject=passes |access-date=2019-05-10 }}<br/> | ||
| + | </div> | ||
;with unnamed parameters | ;with unnamed parameters | ||
{{ {{BASEPAGENAME}}/sandbox |Mount Robson |2010-01-27 }} | {{ {{BASEPAGENAME}}/sandbox |Mount Robson |2010-01-27 }} | ||
| − | ;with no name | + | ;missing <id> |
| − | {{ {{BASEPAGENAME}}/sandbox | |template doc demo=true}} | + | {{ {{BASEPAGENAME}}/sandbox |name=Mount Robson |access-date=2019-05-10 }} |
| + | ;with id but no name | ||
| + | {{ {{BASEPAGENAME}}/sandbox | id=1175 |template doc demo=true}} | ||
{{clear}} | {{clear}} | ||
Latest revision as of 01:32, 11 May 2019
| This is the template test cases page for the sandbox of Template:Cite peakfinder. Script error: No such module "Purge". 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 with these links: |
Testing sandbox version
with named parameters
- no subject should default to "peaks"
Script error: No such module "If empty"./1193 "Mount Rundle" Check |url= value (help). PeakFinder.com. Retrieved 2019-05-10.
- same as above but specify old name accessdate instead of access-date
Script error: No such module "If empty"./1193 "Mount Rundle" Check |url= value (help). PeakFinder.com. Retrieved 2019-05-10.
- set subject to peaks should give same URL as previous line
Script error: No such module "If empty"./1193 "Mount Rundle" Check |url= value (help). PeakFinder.com. Retrieved 2019-05-10.
- to specify a mountain range
Script error: No such module "If empty"./1 "Ball Range" Check |url= value (help). PeakFinder.com. Retrieved 2019-05-10.
- to specify people
Script error: No such module "If empty"./2 "Samuel Allen" Check |url= value (help). PeakFinder.com. Retrieved 2019-05-10.
- to specify passes
Script error: No such module "If empty"./85 "Athabasca Pass" Check |url= value (help). PeakFinder.com. Retrieved 2019-05-10.
- with unnamed parameters
Script error: No such module "If empty"./Mount+Robson "2010-01-27" Check |url= value (help). PeakFinder.com.
- missing <id>
Error: no |id= when using {{cite peakfinder}}Template:Namespace detect showall
- with id but no name
Error: no |name= when using {{cite peakfinder}}
Testing main template
- with named parameters
Error: no |id= when using {{cite peakfinder}}Template:Namespace detect showall
- with unnamed parameters
Script error: No such module "If empty"./Mount+Robson "2010-01-27" Check |url= value (help). PeakFinder.com.
- with no name
Error: no |id= when using {{cite peakfinder}}