Template:Infobox generic
Minn Wikipedija, l-enċiklopedija ħielsa.
This template can create an infobox for most scenarios that might be needed. It should be used in cases where an infobox is needed for only a handful of pages and thus creating a unique template for the situation might not make sense.
This template can also be used to quickly create an infobox to be used on multiple pages. Just create a new 'Template:Whatever' page and then add this template to it with any elements you want to vary from page to page set to specific parameter names. For example, |lbl1=Continent:|row1={{{continent|}}}, would be called with something like {{Whatever|continent=Africa}} and display a 'Continent: Africa' row.
[editja] Parameters
{{Infobox generic
| style0 =
| color =
| name =
| sub0 =
| img1 =
| width1 =
| cap1 =
| hdr1 =
| style1 =
| lbl1 =
| row1 =
| sub1 =
| style2 =
| lbl2 =
| row2 =
| sub2 =
... etc.
| hdr2 =
| style21 =
| lbl21 =
| row21 =
| sub21 =
| style22 =
| lbl22 =
| row22 =
| sub22 =
... etc.
| hdr3 =
| style31 =
| lbl31 =
| row31 =
| sub31 =
| style32 =
| lbl32 =
| row32 =
| sub32 =
... etc.
| img2 =
| width2 =
| cap2 =
}}
|
|
The following parameters are recognized;
-
- style0
- style to apply to the entire table, defaults to
style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:right; clear:right; width:200px;" border="1" cellpadding="0"
-
- color
- background color of headers, default white
-
- name
- text to display at top of infobox, default blank
-
- sub#
- subscript text to display. sub0 is shown below 'name', others below corresponding row#. default blank
-
- img#
- image(s) to display. img1 is shown at top, img2 at bottom. default blank
-
- width#
- width of the corresponding img#, default 250px
-
- cap#
- caption to display below corresponding img#, default blank
-
- hdr#
- text to display at top of optional sub-section, default blank
-
- row#
- text to display in optional rows. row[1-9] are below hdr1, row[21-29] below hdr2, etcetera. default blank
-
- lbl#
- optional label for data stored in corresponding row#. default blank
-
- style#
- style to apply to corresponding row#. default blank
Template:Clear
[editja] Example 1
| White's Tree Frog Conservation status: Least concern[1] |
|
|---|---|
|
|
|
| Kingdom: | Animalia |
| Phylum: | Chordata |
| Class | Amphibia |
| Order: | Anura |
| Family: | Hylidae |
| Genus: | Litoria |
| Species: | L. caerulea |
|
|
|
| Litoria caerulea |
|
{{Infobox generic
| color = pink
| name = [[White's Tree Frog]]
| sub0 = <small>'''[[Conservation status|Conservation status:]] Least concern'''<ref name="iucn">{{IUCN2006|assessors=Hero ''et al''|year=2004|id=41082|title=Litoria caerulea|downloaded=11 May 2006}} Database entry includes a range map and justification for why this species is of least concern </ref></small>
|
| img1 = Caerulea3 crop.jpg
| width1 = 220px
| cap1 = White's Tree Frog (''Litoria caerulea'')
|
| hdr1 = [[Scientific Classification]]
| lbl1 = Kingdom:
| row1 = [[Animal]]ia
| lbl2 = Phylum:
| row2 = [[Chordate|Chordata]]
| lbl3 = Class
| row3 = [[Amphibia]]
| lbl4 = Order:
| row4 = [[Anura]]
| lbl5 = Family:
| row5 = [[Hylidae]]
| lbl6 = Genus:
| row6 = ''[[Litoria]]''
| lbl7 = Species:
| row7 = '''''L. caerulea'''''
|
| hdr2 = [[Binomial nomenclature|Binomial name]]
| style21 = style="text-align:center;"
| row21 = '''''Litoria caerulea'''''
| sub21 = ([[John White (surgeon)|White]], 1790)
}}
Template:Clear
[editja] Example 2
| Latin lingua latina |
|
|---|---|
| Spoken in: | Vatican City |
| Region: | Italian peninsula and Europe |
| Language extinction: | Late Latin developed into various Romance languages by the 9th century |
| Language family: | Indo-European Italic Latino-Faliscan Latin |
|
|
|
| Official language of: | Vatican City (used for official purposes, but not spoken in everyday speech) |
| Regulated by: | Opus Fundatum Latinitas |
|
|
|
| ISO 639-1: | la |
| ISO 639-2: | lat |
| ISO 639-3: | lat |
| Note: This page may contain IPA phonetic symbols in Unicode. | |
{{Infobox generic
| style0 = class="infobox" style="width:22em; font-size:90%;"
| color = lawngreen
| name = [[Latin]]
| sub0 = lingua latina
|
| lbl1 = Spoken in:
| row1 = [[Vatican City]]
| lbl2 = Region:
| row2 = [[Italian peninsula]] and [[Europe]]
| lbl3 = [[Extinct language|Language extinction:]]
| row3 = [[Late Latin]] developed into various [[Romance languages]] by the [[9th century]]
| lbl4 = [[Language family]]:
| row4 = [[Indo-European languages|Indo-European]]<br />[[Italic languages|Italic]]<br />[[Latino-Faliscan languages|Latino-Faliscan]]<br />'''Latin'''
|
| hdr2 = Official status
| lbl21 = Official language of:
| row21 = [[Vatican City]] ''(used for official purposes, but not spoken in everyday speech)''
| lbl22 = [[List of language regulators|Regulated by:]]
| row22 = [[Opus Fundatum Latinitas]]
|
| hdr3 = Language codes
| lbl31 = [[ISO 639-1]]:
| row31 = la
| lbl32 = [[ISO 639-2]]:
| row32 = lat
| lbl33 = [[ISO 639-3]]:
| row33 = [http://www.sil.org/iso639-3/documentation.asp?id=lat lat]
| row34 = <small>Note: This page may contain [[Phonetics|IPA phonetic]] symbols in [[Unicode]].</small>
}}
Template:Clear

