Reference · Flag source and framing metadata
LeftOutRecordtype
A code Kuni knows that has no flag in this version, and why.
Import it
import type { LeftOutRecord } from "@johnmorrisdotca/hata/manifest";
Definition
interface LeftOutRecord {
code: string;
kind: "no-flag" | "not-svg" | "licence";
reason: string;
file: string | null;
page: string | null;
licence: string | null;
disputed: boolean;
defaultVariant: string | null;
variants: Variant[];
}
Members
| Name | Type | Description |
|---|---|---|
code | string | The code, as Kuni writes it. |
kind | "no-flag" | "not-svg" | "licence" | Why: |
reason | string | The reason in a sentence. |
file | string | null | The Commons file that was not shipped, where there is one; null otherwise. |
page | string | null | That file's page on Commons; null where there is no file. |
licence | string | null | The licence Commons gives the file, where it was the reason; null otherwise. |
disputed | boolean | True where the place's flag is claimed by more than one authority or community (Northern Ireland). |
defaultVariant | string | null | The |
variants | Variant[] | The flags in real use at a place with none of its own (Northern Ireland: the Union Flag, the former Ulster Banner), each asked for by name; empty for the rest. |
Examples
import { leftOut, type LeftOutRecord } from "@johnmorrisdotca/hata/manifest";
const sahara: LeftOutRecord | null = leftOut("EH");
console.log(sahara?.reason);Western Sahara has no flag of its own on Wikidata. The flag often shown for it is the Sahrawi Arab Democratic Republic's, one claimant's; it is left out rather than chosen for the territory (see docs/decisions.md).What it prints (run when this page was built)