User:Mindmatrix/gamma

Test URL
http://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/details/page.cfm?Lang=E&Geo1=CD&Code1=2466&Geo2=PR&Code2=01&Data=Count&SearchText=montreal&SearchType=Begins&SearchPR=01&B1=All&Custom=&TABID=1

This should generate:

Case 1
Generates:

Link generated: http://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/details/page.cfm?Lang=E&Geo1=CD&Code1=2466&Geo2=PR&Code2=24&Data=Count&SearchType=Begins&SearchPR=01&B1=All

Case 2
Generates:

Link generated: http://www12.statcan.gc.ca/census-recensement//dp-pd/prof/details/page.cfm?Lang=E&Geo1=CD&Code1=2466&Geo2=PR&Code2=24&Data=Count&SearchType=Begins&SearchPR=01&B1=All

Case 3
Adjusted template:

Generates:

Link generated: http://www12.statcan.gc.ca/census-recensement//dp-pd/prof/details/page.cfm?Lang=E&Geo1=CD&Code1=2466&Geo2=PR&Code2=01&Data=Count&SearchType=Begins&SearchPR=01&B1=All

Links

 * http://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/details/page.cfm?Lang=E&Geo1=CD&Code1=2466&Geo2=PR&Code2=24&Data=Count&SearchType=Begins&SearchPR=01&B1=All
 * http://www12.statcan.gc.ca/census-recensement//dp-pd/prof/details/page.cfm?Lang=E&Geo1=CD&Code1=2466&Geo2=PR&Code2=24&Data=Count&SearchType=Begins&SearchPR=01&B1=All
 * http://www12.statcan.gc.ca/census-recensement//dp-pd/prof/details/page.cfm?Lang=E&Geo1=CD&Code1=2466&Geo2=PR&Code2=01&Data=Count&SearchType=Begins&SearchPR=01&B1=All

The former link contains the year; the latter two do not. Error is is template default year handling.

Other
{{cite web|url=http://www12.statcan.gc.ca/census-recensement//dp-pd/prof/details/page.cfm?Lang=E&Geo1=CD&Code1=2466&Geo2=PR&Code2=24&Data=Count&SearchType=Begins&SearchPR=01&B1=All

{{cite web|url=http://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/details/page.cfm?Lang=E&Geo1=CSD&Code1=2466&Geo2=PR&Code2=24&Data=Count&SearchType=Begins&SearchPR=01&B1=All

{{SCref }}
 * year    =
 * unit    = cd
 * type    = prof
 * code    = 2466
 * name    =

{{SCref }}
 * year    = 2001
 * unit    = cma
 * type    = prof
 * code    = 462
 * name    =