Template:Language: Difference between revisions
From FrathWiki
Jump to navigationJump to search
m (Changed all param names in template body to Title Case) |
(Case of parameter names) |
||
Line 1: | Line 1: | ||
{|border=1 align=right cellpadding=4 cellspacing=0 width={{{ | {|border=1 align=right cellpadding=4 cellspacing=0 width={{{width|300}}} style="margin: 0 0 1em 1em; background: {{{background-color|{{{background|#f9f9f9}}}}}}; border: 1px #aaaaaa solid; border-collapse: collapse; font-size: 95%; float: right;" | ||
|colspan="2" bgcolor="{{{ | |colspan="2" bgcolor="{{{heading-background|{{{headingbg|#CCCCCC}}}}}}" align="center" |'''{{{English|{{{english|English name}}}}}}'''{{ #if: {{{native|}}} | <br>'''{{{native|Native name}}}''' |}} | ||
|- | |- | ||
|valign="top"|Spoken in: | |valign="top"|Spoken in: | ||
||{{{ | ||{{{country|(country)}}} {{ #if: {{{native-country|}}} | ({{{native-country|}}}) | {{ #if: {{{nativecountry|}}} | ({{{nativecountry|}}}) }} }} | ||
|- | |- | ||
|valign="top"|Timeline/Universe: | |valign="top"|Timeline/Universe: | ||
||{{{ | ||{{{universe|(universe)}}} | ||
|- | |- | ||
|valign="top"|Total speakers: | |valign="top"|Total speakers: | ||
||{{{ | ||{{{speakers|(number of speakers)}}} | ||
|- | |- | ||
|valign="top"|Genealogical classification: | |valign="top"|Genealogical classification: | ||
||{{{ | ||{{{family|(Family)}}}<br> | ||
{{{ | {{{branch|(Branch)}}}<br> | ||
{{{ | {{{subbranch|(Subbranch)}}}<br> | ||
'''{{{English|{{{ | '''{{{english|{{{English|{{{native|(Language)}}}}}}}}}''' | ||
|- | |- | ||
|valign="top"|Basic word order: | |valign="top"|Basic word order: | ||
||{{{ | ||{{{word-order|{{{wordorder|}}}}}} | ||
|- | |- | ||
|valign="top"|Morphological type: | |valign="top"|Morphological type: | ||
||{{{ | ||{{{morphological-type|{{{type|}}} }}} | ||
|- | |- | ||
|valign="top"|Morphosyntactic alignment: | |valign="top"|Morphosyntactic alignment: | ||
||{{{ | ||{{{morphosyntactic-alignment|{{{alignment|}}} }}} | ||
|- | |- | ||
|colspan="2" bgcolor="{{{ | |colspan="2" bgcolor="{{{heading-background|{{{headingbg|#CCCCCC}}}}}}" align="center" |'''Created by:''' | ||
|- | |- | ||
||{{{ | ||{{{author|author}}} ||{{{date|date}}} | ||
|}<noinclude> | |}<noinclude> | ||
== Named parameters for this template == | == Named parameters for this template == | ||
Line 34: | Line 34: | ||
This template recognises the following named parameters: | This template recognises the following named parameters: | ||
<div style="width: | <div style="width: 250px; border: 1px solid; padding: 6px; float: none;"> | ||
'''''Legend:''''' | '''''Legend:''''' | ||
; | ;parameter name | ||
:;[ | :;[alternate parameter name] :explanation | ||
</div> | </div> | ||
;English :The English name of the language, e.g. ''Swedish''. | 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''. | ;native :The native name of the language, e.g. ''Svenska''. | ||
;country :The name of the country where the language is spoken, e.g. ''Sweden''. | ;country :The name of the country where the language is spoken, e.g. ''Sweden''. | ||
Line 47: | Line 50: | ||
;universe : The name of the universe or timeline where the language is spoken, e.g. ''Real world''. | ;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''. | ;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>''! {{-)}}) | :;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''. | :;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''. | :;alignment :The basic morphosyntactic alignment of the language, e.g. ''Nominative-Accusative''. | ||
;author :The name of the author of the language (probably your name). | ;author :The name of the author of the language (probably your name). | ||
Line 77: | Line 80: | ||
| universe = Real world | | universe = Real world | ||
| speakers = 9 million | | speakers = 9 million | ||
| | | family = Indo-European | ||
| | | branch = Germanic | ||
| | | subbranch = North Germanic | ||
| | | wordorder = SVO/V<sub>2</sub> | ||
| type = inflecting | | type = inflecting | ||
| alignment = nominative-accusative | | alignment = nominative-accusative | ||
Line 97: | Line 100: | ||
| universe = Real world | | universe = Real world | ||
| speakers = 9 million | | speakers = 9 million | ||
| | | family = Indo-European | ||
| | | branch = Germanic | ||
| | | subbranch = North Germanic | ||
| | | wordorder = SVO/V<sub>2</sub> | ||
| type = inflecting | | type = inflecting | ||
| alignment = nominative-accusative | | alignment = nominative-accusative |
Revision as of 05:50, 9 January 2007
English name | |
Spoken in: | (country) |
Timeline/Universe: | (universe) |
Total speakers: | (number of speakers) |
Genealogical classification: | (Family) (Branch) |
Basic word order: | |
Morphological type: | |
Morphosyntactic alignment: | |
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.
- 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 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 300 pixels but can be defined in pixels (e.g. 300) or a percentage of the window width (e.g. 33%)
Example
Try {{subst:Template:Language-new}}!
Swedish Svenska | |
Spoken in: | Sweden (Sverige) |
Timeline/Universe: | Real world |
Total speakers: | 9 million |
Genealogical classification: | Indo-European Germanic |
Basic word order: | SVO/V2 |
Morphological type: | inflecting |
Morphosyntactic alignment: | nominative-accusative |
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 | author = unknown | date = 1000 C.E. | background = white | headingbg = coral | width = 50% }}