Template:Infobox/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 36: | Line 36: | ||
|header5 = | |header5 = | ||
|label5 = Label 5 | |label5 = Label 5 | ||
|data5 = Data 5 | |data5 = Data 5 | ||
|belowstyle = | |belowstyle = | ||
|below = Below text | |below = Below text | ||
Line 73: | Line 72: | ||
</pre> | </pre> | ||
{{clear}} | {{clear}} | ||
[[Category:Infoboxes]] | |||
[[Category:Base templates]] |
Latest revision as of 22:06, 5 December 2014
{{Infobox |name = {{subst:PAGENAME}} |title = Example of an optional header |header1 = {{#if:{{{item_one|}}}{{{item_two|}}}{{{item_three|}}}|Optional header}} |label2 = Item one |data2 = {{{item_one|}}} |label3 = Item two |data3 = {{{item_two|}}} |label4 = Item three |data4 = {{{item_three|}}} }}
Here is an example infobox
Label 1 | Data 1 |
---|---|
Label 2 | Data 2 |
Label 3 | Data 3 |
Header 4 | |
Label 5 | Data 5 |
Below text |
{{Infobox |bodystyle = width:20em; |name = |title = Test Infobox |titlestyle = |headerstyle = |labelstyle = width:33% |datastyle = |header1 = |label1 = Label 1 |data1 = Data 1 |header2 = |label2 = Label 2 |data2 = Data 2 |header3 = |label3 = Label 3 |data3 = Data 3 |header4 = Header 4 |label4 = |data4 = |header5 = |label5 = Label 5 |data5 = Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |belowstyle = |below = Below text }}