Template:font: Difference between revisions

5,190 bytes added ,  6 months ago
no edit summary
(Created page with "<includeonly>{|class="infobox wikitable {{#if:{{{compact|}}}|mw-collapsible mw-collapsed}}" style="clear:right;float:right;margin:0 0 1em 1em;width:240px;" |colspan="2" style="text-align:center;"{{!}}<div style="font-size:larger;font-weight:bold;">{{{1}}}</div> {{#if:{{{image|}}}|{{!}}- {{!}}colspan="2"{{!}}[[File:{{{image}}}|center|240x240px]] }} {{#if:{{{range|}}}|{{!}}- !style="font-size:smaller;text-align:start;width:80px;"{{!}}Supported characters {{!}}{{{range}}} }...")
 
No edit summary
 
(13 intermediate revisions by 4 users not shown)
Line 1:
<includeonly>{|class="infobox wikitable {{#if:{{{compact|}}}|mw-collapsible mw-collapsed" data-collapsetext="&minus;" data-expandtext="&plus;"|"}}" style="clear:right;float:right;margin:0 0 1em 1em;width:240px;"
|{{!}}colspan="2" style="text-align:center;"{{!}}<div style="font-size:larger;font-weight:bold;">{{{1}}}</div>{{#if:{{{image|}}}|
{{#if[[File:{{{image|}}}|{{!}}-center{{!}}240x240px{{!}}]]}}{{{caption|}}}
{{#if:{{{alias|}}}|{{!}}-
{{!}}colspan="2"{{!}}[[File:{{{image}}}|center|240x240px]]
!style="font-size:smaller;text-align:start;width:80px;"{{!}}Alternate names
}}
{{!}}{{{alias}}}}}
{{#if:{{{range|}}}|{{!}}-
!style="font-size:smaller;text-align:start;width:80px;" {{!}}Supported characters
{{!}}{{{range}}}}}
{{#if:{{{rangestart|}}}|{{!}}-
}}
!style="font-size:smaller;text-align:start;width:80px;" {{!}}Start of sitelen pona block
{{!}}{{{rangestart}}}}}
{{#if:{{{style|}}}|{{!}}-
!style="font-size:smaller;text-align:start;width:80px;"{{!}}Style
{{!}}{{{style}}}}}
}}
{{#if:{{{system|}}}|{{!}}-
!style="font-size:smaller;text-align:start;width:80px;"{{!}}Writing system
{{!}}{{{system}}}}}
}}
{{#if:{{{author|}}}|{{!}}-
!style="font-size:smaller;text-align:start;width:80px;"{{!}}Author
{{!}}{{{author}}}}}
}}
{{#if:{{{license|}}}|{{!}}-
!style="font-size:smaller;text-align:start;width:80px;"{{!}}License
{{!}}{{{license}}}}}
{{#if:{{{feature|{{{ucsur|{{{ligature|{{{cartouche|{{{long pi|{{{mono|{{{extend|}}}}}}}}}}}}}}}}}}}}}|{{!}}-
}}
{{#if:{{{feature|}}}|{{!}}-
!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{{!}}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|}}}}}
{{!}}{{{feature}}}}}
{{#if:{{{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}}
!style="font-size:smaller;text-align:start;width:80px;"{{!}}First publication
{{!}}{{{start}}}}}
|}</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>
{
"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"
},
"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"
},
"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"
},
"alias": {
"label": "alternate names",
"description": "If the name got published multiple times, it may have had different names",
"type": "string"
}
},
"description": "Font infobox"
}
</templatedata>
</noinclude>