Template:Infobox: Difference between revisions

From FrathWiki
Jump to navigationJump to search
No edit summary
mNo edit summary
 
(38 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div style="float:right;">
<includeonly><table style="background: #FFFFFF; float: right; border: 1px solid #AAAAAA; width:32%; font-size:95%; margin: 0 0 1em 1em;" cellspacing=0 cellpadding=4>
{|style="background:#f9f9f9; border: 1pt solid #c0c0c0; width:30%; font-size:95%" cellspacing=0 cellpadding=3
{{#if: {{{image|}}} | <tr>
|- style="text-align: center;"
<th colspan=2 style="border-bottom: 1pt solid #AAAAAA">[[File:{{{image}}}|{{{size|200px}}}]]</th></tr>}}
!colspan=2 style="background: #dfdfdf; border-bottom: 1pt solid #c0c0c0; font-size: 110%;"| {{{name}}}
<tr style="text-align: center;">
|-
<th colspan=2 style="background: {{{bg|#F2F2F2}}}; border-bottom: 1pt solid #AAAAAA; font-size: 110%;">{{{name|{{PAGENAME}}}}}{{#if:{{{native|}}}|<br />''{{{native}}}''}}</th></tr>
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Pronounced: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{pronounce}}}
{{ #if: {{{pronounce|}}} | <tr>
|-
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> Pronounced: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{pronounce}}} </td></tr> }}
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Timeline and Universe: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{tu}}}
{{ #if: {{{tu|}}} | <tr>
|-
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> Timeline and Universe: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{tu}}} </td></tr> }}
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Species: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{species}}}
{{ #if: {{{species|}}} | <tr>
|-
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> Species: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{species}}} </td></tr> }}
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Spoken: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{in}}}
{{ #if: {{{in|}}} | <tr>
|-
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> Spoken: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{in}}} </td></tr> }}
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Total speakers: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{no}}}
{{ #if: {{{no|}}} | <tr>
|-
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> Total speakers: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{no}}} </td></tr> }}
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Writing system: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{script}}}
{{ #if: {{{script|}}} | <tr>
|-
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> Writing system: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{script}}} </td></tr> }}
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Genealogy: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{tree}}}
{{ #if: {{{tree|}}} | <tr>
|-
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> Genealogy: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{tree}}} </td></tr> }}
!colspan=2 style="background: #dfdfdf; border-bottom: 1pt solid #c0c0c0;"| Typology
 
|-
{{ #ifeq: {{{morph|}}}{{{ms|}}}{{{wo|}}} ||| <tr>
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Morphology: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{morph}}}
<th colspan=2 style="background: {{{bg|#F2F2F2}}}; border-bottom: 1pt solid #AAAAAA;"> Typology </th></tr>
|-
{{ #if: {{{morph|}}} | <tr>
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Morphosyntax: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{ms}}}
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> [[Morphological type]]: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{morph}}} </td></tr> }}
|-
{{ #if: {{{ms|}}} | <tr>
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Word order: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{wo}}}
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> [[Morphosyntactic alignment]]: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{ms}}} </td></tr> }}
|-
{{ #if: {{{wo|}}} | <tr>
!colspan=2 style="background: #dfdfdf; border-bottom: 1pt solid #c0c0c0;"| Credits
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> [[Basic word order]]: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{wo}}} </td></tr> }} }}
|-
 
|style="border-bottom: 1pt solid #c0c0c0; width: 30%"| Creator: ||style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"| {{{creator}}}
{{ #ifeq: {{{creator|}}}{{{date|}}} ||| <tr>
|-
<th colspan=2 style="background: {{{bg|#F2F2F2}}}; border-bottom: 1pt solid #AAAAAA;"> Credits </th></tr>
|style="width: 30%"| Created: ||style="border-left: 1pt solid #c0c0c0; width: 70%"| {{{date}}}
{{ #if: {{{creator|}}} | <tr>
|}
<td style="border-bottom: 1pt solid #AAAAAA; width: 30%"> Creator: </td><td style="border-left: 1pt solid #AAAAAA; border-bottom: 1pt solid #AAAAAA; width: 70%"> {{{creator}}} </td></tr> }}
</div>
{{ #if: {{{date|}}} | <tr>
<td style="width: 30%"> Created: </td><td style="border-left: 1pt solid #AAAAAA; width: 70%"> {{{date}}} </td></tr> }} }}
 
{{ #ifeq: {{{homepage|}}}{{{cals|}}} | | | <tr>
<th colspan=2 style="background: {{{bg|#F2F2F2}}}; border-bottom: 1pt solid #AAAAAA;"> Links </th></tr>
<tr>
{{ #if: {{{homepage|}}} | {{ #if: {{{cals|}}} | <td><table><tr><td width="50%"><center>[{{{homepage}}} Homepage]</center></td><td>[http://cals.conlang.org/language/{{{cals}}} CALS]</td></tr></table></td> | <td colspan="2"><center>[{{{homepage}}} {{{homepagetitle|Homepage}}}]</center></td> }} | <td colspan="2"><center>[http://cals.conlang.org/language/{{{cals}}} CALS]</center></td> }}
</tr> }}
</table></includeonly><noinclude>
 
This template creates an infobox for a language. Use on language pages.
 
==Parameters==
 
All parameters are optional.
 
; bg
: the background color of the header cells. Defaults to {{color|#F2F2F2}}.
; name
: The English name of the language. Defaults to the page name.
; native
: The name in the language for itself.
; pronounce
: How the language is pronounced. Use with {{tl|IPA}}.
; tu
: Timeline and universe where the language is used.
; species
: Species by which the language is used.
; in
: Location where the language is spoken.
; no
: Number of speakers.
; script
: Type and/or name of writing system.
; tree
: Genealogy of the language.
; morph
: [[Morphological type]].
; ms
: [[Morphosyntactic alignment]].
; wo
: [[Basic word order]], such as SOV.
; creator
: Creator(s) of the conlang.
; date
: Time of creation, usually a starting date.
; homepage
: URL of the language's official homepage.
; cals
: If the language is on [[CALS]], its external name in lowercase.
 
[[Category:Templates]]
 
</noinclude>

Latest revision as of 00:09, 25 December 2024


This template creates an infobox for a language. Use on language pages.

Parameters

All parameters are optional.

bg
the background color of the header cells. Defaults to .
name
The English name of the language. Defaults to the page name.
native
The name in the language for itself.
pronounce
How the language is pronounced. Use with {{IPA}}.
tu
Timeline and universe where the language is used.
species
Species by which the language is used.
in
Location where the language is spoken.
no
Number of speakers.
script
Type and/or name of writing system.
tree
Genealogy of the language.
morph
Morphological type.
ms
Morphosyntactic alignment.
wo
Basic word order, such as SOV.
creator
Creator(s) of the conlang.
date
Time of creation, usually a starting date.
homepage
URL of the language's official homepage.
cals
If the language is on CALS, its external name in lowercase.