Template:Infobox/Docu: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Example == <pre>{{Infobox |bodystyle = float:right; valign:top; |title = |titlestyle = |image = 175px |imagestyle =..." |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Infobox | |||
|bodystyle = float:right; valign:top; | |||
|title = My Very Important Title | |||
|titlestyle = color:green; | |||
|image = [[Image:cuttingclub.gif|175px]] | |||
|imagestyle = border:5px dotted red; | |||
|caption = Cutting Club | |||
|captionstyle = color:red; | |||
|headerstyle = background:#d2d2d2; | |||
|labelstyle = background:#d2d2d2; | |||
|datastyle = color:orange; | |||
|header1 = Members & Associates: | |||
|data2 = [[Vernon Quaintance]] | |||
|data3 = [[Brian J. Morris]] | |||
|data4 = [[Jake H. Waskett]] | |||
|header5 = Related Organizations: | |||
|data6 = [[Gilgal Society]] | |||
|data7 = [[Circlist]] | |||
|data8 = [[Acorn Society]] | |||
|data9 = This is no wiki link | |||
|belowstyle = background:#d2d2d2; | |||
|below = This is the end. | |||
}} | |||
An '''Infobox''' is built by some of the following elements: | |||
* Caption | |||
* Header | |||
* Subheader1 | |||
* Subheader2 | |||
* Image1 | |||
* Image2 | |||
These are followed by up to '''80''' rows which can contain one of the following four row types per row only: | |||
* header | |||
* label | |||
* data | |||
* class | |||
The representation styles for these four row types are defined in | |||
* headerstyle | |||
* labelstyle | |||
* datastyle | |||
* classstyle | |||
<pre>{{Infobox/row | |||
|header={{{header1|}}} |headerstyle={{{headerstyle|}}} | |||
|label={{{label1|}}} |labelstyle={{{labelstyle|}}} | |||
|data={{{data1|}}} |datastyle={{{datastyle|}}} | |||
|class={{{class1|}}} |rowclass={{{rowclass1|}}}</pre> | |||
The infobox rows are followed by the following (optional) elements: | |||
* Below | |||
* Navbar | |||
== Example == | == Example == | ||
{| class="wikitable" | |||
<pre>{{Infobox | |- | ||
! Source !! Result | |||
|- | |||
| <pre>{{Infobox | |||
|bodystyle = float:right; valign:top; | |bodystyle = float:right; valign:top; | ||
|title = | |title = My Very Important Title | ||
|titlestyle = | |titlestyle = color:green; | ||
|image = [[Image:cuttingclub.gif|175px]] | |image = [[Image:cuttingclub.gif|175px]] | ||
|imagestyle = | |imagestyle = border:5px dotted red; | ||
|caption = | |caption = Cutting Club | ||
|captionstyle = | |captionstyle = color:red; | ||
|headerstyle = background:#d2d2d2; | |headerstyle = background:#d2d2d2; | ||
|labelstyle = background:#d2d2d2; | |labelstyle = background:#d2d2d2; | ||
|datastyle = | |datastyle = color:orange; | ||
|header1 = Members & Associates: | |header1 = Members & Associates: | ||
|data2 = [[Vernon Quaintance]] | |data2 = [[Vernon Quaintance]] | ||
| Line 20: | Line 74: | ||
|data7 = [[Circlist]] | |data7 = [[Circlist]] | ||
|data8 = [[Acorn Society]] | |data8 = [[Acorn Society]] | ||
|data9 = This is no wiki link | |||
|belowstyle = background:#d2d2d2; | |belowstyle = background:#d2d2d2; | ||
|below = | |below = This is the end. | ||
}}</pre> | }}</pre> || {{Infobox | ||
{{Infobox | |||
|bodystyle = float:right; valign:top; | |bodystyle = float:right; valign:top; | ||
|title = | |title = My Very Important Title | ||
|titlestyle = | |titlestyle = color:green; | ||
|image = [[Image:cuttingclub.gif|175px]] | |image = [[Image:cuttingclub.gif|175px]] | ||
|imagestyle = | |imagestyle = border:5px dotted red; | ||
|caption = | |caption = Cutting Club | ||
|captionstyle = | |captionstyle = color:red; | ||
|headerstyle = background:#d2d2d2; | |headerstyle = background:#d2d2d2; | ||
|labelstyle = background:#d2d2d2; | |labelstyle = background:#d2d2d2; | ||
|datastyle = | |datastyle = color:orange; | ||
|header1 = Members & Associates: | |header1 = Members & Associates: | ||
|data2 = [[Vernon Quaintance]] | |data2 = [[Vernon Quaintance]] | ||
| Line 42: | Line 96: | ||
|data7 = [[Circlist]] | |data7 = [[Circlist]] | ||
|data8 = [[Acorn Society]] | |data8 = [[Acorn Society]] | ||
|data9 = This is no wiki link | |||
|belowstyle = background:#d2d2d2; | |belowstyle = background:#d2d2d2; | ||
|below = | |below = This is the end. | ||
}} | }} | ||
|} | |||
Latest revision as of 15:41, 30 September 2019
![]() Cutting Club | |
| Members & Associates: | |
|---|---|
| Vernon Quaintance | |
| Brian J. Morris | |
| Jake H. Waskett | |
| Related Organizations: | |
| Gilgal Society | |
| Circlist | |
| Acorn Society | |
| This is no wiki link | |
| This is the end. |
An Infobox is built by some of the following elements:
- Caption
- Header
- Subheader1
- Subheader2
- Image1
- Image2
These are followed by up to 80 rows which can contain one of the following four row types per row only:
- header
- label
- data
- class
The representation styles for these four row types are defined in
- headerstyle
- labelstyle
- datastyle
- classstyle
{{Infobox/row
|header={{{header1|}}} |headerstyle={{{headerstyle|}}}
|label={{{label1|}}} |labelstyle={{{labelstyle|}}}
|data={{{data1|}}} |datastyle={{{datastyle|}}}
|class={{{class1|}}} |rowclass={{{rowclass1|}}}
The infobox rows are followed by the following (optional) elements:
- Below
- Navbar
Example
| Source | Result | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox
|bodystyle = float:right; valign:top;
|title = My Very Important Title
|titlestyle = color:green;
|image = [[Image:cuttingclub.gif|175px]]
|imagestyle = border:5px dotted red;
|caption = Cutting Club
|captionstyle = color:red;
|headerstyle = background:#d2d2d2;
|labelstyle = background:#d2d2d2;
|datastyle = color:orange;
|header1 = Members & Associates:
|data2 = [[Vernon Quaintance]]
|data3 = [[Brian J. Morris]]
|data4 = [[Jake H. Waskett]]
|header5 = Related Organizations:
|data6 = [[Gilgal Society]]
|data7 = [[Circlist]]
|data8 = [[Acorn Society]]
|data9 = This is no wiki link
|belowstyle = background:#d2d2d2;
|below = This is the end.
}} |
| ||||||||||||||||||||||
