Template:Language: Difference between revisions
From FrathWiki
Jump to navigationJump to search
m (Gah) |
WeepingElf (talk | contribs) |
||
(17 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{|border=1 | {|border=1 cellpadding=4 cellspacing=0 width={{{width|50%}}} class="bordertable" style="margin: 0 0 1em 1em; background: {{{background-color|{{{background|#f9f9f9}}}}}}; font-size: 95%; float: right;" | ||
|colspan="2" bgcolor="{{{heading-background|{{{headingbg|#CCCCCC}}}}}}" align="center" |{{ #if: {{{English|}}} | '''{{{English|}}}''' | {{ #if: {{{english|}}} | '''{{{english|}}}''' | '''English name''' }} }} {{ #if: {{{native|}}} | {{ #if: {{{English|}}} | <br>'''''{{{native|}}}''''' | {{ #if: {{{english|}}} | <br>'''''{{{native|}}}''''' | '''''<br>Native name'''''}} }} | |colspan="2" bgcolor="{{{heading-background|{{{headingbg|#CCCCCC}}}}}}" align="center" |{{#if: {{{dialect english|}}} | '''{{{dialect english|}}}''' | {{#if: {{{dialect English|}}} | '''{{{dialect English|}}}''' }} }} {{#if: {{{dialect native|}}} | {{#if: {{{dialect english|}}} | <br> | {{#if: {{{dialect English|}}} | <br> }} }} '''''{{{dialect native|}}}''''' }} {{#if: {{{dialect native|}}} || {{#if: {{{dialect english|}}} || {{#if: {{{dialect English|}}} || {{ #if: {{{English|}}} | '''{{{English|}}}''' | {{ #if: {{{english|}}} | '''{{{english|}}}''' | {{ #if: {{{native|}}} | | '''English name''' }} }} }} {{ #if: {{{native|}}} | {{ #if: {{{English|}}} | <br>'''''{{{native|}}}''''' | {{ #if: {{{english|}}} | <br> '''''{{{native|}}}'''''| '''''{{{native|}}}''''' |}} }} |{{ #if: {{{English|}}} | | {{ #if: {{{english|}}} | | <br>'''''Native name'''''}} }} }} }} }} }} | ||
|- | |- | ||
|valign="top"|Spoken in: | |valign="top"|Spoken in: | ||
||{{{country|(country)}}} {{ #if: {{{native-country|}}} | ({{{native-country|}}}) | {{ #if: {{{nativecountry|}}} | ({{{nativecountry|}}}) }} }} | ||{{{country|(country)}}} {{ #if: {{{native-country|}}} | ({{{native-country|}}}) | {{ #if: {{{nativecountry|}}} | ({{{nativecountry|}}}) }} }} | ||
|- | |- | ||
|valign="top"| | |valign="top"|[[Conworld]]: | ||
||{{{universe|(universe)}}} | ||{{{universe|(universe)}}} | ||
|- | |- | ||
Line 15: | Line 15: | ||
:{{{branch|(Branch)}}} | :{{{branch|(Branch)}}} | ||
::{{{subbranch|(Subbranch)}}} | ::{{{subbranch|(Subbranch)}}} | ||
:::'''{{{english|{{{English|{{{native|(Language)}}}}}}}}}''' | :::{{#if: {{{dialect native|}}} ||{{#if: dialect english ||{{#if: dialect English ||'''}}}} }}{{{english|{{{English|{{{native|(Language)}}}}}}}}}{{#if: {{{dialect native|}}} ||{{#if: dialect english ||{{#if: dialect English ||'''}}}} }} | ||
{{#if: {{{dialect native|}}} |::::''' {{{dialect english|{{{dialect English|}}}}}} (''{{{dialect native|}}}'')''' | {{#if: {{{dialect english|}}} | '''{{{dialect english|}}}''' | {{#if: {{{dialect English|}}} | '''{{{dialect English|}}}''' | }} }} }} | |||
|- | |- | ||
|valign="top"|Basic word order: | |valign="top"|[[Basic word order]]: | ||
||{{{word-order|{{{wordorder|}}}}}} | ||{{{word-order|{{{wordorder|}}}}}} | ||
|- | |- | ||
|valign="top"|Morphological type: | |valign="top"|[[Morphological type]]: | ||
||{{{morphological-type|{{{type|}}} }}} | ||{{{morphological-type|{{{type|}}} }}} | ||
|- | |- | ||
|valign="top"|Morphosyntactic alignment: | |valign="top"|[[Morphosyntactic alignment]]: | ||
||{{{morphosyntactic-alignment|{{{alignment|}}} }}} | ||{{{morphosyntactic-alignment|{{{alignment|}}} }}} | ||
|- | |||
|valign="top"|[[Writing system]]: | |||
||{{{writing-system|{{{writing|}}} }}} | |||
|- | |- | ||
|colspan="2" bgcolor="{{{heading-background|{{{headingbg|#CCCCCC}}}}}}" align="center" |'''Created by:''' | |colspan="2" bgcolor="{{{heading-background|{{{headingbg|#CCCCCC}}}}}}" align="center" |'''Created by:''' | ||
Line 59: | Line 63: | ||
;morphosyntactic-alignment | ;morphosyntactic-alignment | ||
:;alignment :The basic morphosyntactic alignment of the language, e.g. ''Nominative-Accusative''. | :;alignment :The basic morphosyntactic alignment of the language, e.g. ''Nominative-Accusative''. | ||
;writing-system | |||
:;writing :The writing sytem used by the language. | |||
;author :The name of the author of the language (probably your name). | ;author :The name of the author of the language (probably your name). | ||
;date :The date when the language was created (begun or completed), usually abbreviated to the year. | ;date :The date when the language was created (begun or completed), usually abbreviated to the year. | ||
=== Optional data parameters === | |||
;dialect native : the native name of the dialect, if the article is about a dialect rather than about a language. | |||
;dialect english | |||
:;dialect English : the English name of the dialect if the article is about a dialect rather than about a language. | |||
=== Optional formatting parameters === | === Optional formatting parameters === | ||
Line 88: | Line 99: | ||
| type = inflecting | | type = inflecting | ||
| alignment = nominative-accusative | | alignment = nominative-accusative | ||
| writing = Latin alphabet | |||
| author = unknown | | author = unknown | ||
| date = 1000 C.E. | | date = 1000 C.E. | ||
Line 108: | Line 120: | ||
| type = inflecting | | type = inflecting | ||
| alignment = nominative-accusative | | alignment = nominative-accusative | ||
| writing = Latin alphabet | |||
| author = unknown | | author = unknown | ||
| date = 1000 C.E. | | date = 1000 C.E. | ||
Line 113: | Line 126: | ||
| headingbg = coral | | headingbg = coral | ||
| width = 33% | | width = 33% | ||
}}</nowiki></pre></noinclude> | }}</nowiki></pre> | ||
=== Example of a dialect === | |||
{{Language| | |||
| English = Swedish | |||
| native = Svenska | |||
| dialect native = Göteborgska | |||
| dialect english = Gothenburgish | |||
| country = Sweden | |||
| nativecountry = Sverige | |||
| universe = Real world | |||
| speakers = 9 million | |||
| family = Indo-European | |||
| branch = Germanic | |||
| subbranch = North Germanic | |||
| wordorder = SVO/V<sub>2</sub> | |||
| type = inflecting | |||
| alignment = nominative-accusative | |||
| writing = Latin alphabet | |||
| author = unknown | |||
| date = 1650 C.E. | |||
| background = white | |||
| headingbg = coral | |||
| width = 50% | |||
}} | |||
<pre><nowiki>{{Language| | |||
| English = Swedish | |||
| native = Svenska | |||
| dialect native = Göteborgska | |||
| dialect english = Gothenburgish | |||
| country = Sweden | |||
| nativecountry = Sverige | |||
| universe = Real world | |||
| speakers = 9 million | |||
| family = Indo-European | |||
| branch = Germanic | |||
| subbranch = North Germanic | |||
| wordorder = SVO/V<sub>2</sub> | |||
| type = inflecting | |||
| alignment = nominative-accusative | |||
| writing = Latin alphabet | |||
| author = unknown | |||
| date = 1650 C.E. | |||
| background = white | |||
| headingbg = coral | |||
| width = 33% | |||
}}</nowiki></pre> | |||
[[Category:Templates]] | |||
</noinclude> |
Latest revision as of 13:10, 8 February 2019
English name Native name | |
Spoken in: | (country) |
Conworld: | (universe) |
Total speakers: | (number of speakers) |
Genealogical classification: | (Family)
|
Basic word order: | |
Morphological type: | |
Morphosyntactic alignment: | |
Writing system: | |
Created by: | |
author | date |
Named parameters for this template
This template recognises the following named parameters:
Legend:
- parameter name
-
- [alternate parameter name]
- explanation
Parameter names are lowercase by default, although English may be Uppercase
- english
-
- English
- The English name of the language, e.g. Swedish.
- native
- The native name of the language, e.g. Svenska.
- country
- The name of the country where the language is spoken, e.g. Sweden.
- native-country
-
- nativecountry
- The native name of the country (if different from country), e.g. Sverige.
- universe
- The name of the universe or timeline where the language is spoken, e.g. Real world.
- speakers
- The number of speakers of the language, e.g. 9 million.
- family
- The name of the language family the language belongs to, e.g. Indo-European.
- branch
- The name of the branch within its language family the language belongs to, e.g. Germanic.
- subbranch
- The name of the subbranch within its language family the language belongs to, e.g. North Germanic.
- word-order
-
- wordorder
- The basic word order type of the language, e.g. SVO (although Swedish is rather V2! ☺)
- morphological-type
-
- type
- The basic morphological type of the language, e.g. inflecting.
- morphosyntactic-alignment
-
- alignment
- The basic morphosyntactic alignment of the language, e.g. Nominative-Accusative.
- writing-system
-
- writing
- The writing sytem used by the language.
- author
- The name of the author of the language (probably your name).
- date
- The date when the language was created (begun or completed), usually abbreviated to the year.
Optional data parameters
- dialect native
- the native name of the dialect, if the article is about a dialect rather than about a language.
- dialect english
-
- dialect English
- the English name of the dialect if the article is about a dialect rather than about a language.
Optional formatting parameters
- background-color
-
- background
- The background color of the table (default value: #f9f9f9).
- heading-background
-
- headingbg
- The background color of the heading cells (default value: #CCCCCC).
- width
- The width of the table; defaults to 50% of window width, but can be defined in pixels (e.g. 300) or a percentage of the window width (e.g. 33%)
Example
(I choose a real-world example so that everyone will recognise everything!)
Use {{subst:Template:Language-new}}!
Swedish Svenska | |
Spoken in: | Sweden (Sverige) |
Conworld: | Real world |
Total speakers: | 9 million |
Genealogical classification: | Indo-European
|
Basic word order: | SVO/V2 |
Morphological type: | inflecting |
Morphosyntactic alignment: | nominative-accusative |
Writing system: | Latin alphabet |
Created by: | |
unknown | 1000 C.E. |
{{Language| | English = Swedish | native = Svenska | country = Sweden | nativecountry = Sverige | universe = Real world | speakers = 9 million | family = Indo-European | branch = Germanic | subbranch = North Germanic | wordorder = SVO/V<sub>2</sub> | type = inflecting | alignment = nominative-accusative | writing = Latin alphabet | author = unknown | date = 1000 C.E. | background = white | headingbg = coral | width = 33% }}
Example of a dialect
Gothenburgish Göteborgska | |
Spoken in: | Sweden (Sverige) |
Conworld: | Real world |
Total speakers: | 9 million |
Genealogical classification: | Indo-European
|
Basic word order: | SVO/V2 |
Morphological type: | inflecting |
Morphosyntactic alignment: | nominative-accusative |
Writing system: | Latin alphabet |
Created by: | |
unknown | 1650 C.E. |
{{Language| | English = Swedish | native = Svenska | dialect native = Göteborgska | dialect english = Gothenburgish | country = Sweden | nativecountry = Sverige | universe = Real world | speakers = 9 million | family = Indo-European | branch = Germanic | subbranch = North Germanic | wordorder = SVO/V<sub>2</sub> | type = inflecting | alignment = nominative-accusative | writing = Latin alphabet | author = unknown | date = 1650 C.E. | background = white | headingbg = coral | width = 33% }}