Template:Infobox U.S. Town: Difference between revisions

(add Coordinates section)
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 26: 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|}}}| {{AutoLink|{{{founded date}}}}}, {{AutoLink|{{{founded year|}}}}}
| {{#if:{{{founded date|}}}| {{{founded date}}}, {{{founded year|}}}
| {{#if:{{{founded year|}}}| {{AutoLink|{{{founded year|}}}}} | ''information needed''}} }} }}
| {{#if:{{{founded year|}}}| {{{founded year|}}} | ''information needed''}} }} }}
|-
|-
{{#if: {{{motto|}}}|<!-- OLD WAY -->
{{#if: {{{motto|}}}|<!-- OLD WAY -->
Line 33: Line 33:
{{!}} {{{motto}}} }}
{{!}} {{{motto}}} }}
|-
|-
!style="background:#efefef;"| Seat<!-- use old way and new way -->
{{#if: {{{seat|}}}|
| {{#if:{{{seat|}}}|{{{seat}}}
{{!}} style="background:#efefef;"{{!}}  Seat<!-- use old way and new way -->
| {{#if:{{{seat wl|}}}|[[{{{seat wl}}}, {{{state}}}{{!}}{{{seat wl}}}]]}} }}
{{!}} {{#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 45: Line 46:
|-
|-
{{#if: {{{web|}}}|
{{#if: {{{web|}}}|
{{!}} colspan="2" style="text-align: left; border-top: solid 1px #ccd2d9;" {{!}} '''Website:''' <span class="url">[http://{{{web|}}} {{{web|}}}]</span>}}
{{!}} 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 51: 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 68: 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 boroughs]]
| 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 (U.S. state) counties]]
| Washington=[[Category:Washington Counties]]
| {{#ifeq:{{NAMESPACE}}|Template talk| |[[Category:Towns in {{{state}}}]]}} }}</includeonly><noinclude>
| {{#ifeq:{{NAMESPACE}}|Template talk| |[[Category:{{{county}}}]]}} }}</includeonly><noinclude>


{{documentation}}
{{documentation}}[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 11:19, 1 November 2022


[view] [edit] [history] [purge] Documentation icon Template documentation