Template:Infobox: Difference between revisions

From FrathWiki
Jump to navigationJump to search
(trying a different way)
m (changing default colors to agree with Wiki standard for tables)
Line 1: Line 1:
<includeonly><table style="background: #f9f9f9; float: right; border: 1px solid #c0c0c0; width:350px; font-size:95%; margin: 0 0 1em 1em;" cellspacing=0 cellpadding=4>
<includeonly><table style="background: #F2F2F2; float: right; border: 1px solid #AAAAAA; width:350px; font-size:95%; margin: 0 0 1em 1em;" cellspacing=0 cellpadding=4>
{{#if: {{{image|}}} | <tr>
{{#if: {{{image|}}} | <tr>
<th colspan=2>[[File:{{{image}}}|{{{size|200px}}}]]</th></tr>}}
<th colspan=2>[[File:{{{image}}}|{{{size|200px}}}]]</th></tr>}}
<tr style="text-align: center;">
<tr style="text-align: center;">
<th colspan=2 style="background: {{{bg|#dfdfdf}}}; border-bottom: 1pt solid #c0c0c0; font-size: 110%;">{{{name|{{PAGENAME}}}}}{{#if:{{{native|}}}|<br />''{{{native}}}''}}</th></tr>
<th colspan=2 style="background: {{{bg|#dfdfdf}}}; border-bottom: 1pt solid #AAAAAA; font-size: 110%;">{{{name|{{PAGENAME}}}}}{{#if:{{{native|}}}|<br />''{{{native}}}''}}</th></tr>
{{ #if: {{{pronounce|}}} | <tr>
{{ #if: {{{pronounce|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> Pronounced: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{pronounce}}} </td></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> }}
{{ #if: {{{tu|}}} | <tr>
{{ #if: {{{tu|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> Timeline and Universe: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{tu}}} </td></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> }}
{{ #if: {{{species|}}} | <tr>
{{ #if: {{{species|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> Species: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{species}}} </td></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> }}
{{ #if: {{{in|}}} | <tr>
{{ #if: {{{in|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> Spoken: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{in}}} </td></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> }}
{{ #if: {{{no|}}} | <tr>
{{ #if: {{{no|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> Total speakers: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{no}}} </td></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> }}
{{ #if: {{{script|}}} | <tr>
{{ #if: {{{script|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> Writing system: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{script}}} </td></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> }}
{{ #if: {{{tree|}}} | <tr>
{{ #if: {{{tree|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> Genealogy: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{tree}}} </td></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> }}


{{ #ifeq: {{{morph|}}}{{{ms|}}}{{{wo|}}} ||| <tr>
{{ #ifeq: {{{morph|}}}{{{ms|}}}{{{wo|}}} ||| <tr>
<th colspan=2 style="background: {{{bg|#dfdfdf}}}; border-bottom: 1pt solid #c0c0c0;"> Typology </th></tr>
<th colspan=2 style="background: {{{bg|#dfdfdf}}}; border-bottom: 1pt solid #AAAAAA;"> Typology </th></tr>
{{ #if: {{{morph|}}} | <tr>
{{ #if: {{{morph|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> [[Morphological type]]: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{morph}}} </td></tr> }}
<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>
{{ #if: {{{ms|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> [[Morphosyntactic alignment]]: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{ms}}} </td></tr> }}
<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>
{{ #if: {{{wo|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> [[Basic word order]]: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{wo}}} </td></tr> }} }}
<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> }} }}


{{ #ifeq: {{{creator|}}}{{{date|}}} ||| <tr>
{{ #ifeq: {{{creator|}}}{{{date|}}} ||| <tr>
<th colspan=2 style="background: {{{bg|#dfdfdf}}}; border-bottom: 1pt solid #c0c0c0;"> Credits </th></tr>
<th colspan=2 style="background: {{{bg|#dfdfdf}}}; border-bottom: 1pt solid #AAAAAA;"> Credits </th></tr>
{{ #if: {{{creator|}}} | <tr>
{{ #if: {{{creator|}}} | <tr>
<td style="border-bottom: 1pt solid #c0c0c0; width: 30%"> Creator: </td><td style="border-left: 1pt solid #c0c0c0; border-bottom: 1pt solid #c0c0c0; width: 70%"> {{{creator}}} </td></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> }}
{{ #if: {{{date|}}} | <tr>
{{ #if: {{{date|}}} | <tr>
<td style="width: 30%"> Created: </td><td style="border-left: 1pt solid #c0c0c0; width: 70%"> {{{date}}} </td></tr> }} }}
<td style="width: 30%"> Created: </td><td style="border-left: 1pt solid #AAAAAA; width: 70%"> {{{date}}} </td></tr> }} }}


{{ #ifeq: {{{homepage|}}}{{{cals|}}} | | | <tr>
{{ #ifeq: {{{homepage|}}}{{{cals|}}} | | | <tr>
<th colspan=2 style="background: {{{bg|#dfdfdf}}}; border-bottom: 1pt solid #c0c0c0;"> Links </th></tr>
<th colspan=2 style="background: {{{bg|#dfdfdf}}}; border-bottom: 1pt solid #AAAAAA;"> Links </th></tr>
<tr>
<tr>
{{ #if: {{{homepage|}}} | {{ #if: {{{cals|}}} | <td><table><tr><td width="50%">[{{{homepage}}} homepage]</td><td>[http://cals.conlang.org/language/{{{cals}}} CALS]</td></tr></table></td> | <td colspan="2">[{{{homepage}}} {{{homepagetitle|homepage}}}]</td> }} | <td colspan="2">[http://cals.conlang.org/language/{{{cals}}} CALS]</td> }}
{{ #if: {{{homepage|}}} | {{ #if: {{{cals|}}} | <td><table><tr><td width="50%">[{{{homepage}}} homepage]</td><td>[http://cals.conlang.org/language/{{{cals}}} CALS]</td></tr></table></td> | <td colspan="2">[{{{homepage}}} {{{homepagetitle|homepage}}}]</td> }} | <td colspan="2">[http://cals.conlang.org/language/{{{cals}}} CALS]</td> }}

Revision as of 03:56, 2 February 2015


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
URI of the language's official homepage.
cals
If the language is on CALS, its external name in lowercase.