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

From Linguifex
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 25: Line 25:
| data4 = {{#if:{{{inhabitants|}}}|{{{inhabitants}}}}}
| data4 = {{#if:{{{inhabitants|}}}|{{{inhabitants}}}}}
| label5 = {{#if:{{{fam1|}}}|[[w:Language family|Language families]]}}
| label5 = {{#if:{{{fam1|}}}|[[w:Language family|Language families]]}}
| data5 = {{#if:{{{fam1|}}}|*{{{fam1}}}
| data5 = {{#if:{{{fam1|}}}|*{{{fam1}}}}}
{{#if:{{{fam2}}}|*{{{fam2}}}}}
{{#if:{{{fam2|}}}|*{{{fam2}}}}}
{{#if:{{{fam3}}}|*{{{fam3}}}}}
{{#if:{{{fam3|}}}|*{{{fam3}}}}}
{{#if:{{{fam4}}}|*{{{fam4}}}}}
{{#if:{{{fam4|}}}|*{{{fam4}}}}}
{{#if:{{{fam5}}}|*{{{fam5}}}}}
{{#if:{{{fam5|}}}|*{{{fam5}}}}}
{{#if:{{{fam6}}}|*{{{fam6}}}}}
{{#if:{{{fam6|}}}|*{{{fam6}}}}}
{{#if:{{{fam7}}}|*{{{fam7}}}}}
{{#if:{{{fam7|}}}|*{{{fam7}}}}}
{{#if:{{{fam8}}}|*{{{fam8}}}}}
{{#if:{{{fam8|}}}|*{{{fam8}}}}}
{{#if:{{{fam9}}}|*{{{fam9}}}}}
{{#if:{{{fam9|}}}|*{{{fam9}}}}}
{{#if:{{{fam10}}}|*{{{fam10}}}}}}}
{{#if:{{{fam10|}}}|*{{{fam10}}}}}
| label6 = {{#if:{{{lang1|}}}|Languages}}
| label6 = {{#if:{{{lang1|}}}|Languages}}
| data6 = {{#if:{{{lang1|}}}|*{{{lang1}}}
| data6 = {{#if:{{{lang1|}}}|*{{{lang1}}}}}
{{#if:{{{lang2}}}|*{{{lang2}}}}}
{{#if:{{{lang2|}}}|*{{{lang2}}}}}
{{#if:{{{lang3}}}|*{{{lang3}}}}}
{{#if:{{{lang3|}}}|*{{{lang3}}}}}
{{#if:{{{lang4}}}|*{{{lang4}}}}}
{{#if:{{{lang4|}}}|*{{{lang4}}}}}
{{#if:{{{lang5}}}|*{{{lang5}}}}}
{{#if:{{{lang5|}}}|*{{{lang5}}}}}
{{#if:{{{lang6}}}|*{{{lang6}}}}}
{{#if:{{{lang6|}}}|*{{{lang6}}}}}
{{#if:{{{lang7}}}|*{{{lang7}}}}}
{{#if:{{{lang7|}}}|*{{{lang7}}}}}
{{#if:{{{lang8}}}|*{{{lang8}}}}}
{{#if:{{{lang8|}}}|*{{{lang8}}}}}
{{#if:{{{lang9}}}|*{{{lang9}}}}}
{{#if:{{{lang9|}}}|*{{{lang9}}}}}
{{#if:{{{lang10}}}|*{{{lang10}}}}}}}
{{#if:{{{lang10|}}}|*{{{lang10}}}}}
| data7 = {{#if:{{{map|}}}
| data7 = {{#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>}}
Line 62: Line 62:
{{!}}}
{{!}}}
}}
}}
}}<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