Jump to content

Template:Infobox Canada: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{latd|}}}| {{#if:{{{longd|}}}| {{coord|{{{latd}}}|{{{latm|0}}}|N|{{{longd}}}|{{{longm|0}}}|W|type:adm2nd_region:US-{{StateAbbr|{{{state}}}}}|display=title}} }} }}
<includeonly>{{#if:{{{latd|}}}| {{#if:{{{longd|}}}| {{coord|{{{latd}}}|{{{latm|0}}}|N|{{{longd}}}|{{{longm|0}}}|W|type:adm2nd_region:US-{{ProvinceAbbr|{{{province}}}}}|display=title}} }} }}
{| class="infobox vcard" cellpadding="3" style="width: 21em; font-size: 95%; text-align: left; clear:right; float:right; margin: 0 0 0.5em 1em; border: 1px solid #999; border-right-width: 2px; border-bottom-width: 2px;"
{| class="infobox vcard" cellpadding="3" style="width: 21em; font-size: 95%; text-align: left; clear:right; float:right; margin: 0 0 0.5em 1em; border: 1px solid #999; border-right-width: 2px; border-bottom-width: 2px;"
|-
|-
Line 16: Line 16:
|-
|-
{{#if: {{{county_map|}}}|
{{#if: {{{county_map|}}}|
{{!}} colspan="2" style="text-align: center;"{{!}} [[Image:{{{county_map}}}|{{#switch:{{{state}}}|New Jersey =120px|Vermont =120px|Maine=130px|Delaware=120px|New Hampshire=110px|Illinois=130px|Alabama=120px|Mississippi=120px|Ohio=180px|Indiana=130px|Nevada=130px|Idaho=130px|200px}}|Map of {{{provonce|}}} highlighting {{{county|}}} ]]<br>Location in the province of {{#switch:{{{county}}}  
{{!}} colspan="2" style="text-align: center;"{{!}} [[Image:{{{county_map}}}|{{#switch:{{{province}}}|New Jersey =120px|Vermont =120px|Maine=130px|Delaware=120px|New Hampshire=110px|Illinois=130px|Alabama=120px|Mississippi=120px|Ohio=180px|Indiana=130px|Nevada=130px|Idaho=130px|200px}}|Map of {{{provonce|}}} highlighting {{{county|}}} ]]<br>Location in the province of {{#switch:{{{county}}}  
| Ontarion = [[Ontario|Ontario]]
| Ontarion = [[Ontario|Ontario]]
| [[{{{province|}}}]]}} }}
| [[{{{province|}}}]]}} }}
|-  
|-  
{{#if: {{{state_map|}}}|
{{#if: {{{province_map|}}}|
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{state_map}}}{{!}} Map of Canada highlighting {{{province}}}{{!}}200px{{!}}Map of Canada highlighting {{{province}}}]]<br>Location of {{{province}}} in [[Canada|Canada]]}}
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{province_map}}}{{!}} Map of Canada highlighting {{{province}}}{{!}}200px{{!}}Map of Canada highlighting {{{province}}}]]<br>Location of {{{province}}} in [[Canada|Canada]]}}
|-
|-
| colspan="2" style="text-align: center; background:#E0E0E0;" | '''Facts'''
| colspan="2" style="text-align: center; background:#E0E0E0;" | '''Facts'''
Line 76: Line 76:
{{#if: {{{footnotes|}}} |
{{#if: {{{footnotes|}}} |
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} <small>{{{footnotes|}}}</small> }}
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} <small>{{{footnotes|}}}</small> }}
|}<!--Add the category automatically, except for some states-->{{#switch:{{{province}}}
|}<!--Add the category automatically, except for some provinces-->{{#switch:{{{province}}}
| Alaska={{{category|[[Category:Alaska boroughs]]}}}
| Alaska={{{category|[[Category:Alaska boroughs]]}}}
| Georgia={{{category|[[Category:Georgia (state) counties]]}}}
| Georgia={{{category|[[Category:Georgia (province) counties]]}}}
| Louisiana={{{category|[[Category:Louisiana parishes]]}}}
| Louisiana={{{category|[[Category:Louisiana parishes]]}}}
| {{namespace detect | main  = {{{category|[[Category:{{{state}}} counties]]}}} | other = }}
| {{namespace detect | main  = {{{category|[[Category:{{{province}}} counties]]}}} | other = }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>


{{documentation}}
{{documentation}}
</noinclude>
</noinclude>