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
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
{{has location/doc}}
 
{{has location/doc}}
</noinclude>{{#if:{{{city|}}}|[[Category:{{{city}}}]][[has city::{{{city}}}]]{{#if:{{{county|}}}|,|}}|}} {{#if:{{{county|}}}|[[Category:{{{county}}}]]{{#set: has county={{{county}}}}}[[:Category:{{{county}}}|{{{county}}}]]{{#if:{{{state|}}}|,|}}|}} {{#if:{{{state|}}}|[[Category:{{{state}}}]][[has state::{{{state}}}]][[Category:{{{state}}}]]|}}{{#if:{{{country|}}}|,|}} {{#if:{{{country|}}}|[[Category:{{{country}}}]][[has state::{{{country}}}]][[Category:{{{country}}}]]|}}
+
</noinclude>{{#if:{{{alt|}}}| {{#if:{{{city|}}}|{{#set:has city={{{city}}} }}|}}{{#if:{{{county|}}}|[[Category:{{{county}}}]]|}}{{#if:{{{state|}}}|[[Category:{{{state}}}]]|}}{{#if:{{{country|}}}|[[Category:{{{country}}}]]|}}[[{{{alt}}}]] | <!--doesn't have alt -->{{#if:{{{city|}}}|[[Category:{{{city}}}]][[has city::{{{city}}}]]{{#if:{{{county|}}}|,|}}|}} {{#if:{{{county|}}}|[[Category:{{{county}}}]]{{#set: has county={{{county}}}}}[[:Category:{{{county}}}|{{{county}}}]]{{#if:{{{state|}}}|,|}}|}} {{#if:{{{state|}}}|[[Category:{{{state}}}]][[has state::{{{state}}}]][[Category:{{{state}}}]]|}}{{#if:{{{country|}}}|,|}} {{#if:{{{country|}}}|[[Category:{{{country}}}]][[has country::{{{country}}}]][[Category:{{{country}}}]]|}} }}

Revision as of 15:33, 5 January 2019

Usage:

{{has location |city={{{city}}} |county={{{county}}} |state={{{state}}} |country={{{country}}} |alt={{{alt}}} |alt page={{{alt page}} }}

use link=none to hide text, and save data only

This was transcended from Template:Has location/doc.