Template:Language: Difference between revisions

From FrathWiki
Jump to navigationJump to search
(Reverted)
(Updated to (named) parametrized template)
Line 1: Line 1:
{|border=1 align=right cellpadding=4 cellspacing=0 width=300 style="margin: 0 0 1em 1em; background: #f9f9f9; border: 1px #aaaaaa solid; border-collapse: collapse; font-size: 95%;"
{|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="#CCCCCC" color="#000000" align="center" |'''English name'''<br>'''Native name'''
|colspan="2" bgcolor="{{{heading-background|{{{headingbg|#CCCCCC}}}}}}" align="center" |'''{{{English|English name}}}'''<br>'''{{{native|Native name}}}'''
|-
|-
|valign="top"|Spoken in:
|valign="top"|Spoken in:
||(country)
||{{{country|(country)}}} {{ #if: {{{native-country|}}} | ({{{native-country|}}}) | {{ #if: {{{nativecountry|}}} | ({{{nativecountry|}}}) }} }}
|-
|-
|valign="top"|Timeline/Universe:
|valign="top"|Timeline/Universe:
||(universe)
||{{{universe|(universe)}}}
|-
|-
|valign="top"|Total speakers:
|valign="top"|Total speakers:
||(number of speakers)
||{{{speakers|(number of speakers)}}}
|-
|-
|valign="top"|Genealogical classification:
|valign="top"|Genealogical classification:
||Family<br>
||{{{Family|(Family)}}}<br>
&nbsp;Branch<br>
&nbsp;{{{Branch|(Branch)}}}<br>
&nbsp;&nbsp;Subbranch<br>
&nbsp;&nbsp;{{{Subbranch|(Subbranch)}}}<br>
&nbsp;&nbsp;&nbsp;'''Language'''
&nbsp;&nbsp;&nbsp;'''{{{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="#CCCCCC" color="#000000" align="center" |'''Created by:'''
|colspan="2" bgcolor="{{{heading-background|{{{headingbg|#CCCCCC}}}}}}" align="center" |'''Created by:'''
|-
|-
||author ||date
||{{{author|author}}} ||{{{date|date}}}
|}
|}<noinclude>
== Named parameters for this template ==


Describe your language here
This template recognises the following named parameters:
 
<div style="width: 300px; border: 1px solid; padding: 6px; float: none;">
'''''Legend:'''''
;Parameter name
:;[Alternative parameter name] :explanation
</div>
 
;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 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 <nowiki>{{subst:</nowiki>[[:Template:Language-new]]<nowiki>}}</nowiki>!</noinclude>
 
{{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 = 50%
}}</nowiki></pre>

Revision as of 04:50, 9 January 2007

English name
Native name
Spoken in: (country)
Timeline/Universe: (universe)
Total speakers: (number of speakers)
Genealogical classification: (Family)

 (Branch)
  (Subbranch)
   (Language)

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
[Alternative parameter name]
explanation
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
  North Germanic
   Swedish

Basic word order:
Morphological type: inflecting
Morphosyntactic alignment: nominative-accusative
Created by:
unknown 1000 C.E.

Template loop detected: Template:Language

{{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%
}}
{{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%
}}