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: {{#explode: {{{1|}}} | (|-2}} | |-2}} | <!--do the switch-->
| + | {{#if: {{#explode: {{#explode: {{{1|}}} | (|-2}} | |-1}} |
− | {{#switch: {{#explode: {{{1|}}} | |-1}}
| + | | |
| + | {{#switch: {{#explode: {{#explode: {{{1|}}} | (|-2}} | |-1}} |
| | jr | | | jr |
| | Jr | | | Jr |
Line 9: |
Line 10: |
| | sr. | | | sr. |
| | Sr. | | | Sr. |
| + | | I |
| + | | i |
| + | | II |
| + | | ii |
| | III | | | III |
− | | iii = {{#explode: {{{1|}}} | |-2}} | + | | iii = {{ucfirst:{{lc:{{#explode: {{#explode: {{#explode: {{{1|}}} | (|-2}} | |-2}} |,|0}}}}}} |
− | | #default={{#explode: {{{1|}}} | |-1}} | + | | #default= {{ucfirst:{{lc:{{#explode: {{#explode: {{{1|}}} | (|-2}} | |-1}}}}}} |
− | }} }} | + | }} |
| + | | |
| + | {{#switch: {{#explode: {{{1|}}}| |-1}} |
| + | | jr |
| + | | Jr |
| + | | jr. |
| + | | Jr. |
| + | | sr |
| + | | Sr |
| + | | sr. |
| + | | Sr. |
| + | | I |
| + | | i |
| + | | II |
| + | | ii |
| + | | III |
| + | | iii = {{lc:{{ucfirst:{{#explode: {{#explode: {{{1|}}}| |-2}} |,|0}}}}}} |
| + | | #default= {{ucfirst:{{lc:{{#explode: {{{1|}}}| |-1}}}}}} |
| + | }} |
| + | }} |