Template:font: Difference between revisions

From sona pona, the Toki Pona wiki
Content added Content deleted
m (improved compact form!)
(template metadata)
Line 23: Line 23:
!style="font-size:smaller;text-align:start;width:80px;"{{!}}First publication
!style="font-size:smaller;text-align:start;width:80px;"{{!}}First publication
{{!}}{{{start}}}}}
{{!}}{{{start}}}}}
|}</includeonly><noinclude>{{font|font name|author=font creator|feature=Features|system=Writing system|style=handwritten / pixelated / etc|range=Range of characters|license=License name|start=When the font got created|ucsur=yes|ligature=yes|cartouche=yes|long pi=yes|mono=yes|extend=yes|image=Linja_pona.svg|caption="{{tp|linja pona}}" written in the {{tp|linja pona}} font|compact=yes}}
|}</includeonly><noinclude>{{font|font name|author=font creator|feature=Features|system=Writing system|style=handwritten / pixelated / etc|range=Range of characters|license=License name|start=When the font got created|ucsur=yes|ligature=yes|cartouche=yes|long pi=yes|mono=yes|extend=yes|image=Linja_pona.svg|caption=a description such as this: "{{tp|linja pona}}" written in the {{tp|linja pona}} font|compact=yes}}
===TemplateData===
<templatedata>
{
"params": {
"1": {
"label": "font name",
"description": "The full name of the font",
"example": "linja sike",
"type": "string",
"required": true
},
"image": {
"label": "Image",
"description": "Filename for an image representing the font",
"example": "Linja_pona.svg",
"type": "wiki-file-name"
},
"caption": {
"label": "caption",
"description": "Caption that describes the image",
"example": "linja pona written in the linja pona font",
"type": "string"
},
"range": {
"label": "Range of supported characters",
"description": "A brief description of supported words or characters related to the relevant writing system",
"example": "All UCSUR characters",
"type": "string"
},
"system": {
"label": "Writing system",
"description": "name of the writing system the font is used in toki pona for, can be multiple",
"example": "sitelen pona",
"type": "string",
"required": true
},
"author": {
"label": "font creator",
"description": "attributed name or names of people who contributed to the font - also important if unknown",
"type": "string",
"required": true
},
"license": {
"label": "font license",
"description": "the font's license - also important if unlicensed or licensed informally",
"example": "OFL",
"type": "string",
"required": true
},
"ucsur": {
"label": "UCSUR compliance",
"description": "Font with glyphs in the UCSUR sitelen pona range",
"type": "boolean",
"suggested": true
},
"cartouche": {
"label": "cartouche support",
"description": "Font allows for cartouches to fully wrap around a name",
"type": "boolean",
"suggested": true
},
"ligature": {
"label": "ASCII transcription",
"description": "Font allows for ASCII transcription: typing Toki Pona words in the Latin alphabet results in the words getting converted into standalone symbols through OpenType ligatures",
"type": "boolean",
"suggested": true
},
"mono": {
"label": "monospaced",
"description": "Fonts is monospaced, in which each character's width (including margins) takes up the same amount of space",
"type": "boolean",
"suggested": true
},
"long pi": {
"label": "extended pi",
"description": "Fonts allows a variation of pi to extend its horizontal line below multiple succeeding glyphs",
"type": "boolean",
"suggested": true
},
"extend": {
"label": "extended characters",
"description": "Font allows characters other than pi to stretch with extension lines",
"type": "boolean",
"suggested": true
},
"feature": {
"label": "more features",
"description": "Description of other features of the font",
"type": "string"
},
"start": {
"label": "first publication",
"description": "When the font got created",
"type": "date"
},
"compact": {
"label": "Compact",
"description": "When enabled, the box will show only the name, the image and the caption at first. It can still be expanded to view the full content.",
"type": "boolean"
}
},
"description": "Font infobox"
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 21:39, 9 November 2023

font name
a description such as this: "linja pona" written in the linja pona font
Supported characters Range of characters
Style handwritten / pixelated / etc
Writing system Writing system
Author font creator
License License name
Features
Features
First publication When the font got created

TemplateData

Font infobox

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
font name1

The full name of the font

Example
linja sike
Stringrequired
Imageimage

Filename for an image representing the font

Example
Linja_pona.svg
Fileoptional
captioncaption

Caption that describes the image

Example
linja pona written in the linja pona font
Stringoptional
Range of supported charactersrange

A brief description of supported words or characters related to the relevant writing system

Example
All UCSUR characters
Stringoptional
Writing systemsystem

name of the writing system the font is used in toki pona for, can be multiple

Example
sitelen pona
Stringrequired
font creatorauthor

attributed name or names of people who contributed to the font - also important if unknown

Stringrequired
font licenselicense

the font's license - also important if unlicensed or licensed informally

Example
OFL
Stringrequired
UCSUR complianceucsur

Font with glyphs in the UCSUR sitelen pona range

Booleansuggested
cartouche supportcartouche

Font allows for cartouches to fully wrap around a name

Booleansuggested
ASCII transcriptionligature

Font allows for ASCII transcription: typing Toki Pona words in the Latin alphabet results in the words getting converted into standalone symbols through OpenType ligatures

Booleansuggested
monospacedmono

Fonts is monospaced, in which each character's width (including margins) takes up the same amount of space

Booleansuggested
extended pilong pi

Fonts allows a variation of pi to extend its horizontal line below multiple succeeding glyphs

Booleansuggested
extended charactersextend

Font allows characters other than pi to stretch with extension lines

Booleansuggested
more featuresfeature

Description of other features of the font

Stringoptional
first publicationstart

When the font got created

Dateoptional
Compactcompact

When enabled, the box will show only the name, the image and the caption at first. It can still be expanded to view the full content.

Booleanoptional