Málle:Infobox

Wikipedia
Jump to navigation Jump to search

This is infobox base template copied from enwiki.

Code
Source template and module
Example

Parameters[edit source]

If dataN value is empty then wikidataN value is displayed. If dataN value is "-" then the row is not displayed and wikidata value is suppressed.

Example[edit source]

Test Infobox
Above text
Subheader above image
Second subheader
Example alt text
Caption displayed below Example-serious.jpg
Header defined alone
Data defined alone
All three defined (header, label, data, all with same number)
Label and data defined (label)Label and data defined (data)
Below text
{{Infobox
 |name         = {{subst:PAGENAME}}
 |bodystyle    = 

 |titlestyle   = 
 |abovestyle = background:#cfc;
 |subheaderstyle =
 |title        = Test Infobox
 |above        = Above text
 |subheader    = Subheader above image
 |subheader2   = Second subheader

 |imagestyle   = 
 |captionstyle = 
 |  image      = [[File:Example-serious.jpg|200px|alt=Example alt text]]
 |caption      = Caption displayed below Example-serious.jpg

 |headerstyle  = background:#ccf;
 |labelstyle   = background:#ddf;
 |datastyle    = 

 |  header1 = Header defined alone
 |   label1 = 
 |    data1 =
 |wikidata1 = 
 | example1 =

 |  header2 = 
 |   label2 = Label defined alone does not display (needs data, or is suppressed)
 |    data2 = 
 |wikidata2 = 
 | example2 =

 |  header3 =
 |   label3 = 
 |    data3 = Data defined alone
 |wikidata3 =
 | example3 =

 |  header4 = All three defined (header, label, data, all with same number)
 |   label4 = does not display (same number as a header)
 |    data4 = does not display (same number as a header)
 |wikidata4 =
 | example4 =

 |  header5 =
 |   label5 = Label and data defined (label)
 |    data5 = Label and data defined (data)
 |wikidata5 =
 | example5 =

 |belowstyle = background:#ddf;
 |below      = Below text
}}
; Example infoboxes
* [[Málle:Girječálli-test]]