Clan History

Welcome to Clan-History, your gateway to the rich tapestry of our family's legacy.

Heritage Flags - Flag Code Reference

This page is a reference for the flag codes used by the Heritage Flags mod. Use these codes in:

Flags are served from flagcdn.com (free, no account needed). The CDN serves SVG files only. You can also download those SVG files for local hosting.

Image formats: When hosting images locally, you are not limited to SVG. Any format your browser supports will work -- SVG, PNG, JPG, WebP, or GIF. SVG is recommended for flags because it scales perfectly at any size, but a landscape photo as a JPG or a coat of arms as a PNG works just as well.

Local Hosting Options

Heritage Flags offers two ways to serve images from your own server, and they work together:

Option Where to set it How it works
Global local path Mod Manager → Edit Options → $chf_local_path Points all flags at a folder on your server. Files must be named {code}.svg (e.g. gb-eng.svg, us.svg). Best for hosting your entire flag collection locally.
Per-code local URL Admin → Miscellaneous → Heritage Flags → Local Flags Sets a full URL for one specific flag code. Any image format. Any location on your server. Takes priority over the global path. Best for overriding just a few specific flags -- e.g. an England flag with a border, or a Yorkshire landscape -- while everything else loads from the CDN.

The lookup order is: Local Flags table (per-code) → Global local path (folder) → CDN (flagcdn.com).


Standard ISO Codes (ISO 3166-1 alpha-2)

Two-letter lowercase codes for sovereign nations. These are the codes recognised by the Heritage Flags built-in mapping array and by flagcdn.com.

British Isles

Code Flag Country / Region
gb-eng gb-eng England
gb-sct gb-sct Scotland
gb-wls gb-wls Wales
gb-nir gb-nir Northern Ireland
gb gb United Kingdom
ie ie Ireland
im im Isle of Man
je je Jersey
gg gg Guernsey

Western Europe

Code Flag Country / Region
fr fr France
de de Germany
nl nl Netherlands
be be Belgium
lu lu Luxembourg
ch ch Switzerland
at at Austria
li li Liechtenstein
mc mc Monaco
ad ad Andorra
gi gi Gibraltar

Southern Europe

Code Flag Country / Region
it it Italy
es es Spain
pt pt Portugal
gr gr Greece
mt mt Malta
va va Vatican City
sm sm San Marino
cy cy Cyprus
al al Albania
me me Montenegro
ba ba Bosnia and Herzegovina
hr hr Croatia
rs rs Serbia
si si Slovenia
mk mk North Macedonia
xk xk Kosovo

Northern Europe

Code Flag Country / Region
se se Sweden
no no Norway
dk dk Denmark
fi fi Finland
is is Iceland
ee ee Estonia
lv lv Latvia
lt lt Lithuania

Eastern Europe

Code Flag Country / Region
pl pl Poland
cz cz Czech Republic
sk sk Slovakia
hu hu Hungary
ro ro Romania
bg bg Bulgaria
ua ua Ukraine
ru ru Russia
by by Belarus
md md Moldova

North America

Code Flag Country / Region
us us United States
ca ca Canada
mx mx Mexico
pr pr Puerto Rico
cu cu Cuba
jm jm Jamaica
ht ht Haiti
do do Dominican Republic
tt tt Trinidad and Tobago
bb bb Barbados

Central & South America

Code Flag Country / Region
br br Brazil
ar ar Argentina
cl cl Chile
co co Colombia
pe pe Peru
ve ve Venezuela
ec ec Ecuador
bo bo Bolivia
py py Paraguay
uy uy Uruguay
gt gt Guatemala
hn hn Honduras
sv sv El Salvador
ni ni Nicaragua
cr cr Costa Rica
pa pa Panama

Middle East

Code Flag Country / Region
tr tr Turkey
il il Israel
ps ps Palestine
jo jo Jordan
lb lb Lebanon
sy sy Syria
iq iq Iraq
ir ir Iran
sa sa Saudi Arabia
ae ae United Arab Emirates
kw kw Kuwait
qa qa Qatar
bh bh Bahrain
om om Oman
ye ye Yemen

Africa

Code Flag Country / Region
eg eg Egypt
dz dz Algeria
ma ma Morocco
tn tn Tunisia
ly ly Libya
za za South Africa
ng ng Nigeria
ke ke Kenya
et et Ethiopia
gh gh Ghana
tz tz Tanzania
ug ug Uganda
sn sn Senegal
cm cm Cameroon
ci ci Ivory Coast
ao ao Angola
mz mz Mozambique
mg mg Madagascar
zw zw Zimbabwe
zm zm Zambia

Asia & Pacific

Code Flag Country / Region
in in India
cn cn China
jp jp Japan
kr kr South Korea
kp kp North Korea
pk pk Pakistan
bd bd Bangladesh
lk lk Sri Lanka
np np Nepal
af af Afghanistan
mm mm Myanmar
th th Thailand
vn vn Vietnam
kh kh Cambodia
la la Laos
my my Malaysia
sg sg Singapore
id id Indonesia
ph ph Philippines
au au Australia
nz nz New Zealand
fj fj Fiji
pg pg Papua New Guinea

Extended Subdivision Codes

Some countries use extended codes for regions with their own flags. Heritage Flags uses these for the British Isles so England, Scotland, Wales, and Northern Ireland each show their own flag rather than the Union Jack.

flagcdn.com supports the four GB home nations and all 50 US states. Other regional subdivisions (Catalonia, Brittany, Orkney etc.) are not available on the CDN. To use those, host your own image and add the code to the Local Flags table in the Heritage Flags admin page.

Code Flag Region
gb-eng gb-eng England
gb-sct gb-sct Scotland
gb-wls gb-wls Wales
gb-nir gb-nir Northern Ireland
us-al us-al Alabama
us-ak us-ak Alaska
us-az us-az Arizona
us-ar us-ar Arkansas
us-ca us-ca California
us-co us-co Colorado
us-ct us-ct Connecticut
us-de us-de Delaware
us-fl us-fl Florida
us-ga us-ga Georgia
us-hi us-hi Hawaii
us-id us-id Idaho
us-il us-il Illinois
us-in us-in Indiana
us-ia us-ia Iowa
us-ks us-ks Kansas
us-ky us-ky Kentucky
us-la us-la Louisiana
us-me us-me Maine
us-md us-md Maryland
us-ma us-ma Massachusetts
us-mi us-mi Michigan
us-mn us-mn Minnesota
us-ms us-ms Mississippi
us-mo us-mo Missouri
us-mt us-mt Montana
us-ne us-ne Nebraska
us-nv us-nv Nevada
us-nh us-nh New Hampshire
us-nj us-nj New Jersey
us-nm us-nm New Mexico
us-ny us-ny New York
us-nc us-nc North Carolina
us-nd us-nd North Dakota
us-oh us-oh Ohio
us-ok us-ok Oklahoma
us-or us-or Oregon
us-pa us-pa Pennsylvania
us-ri us-ri Rhode Island
us-sc us-sc South Carolina
us-sd us-sd South Dakota
us-tn us-tn Tennessee
us-tx us-tx Texas
us-ut us-ut Utah
us-vt us-vt Vermont
us-va us-va Virginia
us-wa us-wa Washington
us-wv us-wv West Virginia
us-wi us-wi Wisconsin
us-wy us-wy Wyoming

Custom Codes for Local Hosting

When using Local Flags in the Heritage Flags admin page, you are not limited to ISO codes. You can use any code you like, as long as:

Custom codes let you go well beyond flags. Some ideas:

Because the mod checks most specific place name first, a custom mapping for yorkshire will win over the built-in england mapping for any person whose birthplace includes Yorkshire, England -- without affecting anyone else from England. You can build an entire tiered image hierarchy, one mapping at a time, mixing CDN flags and your own hosted images freely on the same site.

Example: For a person born in Biggar, Lanarkshire, Scotland:


Where to Find More Codes

 

Knowledge Home    Admin | Misc


Webmaster Message

We make every effort to document our research. If you have something you would like to add, please contact us