User:Andenor/Template:Infobox conworld: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(TESTING)
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
| bodystyle = {{#if:{{{boxsize|}}}|width: {{{boxsize}}};}}
| bodystyle = {{#if:{{{boxsize|}}}|width: {{{boxsize}}};}}


| abovestyle = color: {{#if:{{#ifeq:{{Infobox conworld/world-color|{{{worldcolor|}}} }}|black|1}}|white|{{{fontcolor|black}}} }}; background-color: {{Infobox conworld/world-color|{{{worldcolor|Default}}} }};
| abovestyle = color: white; background-color: black;
| above = {{{name|{{PAGENAME}}}}}
| above = {{{name|{{PAGENAME}}}}}
| aboveclass = above
| aboveclass = above
Line 20: Line 20:
| label2 = Created by
| label2 = Created by
| data2 = {{{creator|–}}}
| data2 = {{{creator|–}}}
| label5 = Date
| label3 = Date
| data3 = {{{created|}}}
| data3 = {{{created|}}}
| label7 = [[w:Geographic coordinate system|Coordinates]]
| label4 = Inhabitants
| data4 = {{#if:{{{latd|}}}
| data4 = {{#if:{{{inhabitants|}}}|{{{inhabitants}}}}}
  | <small style="white-space: nowrap">{{coord|{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}|{{{longm}}}|{{{longEW}}}|type:landmark|display=inline}}</small>
| label5 = {{#if:{{{fam1|}}}|[[w:Language family|Language families]]}}
  }}
| data5 = {{#if:{{{fam1|}}}|*{{{fam1}}}}}
| data5 = {{#if:{{{inhabitants|}}}|{{{inhabitants}}}}}
{{#if:{{{fam2|}}}|*{{{fam2}}}}}
| data6 =<!--
{{#if:{{{fam3|}}}|*{{{fam3}}}}}
-->{{#if:{{{extinct|}}}|{{#ifeq:{{{extinct}}}|?|(date unknown)|{{{extinct}}}}}<!-- extinct input used
{{#if:{{{fam4|}}}|*{{{fam4}}}}}
  -->|{{#if:{{{era|}}}|{{{era}}}<!-- era input used
{{#if:{{{fam5|}}}|*{{{fam5}}}}}
      -->
{{#if:{{{fam6|}}}|*{{{fam6}}}}}
|<!-- SPOKEN language (not silver) -->{{#if:{{{speakers|}}}|{{#ifeq: {{lc:{{{date}}}}}|na|{{{speakers|–}}}
{{#if:{{{fam7|}}}|*{{{fam7}}}}}
      |{{#ifeq: {{{date}}}|no date|{{{speakers|–}}} &nbsp;(no date)|{{#ifeq:{{{speakers}}}|?|(unknown)
{{#if:{{{fam8|}}}|*{{{fam8}}}}}
      |{{#ifeq:{{{speakers}}}|none|''None''
{{#if:{{{fam9|}}}|*{{{fam9}}}}}
      |{{{speakers|–}}} &nbsp;({{#if:{{{date}}}|{{{date}}}|<!--no date input-->no date}})
{{#if:{{{fam10|}}}|*{{{fam10}}}}}
      }} }}<!--(end if:date, before the 30+ expr check)
| label6 = {{#if:{{{lang1|}}}|Languages}}
    -->}}<!--(end ifeq:date=no date)
| data6 = {{#if:{{{lang1|}}}|*{{{lang1}}}}}
    -->}}<!--(end ifeq:date=na)
{{#if:{{{lang2|}}}|*{{{lang2}}}}}
    -->|<!--(no speakers number to be shown)-->}}<!--(end if:speakers (in 2nd param of silver-check), if:silver. end of SPOKEN)
{{#if:{{{lang3|}}}|*{{{lang3}}}}}
      -->}} }}<!--(end if:era, if:extinct. No open #if:s left)
{{#if:{{{lang4|}}}|*{{{lang4}}}}}
-->
{{#if:{{{lang5|}}}|*{{{lang5}}}}}
 
{{#if:{{{lang6|}}}|*{{{lang6}}}}}
| label10 = [[w:Language family|Language family]]
{{#if:{{{lang7|}}}|*{{{lang7}}}}}
| data10 = <div style="text-align:left;">{{{family|{{{fam1|{{#if:{{{signers|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|silver|1}}
{{#if:{{{lang8|}}}|*{{{lang8}}}}}
  |''Unknown''<includeonly>[[Category:Languages without classification]]</includeonly>
{{#if:{{{lang9|}}}|*{{{lang9}}}}}
  |{{Infobox language/genetic|{{{familycolor|Default}}}}}
{{#if:{{{lang10|}}}|*{{{lang10}}}}}
  }}}}}
| data7 = {{#if:{{{map|}}}
<ul style="line-height:100%; margin-left:15px;padding-left:0"><li>
{{#ifeq:{{{familycolor|}}}|unclassified||{{#ifeq:{{{familycolor|}}}|Unclassified||{{#ifeq:{{{familycolor|}}}|isolate||{{#ifeq:{{{familycolor|}}}|Isolate||{{#if:{{{fam2|}}}
| {{{fam2}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam3|}}}
| {{{fam3}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam4|}}}
| {{{fam4}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam5|}}}
| {{{fam5}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam6|}}}
| {{{fam6}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam7|}}}
| {{{fam7}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam8|}}}
| {{{fam8}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam9|}}}
| {{{fam9}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam10|}}}
| {{{fam10}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam11|}}}
| {{{fam11}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam12|}}}
| {{{fam12}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam13|}}}
| {{{fam13}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam14|}}}
| {{{fam14}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam15|}}}
| {{{fam15}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>'''{{{name|{{PAGENAME}}}}}'''</li></ul>
| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>
}}}}}}}}}}}</div>
| label11 = Early forms:
| data11 = {{#if:{{{protoname|}}}{{{ancestor|}}}|<div style="text-align:left;">{{{protoname|{{{ancestor|}}}}}}
<ul style="line-height:100%; margin-left:15px;padding-left:0"><li>{{#if:{{{ancestor2|}}}
| {{{ancestor2}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{ancestor3|}}}
| {{{ancestor3}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{ancestor4|}}}
| {{{ancestor4}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{ancestor5|}}}
| {{{ancestor5}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>'''{{{name|{{PAGENAME}}}}}'''</li></ul>
| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul>| '''{{{name|{{PAGENAME}}}}}'''
}}</li></ul> </div>
}}
| label12 = Standard forms
| data12 = {{#if:{{{standards|}}}|{{{standards}}}
|{{#if:{{{stand1|}}}|
<div>{{{stand1|}}}</div>
<div>{{{stand2|}}}</div>
<div>{{{stand3|}}}</div>
<div>{{{stand4|}}}</div>
<div>{{{stand5|}}}</div>
<div>{{{stand6|}}}</div>
}}}}
| label13 = Dialects
| data13 = {{#if:{{{dialects|}}}|{{{dialects}}}
|{{#if:{{{dia1|}}}|
<div>{{{dia1|}}}</div>
<div>{{{dia2|}}}</div>
<div>{{{dia3|}}}</div>
<div>{{{dia4|}}}</div>
<div>{{{dia5|}}}</div>
<div>{{{dia6|}}}</div>
<div>{{{dia7|}}}</div>
<div>{{{dia8|}}}</div>
<div>{{{dia9|}}}</div>
<div>{{{dia10|}}}</div>
<div>{{{dia11|}}}</div>
<div>{{{dia12|}}}</div>
<div>{{{dia13|}}}</div>
<div>{{{dia14|}}}</div>
<div>{{{dia15|}}}</div>
<div>{{{dia16|}}}</div>
<div>{{{dia17|}}}</div>
<div>{{{dia18|}}}</div>
<div>{{{dia19|}}}</div>
<div>{{{dia20|}}}</div>
}}}}
| label14 = [[w:Writing system|Writing system]]
| data14 =  {{#switch: {{lc:{{{script|}}}}}
            | latin
            | [[w:latin|Latin]]
            | latin alphabet
            | [[w:latin alphabet|latin alphabet]]
            | [[w:latin alphabet|latin]] = [[w:Latin script|Latin]]
            | #default = {{{script|}}}
            }}
| header15 = {{#if:{{{nation|}}}{{{agency|}}}|Official status}}
| label16 = Official language in
| data16 = {{{nation|}}}
| label17 = Recognised minority language in
| data17 = {{{minority|}}}
| label18 = [[w:List of language regulators|Regulated by]]
| data18 = {{{agency|{{#ifexpr:{{#if:{{{agency|}}}|1|0}}
  | ''None''
<!--  | {{#if:{{{nation|}}}|''No official regulation''}} [this ends up claiming that languages have no regulation just cuz no-one bothered to add the regulator -->
  }}}}}  
| label23 = [[w:ISO 639-3|ISO 639-3]]
| data23 = {{#if:{{{iso3|}}}
  |{{#ifeq:{{lc:{{{iso3|}}}}}|none|{{#if:{{{iso3comment|}}}|{{{iso3comment}}}|''None''}}|<tt>[[w:ISO639-3:{{{iso3}}}|{{{iso3}}}]]</tt> {{#if:{{{lc1|}}}| – [[w:ISO 639 macrolanguage|inclusive code]]<!--not all are 'macrolanguages': Hittite, for example-->}} {{{iso3comment|}}}}}|{{#if:{{{lc1|}}}| |–}}}}{{#ifexpr:{{#if:{{{lc1|}}}|1|0}} and {{#if:{{{lc2|}}}|1|0}}|{{#if:{{{iso3|}}}|<br />Individual codes|{{#if:{{{lc3|}}}|Variously|Either}}}}:{{Infobox language/codelist
|{{{lc1|}}}|{{{ld1|}}}}}{{Infobox language/codelist
|{{{lc2|}}}|{{{ld2|}}}}}{{Infobox language/codelist
|{{{lc3|}}}|{{{ld3|}}}}}{{Infobox language/codelist
|{{{lc4|}}}|{{{ld4|}}}}}{{Infobox language/codelist
|{{{lc5|}}}|{{{ld5|}}}}}{{Infobox language/codelist
|{{{lc6|}}}|{{{ld6|}}}}}{{Infobox language/codelist
|{{{lc7|}}}|{{{ld7|}}}}}{{Infobox language/codelist
|{{{lc8|}}}|{{{ld8|}}}}}{{Infobox language/codelist
|{{{lc9|}}}|{{{ld9|}}}}}{{Infobox language/codelist
|{{{lc10|}}}|{{{ld10|}}}}}{{Infobox language/codelist
|{{{lc11|}}}|{{{ld11|}}}}}{{Infobox language/codelist
|{{{lc12|}}}|{{{ld12|}}}}}{{Infobox language/codelist
|{{{lc13|}}}|{{{ld13|}}}}}{{Infobox language/codelist
|{{{lc14|}}}|{{{ld14|}}}}}{{Infobox language/codelist
|{{{lc15|}}}|{{{ld15|}}}}}{{Infobox language/codelist
|{{{lc16|}}}|{{{ld16|}}}}}{{Infobox language/codelist
|{{{lc17|}}}|{{{ld17|}}}}}{{Infobox language/codelist
|{{{lc18|}}}|{{{ld18|}}}}}{{Infobox language/codelist
|{{{lc19|}}}|{{{ld19|}}}}}{{Infobox language/codelist
|{{{lc20|}}}|{{{ld20|}}}}}{{Infobox language/codelist
|{{{lc21|}}}|{{{ld21|}}}}}{{Infobox language/codelist
|{{{lc22|}}}|{{{ld22|}}}}}{{Infobox language/codelist
|{{{lc23|}}}|{{{ld23|}}}}}{{Infobox language/codelist
|{{{lc24|}}}|{{{ld24|}}}}}{{Infobox language/codelist
|{{{lc25|}}}|{{{ld25|}}}}}{{Infobox language/codelist
|{{{lc26|}}}|{{{ld26|}}}}}{{Infobox language/codelist
|{{{lc27|}}}|{{{ld27|}}}}}{{Infobox language/codelist
|{{{lc28|}}}|{{{ld28|}}}}}{{Infobox language/codelist
|{{{lc29|}}}|{{{ld29|}}}}}{{Infobox language/codelist
|{{{lc30|}}}|{{{ld30|}}}}}{{Infobox language/codelist
|{{{lc31|}}}|{{{ld31|}}}}}{{Infobox language/codelist
|{{{lc32|}}}|{{{ld32|}}}}}{{Infobox language/codelist
|{{{lc33|}}}|{{{ld33|}}}}}{{Infobox language/codelist
|{{{lc34|}}}|{{{ld34|}}}}}{{Infobox language/codelist
|{{{lc35|}}}|{{{ld35|}}}}}{{Infobox language/codelist
|{{{lc36|}}}|{{{ld36|}}}}}{{Infobox language/codelist
|{{{lc37|}}}|{{{ld37|}}}}}{{Infobox language/codelist
|{{{lc38|}}}|{{{ld38|}}}}}{{Infobox language/codelist
|{{{lc39|}}}|{{{ld39|}}}}}{{Infobox language/codelist
|{{{lc40|}}}|{{{ld40|}}}}}{{Infobox language/codelist
|{{{lc41|}}}|{{{ld41|}}}}}{{Infobox language/codelist
|{{{lc42|}}}|{{{ld42|}}}}}{{Infobox language/codelist
|{{{lc43|}}}|{{{ld43|}}}}}{{Infobox language/codelist
|{{{lc44|}}}|{{{ld44|}}}}}{{Infobox language/codelist
|{{{lc45|}}}|{{{ld45|}}} }}
|{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br />Individual code:}}{{Infobox language/codelist|code={{{lc1}}}|2={{{ld1|}}} }} }} }}
 
| data24 = {{#if:{{{map|}}}
   | [[File:{{{map}}}|{{px|{{{mapsize|}}}|300px}}{{#if: {{{mapalt|}}} | {{!}}alt={{{mapalt}}}}}]]{{#if:{{{mapcaption|}}}|<div style="text-align:left;">{{{mapcaption}}}</div>}}
   | [[File:{{{map}}}|{{px|{{{mapsize|}}}|300px}}{{#if: {{{mapalt|}}} | {{!}}alt={{{mapalt}}}}}]]{{#if:{{{mapcaption|}}}|<div style="text-align:left;">{{{mapcaption}}}</div>}}
   }}
   }}
| data25 = {{#if:{{{map2|}}}
| data8 = {{#if:{{{map2|}}}
   | [[File:{{{map2}}}|{{px|{{{mapsize|}}}|300px}}{{#if: {{{mapalt2|}}} | {{!}}alt={{{mapalt2}}}}}]]{{#if:{{{mapcaption2|}}}|<div style="text-align:left;">{{{mapcaption2}}}</div>}}
   | [[File:{{{map2}}}|{{px|{{{mapsize|}}}|300px}}{{#if: {{{mapalt2|}}} | {{!}}alt={{{mapalt2}}}}}]]{{#if:{{{mapcaption2|}}}|<div style="text-align:left;">{{{mapcaption2}}}</div>}}
   }}
   }}
| data26 = {{#if:{{{notice|}}}|
| data9 = {{#if:{{{notice|}}}|
{{{!}} style="text-align:left;"
{{{!}} style="text-align:left;"
{{Infobox language/{{{notice|}}}}}
{{Infobox language/{{{notice|}}}}}
{{!}}}
{{!}}}
}}<!-- provide notice if IPA or Indic fonts are used; optional links for sign languages -->
}}<!-- provide notice if IPA or Indic fonts are used; optional links for sign languages -->
| data27 = {{#if:{{{notice2|}}}|
| data10 = {{#if:{{{notice2|}}}|
{{{!}} style="text-align:left;"
{{{!}} style="text-align:left;"
{{Infobox language/{{{notice2|}}}}}
{{Infobox language/{{{notice2|}}}}}
{{!}}}
{{!}}}
}}
}}
}}<noinclude>
}}<includeonly>[[Category:Settings]]</includeonly><noinclude>
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Latest revision as of 23:14, 19 February 2020

Andenor/Template:Infobox conworld
Created by

Most of this documentation was pulled directly from the documentation for Template:Infobox language, the template upon which this template is based.

This template is used create an infobox detailing a constructed world or setting.

Usage

{{infobox conworld
| name          = Name of World
| altname       = Alternate name of world
| nativename    = The name of the world in a native language or a second additional name
| pronunciation = An IPA pronunciation of the name
| inhabitants   = A list of the inhabitants of the world (races, species, etc.)
| fam1          = A family of languages spoken there
| ...
| fam10         = A family of languages spoken there
| lang1         = A specific language spoken there
| ...
| lang10        = A specific language spoken there
| creator       = Name of the creator of the world
| created       = Date of creation
|image         = image at top of info box. Use format "image name.png", without "file/image" or brackets.
|imagesize     = override default image size (currently 250px). Use units ("123px", "12em")
|imagealt      = alt text for the image
|imagecaption  = caption to appear under image
|imageheader   = brief header for image (appears in the left-hand column)
|map           = image at bottom of info box. Use format "image name.png", without "file/image" or brackets.
|mapsize       = override default map size (currently 350px). Use units ("123px", "12em"). Affects both maps.
|mapalt        = alt text for the map
|mapcaption    = caption to appear under map
|map2          = a second map
|mapalt2       = alt text for the second map
|mapcaption2   = caption to appear under both maps
|boxsize       = overrides default width of infobox, currently set at 22em. Format must include units ("12em" or "123px").
                 Useful when an article has various infoboxes aligned in a column. (Box will automatically expand to fix map wider than default box width.)
|notice        = IPA/ipa [adds notice for IPA notation]
|notice        = Indic/indic [adds notice for Indic scripts]
|notice        = signnotice [adds links for sign languages]
|notice2       = [adds a 2nd notice]
}}

Placement

The template should placed at the very top of the wikitext of the article, before any text. The absolute basic syntax is as shown below:

{{Infobox conworld ← this calls the template
|name=name of conworld ← the name of the language needs to be given
}} ← this ends the template call

However, you will probably want to add more than just this. Other parameters are listed below, they can be incorporated anywhere between the first and last lines, and in any order.

Additional parameters

There are several more parameters that can be defined between the opening and closing lines. These are:

|altname=additional name of the language [not every one, but one a reader would be likely to look for]
|nativename=native name, or a second alternative name [most cases as of 2012 not actually the native name]

Optional parameters

Some parts of the template remain invisible unless they are specifically called. Only use these parameters if they are required.

|pronunciation=pronunciation of the native name of the language in IPA → remember to enclose the transcription

Images in the template

You cannot put large images into the language template: they just make it very messy. You can place a small image at the top of the template using the following parameters:

|image=image name.png
|imagesize=200px ← overrides the default image size
|imagealt=alt text
|imagecaption=caption
|imageheader=very simple description of image ('logo', 'map', 'script', etc.) ← this is placed in the left-hand column, and so needs to be short

If you have a slightly larger image or two, such as a map, you can place at the bottom of the template, spanning both columns, with the following parameter:

|map(2)=image name.png
|mapsize=300px ← overrides the default image size
|mapalt(2)=alt text
|mapcaption(2)=caption

The usual image markup applies for both images. Alt text is for visually impaired readers, and the caption is for all readers; typically they should have little in common (see WP:ALT).

Footer notice

A notice or notices may be placed at the bottom of the infobox:

|notice(2)=ipa ← places a notice about the Unicode fonts used for displaying IPA
|notice(2)=signnotice ← adds various links for sign languages
|notice(2)=Indic ← places a notice about Indic-font support