User:Ccsmith/sandbox/wiki6

{{#explode:{{#explode:Alabama, United States Genealogy|,}}

stateName = name of page this template is placed {{#ifexist:{{#explode:Alabama, United States Genealogy|,}} Adoption Research|,}} Adoption Research|Adoption|}}