Difference between revisions of "Template:Get surname"

From Crews Genealogy Wiki: focusing on the Wiregrass south, and related families
Jump to navigation Jump to search
Line 1: Line 1:
 
<!-- check first character of last word for (-->{{#ifeq: <!--get first character of last word -->{{#sub: {{#explode: {{{1|}}} | |-1}}| 0|1}} | ( | {{#explode: {{{1|}}} | |-2}} | <!--do the switch-->
 
<!-- check first character of last word for (-->{{#ifeq: <!--get first character of last word -->{{#sub: {{#explode: {{{1|}}} | |-1}}| 0|1}} | ( | {{#explode: {{{1|}}} | |-2}} | <!--do the switch-->
{{#switch: {{#sub: {{#explode: {{{1|}}} | |-1}}| 0|1}}
+
{{#switch: {{#explode: {{{1|}}} | |-1}}
|1
 
|2
 
|3
 
|4
 
|5
 
|6
 
|7
 
|8
 
|9 = {{#explode: {{{1|}}} | |-2}}
 
}}
 
{{#switch: {{#explode: {{{1|}}} | |-1}}  
 
 
  | jr
 
  | jr
 
  | Jr  
 
  | Jr  
Line 23: Line 12:
 
  | iii = {{#explode: {{{1|}}} | |-2}}  
 
  | iii = {{#explode: {{{1|}}} | |-2}}  
 
  | #default={{#explode: {{{1|}}} | |-1}}
 
  | #default={{#explode: {{{1|}}} | |-1}}
}} }}<noinclude>{{documentation}}</noinclude>
+
}} }}

Revision as of 17:41, 17 February 2019