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
(Undo revision 18658 by Wikiadmin (talk))
Tag: Undo
Line 1: Line 1:
{{#ifeq:{{{link|}}}|none|{{#set: has city={{{city|}}}|has county={{{county|}}}|has state={{{state|}}}|has county={{{county|}}}}}|{{#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|}}}]]|}}}}
+
{{#ifeq:{{{link|}}}|none|{{#set: has city={{{city|}}} |has county={{{county|}}} |has state={{{state|}}} |has county={{{county|}}} }} |{{#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|}}}]] | }} }}

Revision as of 21:19, 12 February 2019