Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference · Medieval banners

medievalAboutfunction

What the banner is, in a sentence, in English or Japanese: whose it was, what it shows and what its source dates.

Import it

import { medievalAbout } from "@johnmorrisdotca/hata/medieval";

Definition

function medievalAbout(id: string, lang?: string): string | null

Parameters

NameTypeDescription
idstring

A banner's id, in any case, with or without med:.

lang (optional)string

"en" (the default), "ja", or a tag such as "ja-JP".

Returns

string | null

The sentence, or null when the set has no such banner.

Examples

import { medievalAbout } from "@johnmorrisdotca/hata/medieval";

console.log(medievalAbout("med:aragon-pallets", "ja")); // "金地に4本の赤い帯。…"
金地に4本の赤い帯。ここでは縦の9本の縞の旗として描きます。アラゴンの紋章で、争いのない最古の物証は1159年のアルフォンソ2世の印章です。

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.31.0.