Template:font: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
Jan Ke Tami (talk | contribs) No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
{{!}}{{{alias}}}}} |
{{!}}{{{alias}}}}} |
||
{{#if:{{{range|}}}|{{!}}- |
{{#if:{{{range|}}}|{{!}}- |
||
!style="font-size:smaller;text-align:start;width:80px;"{{!}}Supported characters |
!style="font-size:smaller;text-align:start;width:80px;" {{!}}Supported characters |
||
{{!}}{{{range}}}}} |
{{!}}{{{range}}}}} |
||
{{#if:{{{rangestart|}}}|{{!}}- |
|||
!style="font-size:smaller;text-align:start;width:80px;" {{!}}Start of sitelen pona block |
|||
{{!}}{{{rangestart}}}}} |
|||
{{#if:{{{style|}}}|{{!}}- |
{{#if:{{{style|}}}|{{!}}- |
||
!style="font-size:smaller;text-align:start;width:80px;"{{!}}Style |
!style="font-size:smaller;text-align:start;width:80px;"{{!}}Style |
||
Line 22: | Line 25: | ||
{{#if:{{{feature|{{{ucsur|{{{ligature|{{{cartouche|{{{long pi|{{{mono|{{{extend|}}}}}}}}}}}}}}}}}}}}}|{{!}}- |
{{#if:{{{feature|{{{ucsur|{{{ligature|{{{cartouche|{{{long pi|{{{mono|{{{extend|}}}}}}}}}}}}}}}}}}}}}|{{!}}- |
||
!style="font-size:smaller;text-align:start;width:80px;"{{!}}Features |
!style="font-size:smaller;text-align:start;width:80px;"{{!}}Features |
||
{{!}}<div align="center">{{#if:{{{ucsur|}}}|<span title="Glyphs in UCSUR-assigned codespaces">[[File:ucsur-feature.png{{!}} |
{{!}}<div align="center">{{#if:{{{ucsur|}}}|<span title="Glyphs in UCSUR-assigned codespaces">[[File:ucsur-feature.png{{!}}150px]]</span>}}{{#if:{{{cartouche|}}}|<span title="Cartouches">[[File:cartouche-feature.png{{!}}150px]]</span>}}{{#if:{{{ligature|}}}|<span title="ASCII transcription (aka ligatures)">[[File:ligature-feature.png{{!}}150px]]</span>}}{{#if:{{{mono|}}}|<span title="Monospaced">[[File:monospaced-feature.png{{!}}150px]]</span>}}{{#if:{{{long pi|}}}|<span title="Extended pi">[[File:extended-pi-feature.png{{!}}150px]]</span>}}{{#if:{{{extend|}}}|<span title="Extended glyphs">[[File:extended-character-feature.png{{!}}150px]]</span>}}</div>{{{feature|}}}}} |
||
{{#if:{{{start|}}}|{{!}}- |
{{#if:{{{start|}}}|{{!}}- |
||
!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=a description such as this: "{{tp|linja pona}}" written in the {{tp|linja pona}} font|compact=yes|alias=name the font is also known as}} |
|}</includeonly><noinclude>{{font|font name|author=font creator|feature=Features|system=Writing system|style=handwritten / pixelated / etc|range=Range of characters|rangestart=U+F1900|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|alias=name the font is also known as}} |
||
=== |
===Template data=== |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Line 55: | Line 58: | ||
"description": "A brief description of supported words or characters related to the relevant writing system", |
"description": "A brief description of supported words or characters related to the relevant writing system", |
||
"example": "All UCSUR characters", |
"example": "All UCSUR characters", |
||
"type": "string" |
|||
}, |
|||
"rangestart": { |
|||
"label": "Start of sitelen pona block", |
|||
"description": "The first sitelen pona character to be encoded within a longer sequence of codepoints in the font file - useful to find fonts that share codepoints", |
|||
"example": "U+F1900", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
Latest revision as of 02:48, 23 December 2023
Template data[edit source]
Font infobox
Parameter | Description | Type | Status | |
---|---|---|---|---|
font name | 1 | The full name of the font
| String | required |
Image | image | Filename for an image representing the font
| File | optional |
caption | caption | Caption that describes the image
| String | optional |
Range of supported characters | range | A brief description of supported words or characters related to the relevant writing system
| String | optional |
Start of sitelen pona block | rangestart | The first sitelen pona character to be encoded within a longer sequence of codepoints in the font file - useful to find fonts that share codepoints
| String | optional |
Writing system | system | name of the writing system the font is used in toki pona for, can be multiple
| String | required |
font creator | author | attributed name or names of people who contributed to the font - also important if unknown | String | required |
font license | license | the font's license - also important if unlicensed or licensed informally
| String | required |
UCSUR compliance | ucsur | Font with glyphs in the UCSUR sitelen pona range | Boolean | suggested |
cartouche support | cartouche | Font allows for cartouches to fully wrap around a name | Boolean | suggested |
ASCII transcription | ligature | 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 | Boolean | suggested |
monospaced | mono | Fonts is monospaced, in which each character's width (including margins) takes up the same amount of space | Boolean | suggested |
extended pi | long pi | Fonts allows a variation of pi to extend its horizontal line below multiple succeeding glyphs | Boolean | suggested |
extended characters | extend | Font allows characters other than pi to stretch with extension lines | Boolean | suggested |
more features | feature | Description of other features of the font | String | optional |
first publication | start | When the font got created | Date | optional |
Compact | compact | 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. | Boolean | optional |
alternate names | alias | If the name got published multiple times, it may have had different names | String | optional |