Template:Infobox writing system: Difference between revisions
(fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a different CSS value) |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
| autoheaders = y | | autoheaders = y | ||
| bodystyle = {{{bodystyle|}}} | | bodystyle = width: 22em; float: right; clear: right; margin: 0.5em 0 0.5em 1em; background: #f8f9fa; border: 1px solid #a2a9b1; padding: 0.2em; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}} | ||
| bodyclass = infobox vcard | |||
| headerstyle = background:#ddd; color:inherit; | | headerstyle = background:#ddd; color:inherit; | ||
| labelstyle = padding-right:0.6em;<!-- ensures at least 0.6em between a label's end and its data --> | | labelstyle = padding-right:0.6em;<!-- ensures at least 0.6em between a label's end and its data --> | ||
<!-- Main heading (`|above=`) --> | <!-- Main heading (`|above=`) --> | ||
| abovestyle = | | abovestyle = padding:0.25em; background:{{#switch:{{lc:{{{type|}}}}} | ||
|abjad|[[abjad]]|impure abjad|impure [[abjad]]|consonantary|[[consonantary]]=palegreen | |||
|alphabet|[[alphabet]]=lightblue | |||
|abugida|[[abugida]]=navajowhite | |||
|syllabary|[[syllabary]]=pink | |||
|semisyllabary|[[semisyllabary]]|semi-syllabary|[[semi-syllabary]]=violet | |||
|manual|[[manual alphabets|manual]]|[[manual]]=paleturquoise | |||
|pictographic|[[pictographic]]=palegoldenrod | |||
|ideographic|[[ideographic]]=gold | |||
|logographic|[[logographic]]|[[logosyllabic]]=mistyrose | |||
|stenography|[[stenography]] |shorthand|[[shorthand]] = {{#switch:{{lc:{{{SHtype|}}}}} | |||
|abjad|[[abjad]]|impure abjad|impure [[abjad]]|consonantal|[[consonantal]]=palegreen | |||
|alphabetic|[[alphabetic]]=lightblue | |||
|abugida|[[abugida]]=navajowhite | |||
|syllabic|[[syllabic]]=pink | |||
|semisyllabic|[[semisyllabic]]|semi-syllabary|[[semi-syllabary]]=violet | |||
|undeciphered|[[undeciphered writing systems|undeciphered]]=gainsboro | |||
|alternative|[[list of writing systems#alternative alphabets|alternative]]=khaki | |||
|#default=turquoise | |||
}} | |||
|undeciphered|[[undeciphered writing systems|undeciphered]]=gainsboro | |||
|alternative|[[list of writing systems#alternative alphabets|alternative]]=khaki | |||
|tactile|[[tactile alphabet|tactile]]=white; font-variant:small-caps | |||
|#default=white | |||
}}; color:inherit; | |||
| above = {{{name|{{PAGENAMEBASE}}}}}<br /><div style="font-weight:normal">{{{altname|{{{native_name|}}}}}}</div> | | above = {{{name|{{PAGENAMEBASE}}}}}<br /><div style="font-weight:normal">{{{altname|{{{native_name|}}}}}}</div> | ||
<!-- IMAGE --> | <!-- IMAGE --> | ||
| imagestyle = padding-top:0.4em;padding-bottom:0.4em;{{{imagestyle|}}} | | imagestyle = padding-top:0.4em; padding-bottom:0.4em; {{{imagestyle|}}} | ||
| image | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{sample|}}}|size={{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|alt={{{alt|}}}|class={{{imageclass|skin-invert-image}}}}} | ||
| captionstyle = border-bottom:1px solid #aaa; | | captionstyle = border-bottom:1px solid #aaa; {{{captionstyle|}}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
<!-- TOP --> | <!-- TOP --> | ||
| label3 = Script type | | label3 = Script type | ||
| | | data3 = {{{typedesc-prefix|}}} {{#if:{{{SHline|}}}{{{SHform|}}}{{{SHtype|}}}{{{mode|}}}{{{type|}}} | ||
| {{longitem|style=line-height:1.25em | |||
| {{#if:{{{SHline|}}}|{{{SHline|}}}-line|}} {{{SHform|}}} {{{SHtype|}}} {{{mode|}}} {{{type|}}} | |||
}} | |||
}} {{{typedesc|}}} | |||
| label5 = Creator | | label5 = Creator | ||
| | | data5 = {{{creator|}}} | ||
| label7 = Created | | label7 = Created | ||
| | | data7 = {{#if:{{{date|}}} |{{{date}}} }} | ||
| label9 = Published | | label9 = Published | ||
| | | data9 = {{#if:{{{SHdates|}}}{{{published|}}} | ||
| {{longitem|style=line-height:1.25em | |||
| {{#if:{{{SHdates|}}} |{{{SHdates}}}}} {{#if:{{{published|}}} |{{{published}}}}} | |||
}} | |||
}} | |||
| label11 = {{longitem|Period}} | | label11 = {{longitem|Period}} | ||
| | | data11 = {{{time|}}} | ||
| label13 = Status | | label13 = Status | ||
| | | data13 = {{{status|}}} | ||
| label15 = Direction | | label15 = Direction | ||
| | | data15 = {{#invoke:String2 | ucfirst | {{#invoke:WikidataIB|getValue |P1406 |{{{direction|}}} |qid={{{qid|}}} |onlysourced=no |fwd=ALL}} }} {{{direction comment|}}} | ||
| label17 = Official script | | label17 = Official script | ||
| | | data17 = {{{official script|}}} | ||
| label18 = Region | | label18 = Region | ||
| | | data18 = {{{region|}}} | ||
| label19 = {{longitem|Print basis}} | | label19 = {{longitem|Print basis}} | ||
| | | data19 = {{{print|}}} | ||
| label21 = {{engvar|defaultWord=Romanized |defaultLang=en-US |en-US=Romanized |us=Romanized | gb=Romanised |engvar={{{engvar|}}} }} from | | label21 = {{engvar|defaultWord=Romanized |defaultLang=en-US |en-US=Romanized |us=Romanized | gb=Romanised |engvar={{{engvar|}}} }} from | ||
| | | data21 = {{{romanised-from|{{{romanized-from|}}}}}} | ||
<!-- LANGUAGES --> | <!-- LANGUAGES --> | ||
| label25 = Language | | label25 = Language | ||
| | | data25 = {{{language|}}} | ||
| label26 = Languages | | label26 = Languages | ||
| | | data26 = {{{languages|}}} | ||
<!-- RELATED SCRIPTS --> | <!-- RELATED SCRIPTS --> | ||
| header30= Related scripts | | header30 = Related scripts | ||
| label33 = {{#if:{{{fam1|{{{family|}}}}}} |{{longitem|Parent systems}}}} | | label33 = {{#if:{{{fam1|{{{family|}}}}}} |{{longitem|Parent systems}}}} | ||
| | | data33 = {{#if:{{{fam1|{{{family|}}}}}} | ||
| <div style="padding-top:0.15em;">{{{fam1|{{{family}}}}}} | |||
<ul><li>{{#if:{{{fam2|}}}|{{{fam2}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam3|}}}|{{{fam3}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam4|}}}|{{{fam4}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam5|}}}|{{{fam5}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam6|}}}|{{{fam6}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam7|}}}|{{{fam7}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam8|}}}|{{{fam8}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam9|}}}|{{{fam9}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam10|}}}|{{{fam10}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam11|}}}|{{{fam11}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam12|}}}|{{{fam12}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam13|}}}|{{{fam13}}} | |||
<ul style="margin-left:0.8em;"><li>{{#if:{{{fam14|}}}|{{{fam14}}} | |||
<ul style="margin-left:0.8em;"> | |||
<li>{{#if:{{{fam15|}}} |{{{fam15}}} <ul style="margin-left:0.3em;"><li>{{{name|{{PAGENAMEBASE}}}}}</li></ul> |{{{name|{{PAGENAMEBASE}}}}} }}</li> | |||
</ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
|{{{name|{{PAGENAMEBASE}}}}}}}</li></ul> | |||
</div> | |||
}} | |||
| label37 = {{longitem|Child systems}} | | label37 = {{longitem|Child systems}} | ||
| | | data37 = {{{children|}}} | ||
| label39 = {{longitem|Sister systems}} | | label39 = {{longitem|Sister systems}} | ||
| | | data39 = {{{sisters|}}} | ||
<!-- ISO 15924 --> | <!-- ISO 15924 --> | ||
| header40= ISO 15924 | | header40 = ISO 15924 | ||
| label43 = [[ISO 15924]] | | label43 = [[ISO 15924]] | ||
| | | data43 = {{#if:{{ISO 15924 code|{{{iso15924|}}}|default=}} |{{mono|1={{ISO 15924 code|{{{iso15924|}}} }}}} {{mono|1=({{ISO 15924 number|alpha4={{{iso15924|}}}}})}}, ​{{ISO 15924 name|{{{iso15924|}}}}}{{Main other|[[Category:Scripts with ISO 15924 four-letter codes]]}}}} {{{iso15924 note|}}} | ||
<!-- UNICODE --> | <!-- UNICODE --> | ||
| header50= [[Unicode]] | | header50 = [[Unicode]] | ||
| label53 = {{longitem|Unicode alias}} | | label53 = {{longitem|Unicode alias}} | ||
| | | data53 = {{#if:{{{iso15924|}}} |{{ISO 15924 alias|{{{iso15924|}}}}}}} | ||
| label55 = {{longitem|[[Unicode range]]}} | | label55 = {{longitem|[[Unicode range]]}} | ||
| | | data55 = {{#switch:{{lc:{{{unicode|}}}}} | ||
|no|not|none|not in unicode=Not in Unicode | |||
|#default={{{unicode|}}} | |||
}} | |||
| | | data56 = {{{module|}}} | ||
<!-- FOOTNOTES --> | <!-- FOOTNOTES --> | ||
|header60 = | | header60 = | ||
| | | data61 = {{#if:{{{footnotes|}}} |<div style="border-top:1px solid #aaa; text-align:left;">{{{footnotes}}}</div>}} | ||
| belowclass = noprint selfref | | belowclass = noprint selfref | ||
| belowstyle = text-align:left; background:#eee; color:inherit; | | belowstyle = text-align:left; background:#eee; color:inherit; | ||
| below = {{#switch:{{lc:{{{note|{{{ipa-note|yes}}}}}}}} | | below = {{#switch:{{lc:{{{note|{{{ipa-note|yes}}}}}}}} | ||
|none|no|0= | |||
|#default={{Infobox writing system/ipa-note}} | |||
}} | |||
}}<!-- | }}<!-- | ||
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox writing system with unknown parameters|_VALUE_]]}}|preview = Page using [[Template:Infobox writing system]] with unknown parameter "_VALUE_"|ignoreblank=y | -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox writing system with unknown parameters|_VALUE_]]}}|preview = Page using [[Template:Infobox writing system]] with unknown parameter "_VALUE_"|ignoreblank=y | ||
| SHdates | SHform | SHline | SHtype | alt | altname | bodystyle | caption | captionstyle | children | creator | date | direction comment | direction | engvar | fam10 | fam11 | fam12 | fam13 | fam14 | fam15 | fam1 | fam2 | fam3 | fam4 | fam5 | fam6 | fam7 | fam8 | fam9 | family | footnotes | image size | imagesize | imagestyle | ipa-note | iso15924 note | iso15924 | language | languages | mode | module | name | native_name | note | official script | print | published | qid | region | romanized_from | romanised_from | sample | sisters | status | time | type | typedesc | typedesc-prefix | unicode | | SHdates | SHform | SHline | SHtype | alt | altname | bodystyle | caption | captionstyle | children | creator | date | direction comment | direction | engvar | fam10 | fam11 | fam12 | fam13 | fam14 | fam15 | fam1 | fam2 | fam3 | fam4 | fam5 | fam6 | fam7 | fam8 | fam9 | family | footnotes | image size | imagesize | imagestyle | ipa-note | iso15924 note | iso15924 | language | languages | mode | module | name | native_name | note | official script | print | published | qid | region | romanized_from | romanised_from | sample | sisters | status | time | type | typedesc | typedesc-prefix | unicode | ||
}} | }}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 13:26, 8 January 2026
| name | |
|---|---|
| {200px caption | |
| Script type | type
typedesc |
| Creator | creator |
| Created | date |
| Published | published
|
Period | time |
| Status | status |
Print basis | |
| Languages | languages |
| Related scripts | |
Parent systems | family
|
Child systems | children |
Sister systems | sisters |
| ISO 15924 | |
| ISO 15924 | iso15924 note |
| Unicode | |
| unicode | |
footnotes | |
| This template uses Lua: |
Syntax
{{Infobox writing system
| name =
| altname = <!-- 2ary name -->
| type = <!-- see options below -->
| qid =
<!-- The following three fields, prefixed SH (ShortHand), are used only if the type parameter is set as "shorthand" or "stenography": -->
| SHline = <!-- "light" or "heavy" - heavy-line shorthands distinguish thick and thin strokes -->
| SHtype = <!-- see options below -->
| SHform = <!-- see options below -->
| typedesc = <!-- additional info after the general type -->
| typedesc-prefix = <!-- additional info, such as an adjective, before the general type -->
| creator = <!-- use instead of |jfamN= for artificially created writing systems -->
| date = <!-- date created -->
| published = <!-- date published for shorthands and script reforms -->
| time = <!-- time period in use -->
| official script =
| languages = <!-- major languages using the writing system -->
| fam1 = <!-- use |famN= to specify parent writing systems -->
| fam2 = <!-- up to 15 parent writing systems can be listed, fam1 being the oldest -->
| fam15 =
| print = <!-- the print basis/model of a braille script -->
| sisters = <!-- sister writing systems with common ancestors -->
| children = <!-- child systems -->
| sample = <!-- sample image without Image: prefix -->
| imagesize = <!-- size of sample image -->
| caption = <!-- description of sample image -->
| direction = <!-- writing direction, will be read from Wikidata when empty -->
| direction comment =
| unicode = <!-- Unicode range -->
| iso15924 = <!-- either the ISO 15924 four-letter code or number; will automatically display both -->
| iso15924 note = <!-- more text on the ISO 15924 four-letter codes, e.g. variants, aliases -->
| module = <!-- other templates can be embedded here -->
| footnotes = <!-- some information about the writing system -->
| ipa-note = <!-- set to `none` to cancel IPA warning -->
}}While it is probably important to always list at least the immediate 'parent' of any writing system, it isn't always practical if this number is too large.
`type` parameter
Select color coding with |type= according to the type of writing system:
| Abjad | Alphabet | Abugida | Syllabary | Semisyllabary |
| Manual | Pictographic | Ideographic | Logographic | |
| Stenography | Shorthand | Undeciphered | Alternative | (default) |
Shorthand `SHform`, `SHtype`
SHform, SHtype parameter options
| |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Parameter `direction`
|direction= can be used to enter the directionality. When left unused, the template reads this value from Wikidata.
Parameter `note`
As a bottom there can be shown this note:
This page contains phonetic transcriptions in the International Phonetic Alphabet (IPA). For an introductory guide on IPA symbols, see Help:IPA. For the distinction between [ ], / / and ⟨ ⟩, see IPA § Brackets and transcription delimiters.
Setting |note=none will hide this text.
Example
- From Hebrew alphabet (simplified for demo purposes)
| Hebrew alphabet (no alt name) | |
|---|---|
| {220px | |
| Script type | Impure abjad
|
Period | 2nd–1st century BCE to present[1] |
| Direction | Right-to-left |
| Languages | Hebrew, Yiddish |
| Related scripts | |
Parent systems | Egyptian hieroglyphs
|
Child systems | Yiddish alphabet |
Sister systems | |
| ISO 15924 | |
| ISO 15924 | Hebr (125), Hebrew |
| Unicode | |
Unicode alias | Hebrew |
| |
{{Infobox writing system
| name = Hebrew alphabet
| qid = Q33513
| altname = (alt name here, expected in script)
| sample = Alefbet ivri.svg
| imagesize = 220px
| type = Impure [[abjad]]
| languages = [[Hebrew language|Hebrew]], [[Yiddish]]
| time = 2nd–1st century BCE to present<ref>[https://www.britannica.com/topic/Hebrew-alphabet Hebrew alphabet]</ref>
| fam1 = [[Egyptian hieroglyphs]]
| fam2 = [[Proto-Sinaitic script]]
| fam3 = [[Phoenician alphabet]]
| fam4 = [[Aramaic alphabet]]
| sisters = {{Plainlist|
* [[Arabic alphabet|Arabic]]
* [[Nabataean alphabet|Nabataean]]
* [[Syriac alphabet|Syriac]]
}}
| children = [[Yiddish alphabet]]
| direction = right-to-left
| unicode = {{Plainlist|
* [https://www.unicode.org/charts/PDF/U0590.pdf U+0590 to U+05FF]<br />Hebrew,
* [https://www.unicode.org/charts/PDF/UFB00.pdf U+FB1D to U+FB4F]<br />Alphabetic Presentation Forms
}}
| iso15924 = Hebr
| iso15924 note =
| footnotes =
| ipa-note =
}}Tracking categories
Template Data
TemplateData for Infobox writing system
Template Data
|
|---|
|
<templatedata> { "format": "Template:\n\n", "params": { "bodystyle": {}, "type": { "type": "string", "suggestedvalues": [ "Abjad, Alphabet, Abugida, Syllabary, Semisyllabary, Manual, Pictographic, Ideographic, Logographic, Stenography, Shorthand, Undeciphered, Alternative, (default) " ] }, "SHtype": {}, "SHform": {}, "mode": {}, "name": {}, "altname": { "description": "Secondary name", "type": "string" }, "native_name": { "description": "Name in the system itself" }, "imagestyle": {}, "sample": { "description": "Sample image, WITHOUT \"Image:\" prefix", "type": "wiki-file-name" }, "image size": { "description": "Sample image's size" }, "imagesize": {}, "alt": { "description": "Text substituting the image", "example": "Character sample", "type": "string" }, "captionstyle": {}, "caption": { "description": "Text displayed under the sample image", "example": "From Description of the New Alphabet, 1999", "type": "string" }, "SHline": {}, "typedesc": { "description": "For providing additional info after a general type", "type": "string" }, "languages": { "description": "Major languages using the writing system", "type": "string" }, "creator": { "description": "Use instead of jfamN for artificially created writing systems", "type": "string" }, "date": { "description": "Date created" }, "SHdates": {}, "published": { "description": "Date published - for shorthands and script reforms", "example": "1999", "type": "string" }, "time": { "description": "Time period during which system was in use", "example": "20th century", "type": "string" }, "status": {}, "fam1": { "description": "Use famN to specify parent writing system/s.", "type": "string" }, "family": {}, "fam2": { "description": "Up to 15 parent writing systems can be listed, fam1 being the oldest.", "type": "string" }, "fam3": { "description": "Up to 15 parent writing systems can be listed, fam1 being the oldest.", "type": "string" }, "fam4": { "description": "Up to 15 parent writing systems can be listed, fam1 being the oldest.", "type": "string" }, "fam5": { "description": "Up to 15 parent writing systems can be listed, fam1 being the oldest.", "type": "string" }, "fam6": { "description": "Up to 15 parent writing systems can be listed, fam1 being the oldest.", "type": "string" }, "fam7": { "description": "Up to 15 parent writing systems can be listed, fam1 being the oldest.", "type": "string" }, "fam8": {}, "fam9": {}, "fam10": {}, "fam11": {}, "fam12": {}, "fam13": {}, "fam14": {}, "fam15": {}, "print": {}, "children": {}, "sisters": {}, "iso15924": {}, "iso15924 note": {}, "unicode": {}, "module": {}, "footnotes": {}, "note": {}, "direction": {}, "qid": {}, "ipa-note": {}, "direction comment": {}, "official script": {}, "region": {}, "engvar": {}, "romanised_from": {}, "romanized_from": {}, "language": {} }, "paramOrder": [ "bodystyle", "type", "SHtype", "SHform", "mode", "name", "altname", "native_name", "imagestyle", "sample", "image size", "imagesize", "alt", "captionstyle", "caption", "SHline", "typedesc", "languages", "creator", "date", "SHdates", "published", "time", "status", "fam1", "family", "fam2", "fam3", "fam4", "fam5", "fam6", "fam7", "fam8", "fam9", "fam10", "fam11", "fam12", "fam13", "fam14", "fam15", "print", "children", "sisters", "iso15924", "iso15924 note", "unicode", "module", "footnotes", "note", "qid", "direction", "direction comment", "ipa-note", "official script", "region", "engvar", "romanised_from", "romanized_from", "language" ], "description": "Information box about a writing system" } </templatedata> |