Difference between revisions of "Template:Infobox"

Line 1: Line 1:
{{Infobox
+
{| class="infobox" style="font-size:89%; width:300px;"
|name        = Infobox/doc
+
|-
|bodystyle    =  
+
! class="color1" colspan="2" style="font-size:120%; padding:1em;" | {{{Box title|No Title}}}
|title       = Test Infobox
+
{{#if: {{{image|}}}|
|titlestyle  =
+
{{!}}-
 
+
{{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
|image        = [[File:example.png|200px|alt=Example alt text]]
+
|
|imagestyle  =
+
}}
|caption      = Caption for example.png
+
|-
|captionstyle =
+
| style="width:30%;" |
|headerstyle  = background:#ccf;
+
'''{{{Row 1 title|No Title}}}'''
|labelstyle  = background:#ddf;
+
| style="width:70%;" |
|datastyle    =
+
{{{Row 1 info|No information}}}
 
+
{{#if: {{{Row 2 title|}}}|
|header1 = Header defined alone
+
{{!}}-
|label1  =
+
{{!}}
|data1  =
+
'''{{{Row 2 title}}}'''
|header2 =
+
{{!}}
|label2  = Label defined alone does not display (needs data, or is suppressed)
+
{{{Row 2 info|No information}}}
|data2  =
+
{{#if: {{{Row 3 title|}}}|
|header3 =
+
{{!}}-
|label3  =
+
{{!}}
|data3  = Data defined alone
+
'''{{{Row 3 title}}}'''
|header4 = All three defined (header, label, data, all with same number)
+
{{!}}
|label4  = does not display (same number as a header)
+
{{{Row 3 info|No information}}}
|data4  = does not display (same number as a header)
+
{{#if: {{{Row 4 title|}}}|
|header5 =
+
{{!}}-
|label5  = Label and data defined (label)
+
{{!}}
|data5  = Label and data defined (data)
+
'''{{{Row 4 title}}}'''
 
+
{{!}}
|belowstyle = background:#ddf;
+
{{{Row 4 info|No information}}}
|below = Below text
+
{{#if: {{{Row 5 title|}}}|
 +
{{!}}-
 +
{{!}}
 +
'''{{{Row 5 title}}}'''
 +
{{!}}
 +
{{{Row 5 info|No information}}}
 +
{{#if: {{{Row 6 title|}}}|
 +
{{!}}-
 +
{{!}}
 +
'''{{{Row 6 title}}}'''
 +
{{!}}
 +
{{{Row 6 info|No information}}}
 +
{{#if: {{{Row 7 title|}}}|
 +
{{!}}-
 +
{{!}}
 +
'''{{{Row 7 title}}}'''
 +
{{!}}
 +
{{{Row 7 info|No information}}}
 +
{{#if: {{{Row 8 title|}}}|
 +
{{!}}-
 +
{{!}}
 +
'''{{{Row 8 title}}}'''
 +
{{!}}
 +
{{{Row 8 info|No information}}}
 +
{{#if: {{{Row 9 title|}}}|
 +
{{!}}-
 +
{{!}}
 +
'''{{{Row 9 title}}}'''
 +
{{!}}
 +
{{{Row 9 info|No information}}}
 +
{{#if: {{{Row 10 title|}}}|
 +
{{!}}-
 +
{{!}}
 +
'''{{{Row 10 title}}}'''
 +
{{!}}
 +
{{{Row 10 info|No information}}}
 +
{{#if: {{{Row 11 title|}}}|
 +
{{!}}-
 +
{{!}} colspan="2" style="text-align:center; background:#AAAAAA;" {{!}}
 +
'''Too many parameters'''
 +
|
 +
}}
 +
|
 +
}}
 +
|
 +
}}
 +
|
 +
}}
 +
|
 +
}}
 +
|
 +
}}
 +
|
 +
}}
 +
|
 +
}}
 +
|
 +
}}
 +
|
 +
}}
 +
|}
 +
<noinclude>
 +
{{documentation}}</noinclude>

Revision as of 16:18, 9 August 2011

No Title

{{#if: |

[[{{{image}}}|250px]]

}}

No Title

No information {{#if: |

{{{Row 2 title}}}

No information {{#if: |

{{{Row 3 title}}}

No information {{#if: |

{{{Row 4 title}}}

No information {{#if: |

{{{Row 5 title}}}

No information {{#if: |

{{{Row 6 title}}}

No information {{#if: |

{{{Row 7 title}}}

No information {{#if: |

{{{Row 8 title}}}

No information {{#if: |

{{{Row 9 title}}}

No information {{#if: |

{{{Row 10 title}}}

No information {{#if: |

Too many parameters

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}

{{#ifeq: Infobox | sandbox

|
Template:Template sandbox notice

}}Template:Template otherTemplate:Documentation/start box2 {{#switch: {{#if:|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:Template:Documentation/docspace:Template:Documentation/template page/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = | 0110 | 0111 = {{ {{{1}}} }} | 0001 | 0011 = {{ Template:Documentation/docspace:Template:Documentation/template page/doc }} | 0000 | 0100 | 0010 | 0101 = }} Template:Documentation/end box2