|
|
Line 19: |
Line 19: |
| }} | | }} |
|
| |
|
| == Named parameters for this template == | | == 1 == |
| | |
| This template recognises the following named parameters:
| |
| | |
| <div style="width: 250px; border: 1px solid; padding: 6px; float: none;">
| |
| '''''Legend:'''''
| |
| ;parameter name
| |
| :;[alternate parameter name] :explanation
| |
| </div>
| |
| | |
| 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 ''V<sub>2</sub>''! {{-)}})
| |
| ;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''.
| |
| ;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 <nowiki>{{subst:</nowiki>[[:Template:Language-new]]<nowiki>}}</nowiki>!
| |
| | |
| {{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
| |
| | author = unknown
| |
| | date = 1000 C.E.
| |
| | background = white
| |
| | headingbg = coral
| |
| | width = 50%
| |
| }}
| |
| | |
| <pre><nowiki>{{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
| |
| | author = unknown
| |
| | date = 1000 C.E.
| |
| | background = white
| |
| | headingbg = coral
| |
| | width = 33%
| |
| }}</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
| |
| | 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
| |
| | author = unknown
| |
| | date = 1650 C.E.
| |
| | background = white
| |
| | headingbg = coral
| |
| | width = 33%
| |
| }}</nowiki></pre></noinclude>
| |