User:Mindmatrix/gamma
Test URL
[edit]This should generate: "Test".
SCref test
[edit]Case 1
[edit]{{SCref |year = 2011 |unit = cd |type = prof |code = 2466 |name = }}
Generates: "Mindmatrix/gamma (Code 2466) Census Profile". 2011 census. Government of Canada - Statistics Canada. 2012. 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
[edit]{{SCref |year = |unit = cd |type = prof |code = 2466 |name = }}
Generates: "Mindmatrix/gamma (Code 2466) Census Profile". census. Government of Canada - Statistics Canada. 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
[edit]Adjusted template: {{User:Mindmatrix/zeta |year = |unit = cd |type = prof |code = 2466 |name = }}
Generates:
"(Code 2466) Census Profile". census. Statistics Canada. Expression error: Missing operand for +.. {{cite web}}
: Check date values in: |year=
(help)CS1 maint: year (link)
Links
[edit]- 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
[edit]
"Mindmatrix/gamma (Code 2466) Census Profile". census. Government of Canada - Statistics Canada.
"Mindmatrix/gamma (Code 462) All Data". 2001 census. Government of Canada - Statistics Canada.