Template:Infobox officeholder: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(Tested; nationality hidden if country found in |birth_name= value matches the country name from the demonym (adjective) found in |nationality= value, per documentation)
m (delink conditional)
Line 1,499: Line 1,499:
| label10 = Nationality
| label10 = Nationality
| data10 = {{#switch:{{{nationality|}}}
| data10 = {{#switch:{{{nationality|}}}
| {{#ifeq:{{Find country|{{{birth_place|}}}}}|{{GetCountryNameFromAdjective|{{{nationality|}}}}}|{{{nationality|}}}}} =
| {{#ifeq:{{Find country|{{{birth_place|}}}}}|{{GetCountryNameFromAdjective|{{delink|{{{nationality|}}}}}}}|{{{nationality|}}}}} =
| #default = {{{nationality|}}} }}
| #default = {{{nationality|}}} }}