Template:Infobox U.S. Town: Difference between revisions
(add border) |
No edit summary |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 14: | Line 14: | ||
| Georgia = [[Georgia (U.S. state)|Georgia]] | | Georgia = [[Georgia (U.S. state)|Georgia]] | ||
| [[{{{state|}}}]]}} | | [[{{{state|}}}]]}} | ||
|- | |||
<!-- ***Coordinates*** --> | |||
{{#if:{{{latd|}}}| | |||
<tr class="mergedbottomrow"> | |||
<td colspan="2" style="text-align:center; padding-bottom:0.7em">Coordinates{{#if:{{{coor_pinpoint|{{{coor_type|}}}}}}| ({{{coor_pinpoint|{{{coor_type|}}}}}})|}}: {{Geobox coor|{{{latd|}}}|{{{latm|}}}|{{{lats|}}}|{{{latNS|}}}|{{{longd|}}}|{{{longm|}}}|{{{longs|}}}|{{{longEW|}}}|{{{coordinates_type|type:city{{#if:{{{population_total|}}}|{{#iferror:{{#expr:{{{population_total}}}+1}}||({{{population_total}}})}}|}}{{#if:{{{coordinates_region|}}}{{{subdivision_name|}}}|_region:{{{coordinates_region|{{CountryAbbr|{{{subdivision_name|}}}|{{{subdivision_name1|}}}}}}}}}}}}}|{{#if:{{{coordinates_display|}}}|title|μ}}={{{coordinates_display|}}}}} {{#if:{{{coordinates_footnotes|}}}|{{{coordinates_footnotes}}}}}</td> | |||
</tr> | |||
}} | |||
|- | |- | ||
| colspan="2" style="text-align: center; background:#E0E0E0;" | '''Facts''' | | colspan="2" style="text-align: center; background:#E0E0E0;" | '''Facts''' | ||
Line 19: | Line 26: | ||
!style="background:#efefef;"| {{{founded title|Founded}}} <!-- old way, use "founded". new way: use date, year (and automatically create links--> | !style="background:#efefef;"| {{{founded title|Founded}}} <!-- old way, use "founded". new way: use date, year (and automatically create links--> | ||
| {{#if:{{{founded|}}}|{{{founded}}} | | {{#if:{{{founded|}}}|{{{founded}}} | ||
| {{#if:{{{founded date|}}} | | {{#if:{{{founded date|}}}| {{{founded date}}}, {{{founded year|}}} | ||
| {{#if:{{{founded year|}}} | | {{#if:{{{founded year|}}}| {{{founded year|}}} | ''information needed''}} }} }} | ||
|- | |- | ||
{{#if: {{{motto|}}}|<!-- OLD WAY --> | {{#if: {{{motto|}}}|<!-- OLD WAY --> | ||
Line 26: | Line 33: | ||
{{!}} {{{motto}}} }} | {{!}} {{{motto}}} }} | ||
|- | |- | ||
!style="background:#efefef;" | {{#if: {{{seat|}}}| | ||
{{!}} style="background:#efefef;"{{!}} Seat<!-- use old way and new way --> | |||
{{!}} {{#if:{{{seat|}}}|{{{seat}}} | |||
{{!}} {{#if:{{{seat wl|}}}|[[{{{seat wl}}}, {{{state}}}{{!}}{{{seat wl}}}]]}} }} }} | |||
|- | |- | ||
{{#if: {{{building image|}}}| | {{#if: {{{building image|}}}| | ||
{{!}} colspan="2" {{!}} [[Image:{{{building image}}}|center|{{{building image size|200}}}px]]}} | {{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{building image}}}|center|{{{building image size|200}}}px]]}} | ||
|- | |- | ||
{{#if: {{{building address|}}}| | {{#if: {{{building address|}}}| | ||
Line 38: | Line 46: | ||
|- | |- | ||
{{#if: {{{web|}}}| | {{#if: {{{web|}}}| | ||
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} '''Website:''' <span class="url">[ | {{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} '''Website:''' <span class="url">[https://{{{web|}}} {{{web|}}}]</span>}} | ||
|- class="note" | |- class="note" | ||
{{#if: {{{named for|}}}| | {{#if: {{{named for|}}}| | ||
Line 44: | Line 52: | ||
|- | |- | ||
{{#if: {{{named for image|}}}| | {{#if: {{{named for image|}}}| | ||
{{!}} colspan="2" {{!}} [[Image:{{{named for image}}}|center|{{{named for image size|200}}}px]]}} | {{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{named for image}}}|center|{{{named for image size|200}}}px]]}} | ||
|- | |- | ||
{{#if: {{{flag|}}}| | {{#if: {{{flag|}}}| | ||
Line 61: | Line 69: | ||
{{!}} 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:{{{state}}} | |}<!--Add the category automatically, except for some states-->{{#switch:{{{state}}} | ||
| Alaska=[[Category:Alaska | | Alaska=[[Category:Alaska Boroughs]] | ||
| Georgia=[[Category:Georgia (U.S. state) counties]] | | Georgia=[[Category:Georgia (U.S. state) counties]] | ||
| Louisiana=[[Category:Louisiana parishes]] | | Louisiana=[[Category:Louisiana parishes]] | ||
| Washington=[[Category:Washington | | Washington=[[Category:Washington Counties]] | ||
| {{#ifeq:{{NAMESPACE}}|Template talk| |[[Category: | | {{#ifeq:{{NAMESPACE}}|Template talk| |[[Category:{{{county}}}]]}} }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}}[[Category:Infobox templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:19, 1 November 2022
The above documentation is transcluded from Template:Infobox U.S. Town/doc. (editEditors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |