Difference between revisions of "Template:Get surname"
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: {{#explode: {{{1|}}} | |-1}} | + | {{#switch: {{#sub: {{#explode: {{{1|}}} | |-1}}| 0|1}} |
− | | 1 | + | |1 |
− | | 2 | + | |2 |
− | | 3 | + | |3 |
− | | 4 | + | |4 |
− | | 5 | + | |5 |
− | | 6 | + | |6 |
− | | 7 | + | |7 |
− | | 8 | + | |8 |
− | | 9 | + | |9 = {{#explode: {{{1|}}} | |-3}} |
+ | }} | ||
+ | {{#switch: {{#explode: {{{1|}}} | |-1}} | ||
| jr | | jr | ||
| Jr | | Jr |