Difference between revisions of "Template:Has location"

From Crews Genealogy Wiki: focusing on the Wiregrass south, and related families
Jump to navigation Jump to search
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{{link|}}}|none | <!--not needed --> |{{#if:{{{alt|}}}|[[{{{alt page|}}}|{{{alt}}}]] |{{#if:{{{city|}}}|[[{{{city}}}]]{{#if:{{{county|}}}|, |{{#if:{{state|}}|,|{{#if:{{{country|}}}|,|}} }} }}|}} {{#if:{{{county|}}}|[[:Category:{{{county|}}}|{{{county|}}}]]|}}{{#if:{{{state|}}}|{{#if:{{{county|}}}|, |}} [[:Category:{{{state|}}}|{{{state|}}}]]|}} {{#if:{{{country|}}}|{{#if:{{{state|}}}|, |}}[[:Category:{{{country|}}}|{{{country|}}}]]|}} }}{{#set: has street={{{street|}}} |has city={{{city|}}} |has county={{{county|}}} |has state={{{state|}}}|has country={{{country|}}} }}{{#if: {{{county|}}} | [[Category:{{{county|}}}]] | }}{{#if: {{{state|}}} | [[Category:{{{state|}}}]] | }}{{#if: {{{country|}}} | [[Category:{{{country|}}}]] | }} }}<noinclude>{{documentation}}</noinclude>
+
{{#ifeq:{{{link|}}}|none|<!--show nothing --> |{{#if:{{{alt|}}}|[[{{{alt page|}}}|{{{alt}}}]] |{{#if:{{{street|}}}|[[{{{street|}}}{{#if: {{{city|}}}{{{state|}}}|,&nbsp;| }}{{#if:{{{city|}}}|{{#if:{{{state|}}}|{{{city|}}}, {{{state|}}}|{{{city|}}} }} | }}|{{{street|}}}]] | }}<!--end street-->{{#if: {{{street|}}}|{{#if:{{{city|}}}|,&nbsp; | }} | }}{{#if:{{{city|}}}|[[{{{city}}}{{#if:{{{state|}}}|, {{{state}}} |<!--don't add state to city link-->}}|{{{city}}}]]{{#if:{{{county|}}}|, |{{#if:{{state|}}|, |{{#if:{{{country|}}}|, |}} }} }}|}} {{#if:{{{county|}}}|[[:Category:{{{county|}}}|{{{county|}}}]]|}}{{#if:{{{state|}}}|{{#if:{{{county|}}}|, |}} [[:Category:{{{state|}}}|{{{state|}}}]]|}}{{#if:{{{country|}}}|{{#if:{{{state|}}}|, |}}[[:Category:{{{country|}}}|{{{country|}}}]]|}} }} {{#if: {{{county|}}} | [[Category:{{{county|}}}]] | }}{{#if: {{{state|}}} | [[Category:{{{state|}}}]] | }}{{#if: {{{country|}}} | [[Category:{{{country|}}}]] | }} }}{{#subobject:Location
 
+
|has cemetery name = {{{cemetery|}}}
{{#if: {{{place name|}}} |{{{place name|}}}{{#if:{{{street|}}}{{{city|}}}{{{state|}}}{{{county|}}}{{{country|}}}|,&nbsp|}} |<!--no place name-->}}{{#if: {{{street|}}} |{{{street|}}}{{#if:{{{city|}}}{{{state|}}}{{{county|}}}{{{country|}}}|,&nbsp|}} |<!--no street-->}}{{#if: {{{city|}}} |[[{{{city|}}}]]{{#if:{{{state|}}}{{{county|}}}{{{country|}}}|,&nbsp|}} |<!--no city-->}}{{#if: {{{county|}}} |[[{{{county|}}}]]{{#if:{{{state|}}}{{{country|}}}|,&nbsp|}} |<!--no state-->}}{{#if: {{{state|}}} |[[{{{state|}}}]]{{#if:{{{country|}}}|,&nbsp|}}|<!--no county-->}}{{#if: {{{country|}}} |[[{{{country|}}}]] |<!-- no country -->}}
 
 
 
{{#if: {{{county|}}}|[[Category:{{{county|}}}]]| |}}[[Category:{{{country|United States}}}]]
 
 
 
 
 
{{#subobject:
 
|place name={{{place name|}}}
 
|has street= {{{street|}}}
 
 
|has city = {{{city|}}}
 
|has city = {{{city|}}}
 +
|has county = {{{county|}}}
 
|has state = {{{state|}}}
 
|has state = {{{state|}}}
|has county = {{{county|}}}
+
|has country = {{{country|}}}
|has country = {{{country|United States}}}
+
|has person= {{{person|}}}
}}
+
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 23:07, 28 November 2020