Template:Infobox: Difference between revisions

Jump to: navigation, search
5,526 bytes removed ,  20 December 2015
no edit summary
(Infobox updated using the portable infobox migration tool)
No edit summary
Line 1: Line 1:
<infobox>
{| class="infobox" style="font-size:89%; width:300px; background-color:#FFF;"
<data source="Box title"><label>Box title</label><default>No Title</default></data>
<data source="Image file"><label>Image file</label></data>
<data source="Image size"><label>Image size</label></data>
<data source="Row 1 title"><label>Row 1 title</label><default>No Title</default></data>
<data source="Row 1 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 1 title|No Title}}}'''</div></label><default>No information</default></data>
<data source="Row 2 title"><label>Row 2 title</label></data>
<data source="Row 2 info"><label>Row 2 info</label><default>No information</default></data>
<data source="Row 3 title"><label>Row 3 title</label></data>
<data source="Row 3 info"><label>Row 3 info</label><default>No information</default></data>
<data source="Row 4 title"><label>Row 4 title</label></data>
<data source="Row 4 info"><label>Row 4 info</label><default>No information</default></data>
<data source="Row 5 title"><label>Row 5 title</label></data>
<data source="Row 5 info"><label>Row 5 info</label><default>No information</default></data>
<data source="Row 6 title"><label>Row 6 title</label></data>
<data source="Row 6 info"><label>Row 6 info</label><default>No information</default></data>
<data source="Row 7 title"><label>Row 7 title</label></data>
<data source="Row 7 info"><label>Row 7 info</label><default>No information</default></data>
<data source="Row 8 title"><label>Row 8 title</label></data>
<data source="Row 8 info"><label>Row 8 info</label><default>No information</default></data>
<data source="Row 9 title"><label>Row 9 title</label></data>
<data source="Row 9 info"><label>Row 9 info</label><default>No information</default></data>
<data source="Row 10 title"><label>Row 10 title</label></data>
<data source="Row 10 info"><label>Row 10 info</label><default>No information</default></data>
<data source="Row 11 title"><label>Row 11 title</label></data>
</infobox>
<noinclude>
{| border="1" align="right" cellspacing="0" cellpadding="3" style="border:1px solid #7a7a7a; float:right; width:300px; background:#ffffff; color:black; margin:0px 0px 15px 15px; border-collapse:collapse;"
|-
|-
|height="32" colspan="2" align="center" style="background: #D1BEF4;"|
! colspan="2" style="background-color:#3366CC; color:#FFFFFF; font-size:120%; padding:1em;" | {{{Box title|No Title}}}
<div style="top:+0.2em;font-size: 105%">'''''{{{Box title|No Title}}}'''''</div>
{{#if: {{{image|}}}|
{{#if: {{{Image file|}}}|
{{!}}-
{{!}}-
{{!}}colspan="2" align="center" valign="top" style="background: #FFFFFF;"{{!}}
{{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
[[Image:{{{Image file}}}|{{{Image size}}}px]]
|
|
}}
}}
|-
|-
|height="32" Width="30%" valign="top" style="background: #D1BEF4;"|
| style="width:30%;" |
<div style="top:+0.2em;font-size: 95%">'''{{{Row 1 title|No Title}}}'''</div>
'''{{{Row 1 title|No Title}}}'''
|valign="top" style="background: #FFFFFF;"|
| style="width:70%;" |
<div style="top:+0.2em;font-size: 95%">{{{Row 1 info|No information}}}</div>
{{{Row 1 info|No information}}}
{{#if: {{{Row 2 title|}}}|
{{#if: {{{Row 2 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" Width="30%" valign="top"  style="background: #D1BEF4;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 2 title}}}'''</div>
'''{{{Row 2 title}}}'''
{{!}}valign="top"  style="background: #FFFFFF;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 2 info|No information}}}</div>
{{{Row 2 info|No information}}}
{{#if: {{{Row 3 title|}}}|
{{#if: {{{Row 3 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" Width="30%" valign="top"  style="background: #D1BEF4;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 3 title}}}'''</div>
'''{{{Row 3 title}}}'''
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 3 info|No information}}}</div>
{{{Row 3 info|No information}}}
{{#if: {{{Row 4 title|}}}|
{{#if: {{{Row 4 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 4 title}}}'''</div>
'''{{{Row 4 title}}}'''
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 4 info|No information}}}</div>
{{{Row 4 info|No information}}}
{{#if: {{{Row 5 title|}}}|
{{#if: {{{Row 5 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 5 title}}}'''</div>
'''{{{Row 5 title}}}'''
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 5 info|No information}}}</div>
{{{Row 5 info|No information}}}
{{#if: {{{Row 6 title|}}}|
{{#if: {{{Row 6 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 6 title}}}'''</div>
'''{{{Row 6 title}}}'''
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 6 info|No information}}}</div>
{{{Row 6 info|No information}}}
{{#if: {{{Row 7 title|}}}|
{{#if: {{{Row 7 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 7 title}}}'''</div>
'''{{{Row 7 title}}}'''
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 7 info|No information}}}</div>
{{{Row 7 info|No information}}}
{{#if: {{{Row 8 title|}}}|
{{#if: {{{Row 8 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 8 title}}}'''</div>
'''{{{Row 8 title}}}'''
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 8 info|No information}}}</div>
{{{Row 8 info|No information}}}
{{#if: {{{Row 9 title|}}}|
{{#if: {{{Row 9 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 9 title}}}'''</div>
'''{{{Row 9 title}}}'''
{{!}}valign="top" style="background: #FFFFFF; border: 1px solid #aaaaaa"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 9 info|No information}}}</div>
{{{Row 9 info|No information}}}
{{#if: {{{Row 10 title|}}}|
{{#if: {{{Row 10 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 10 title}}}'''</div>
'''{{{Row 10 title}}}'''
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 10 info|No information}}}</div>
{{{Row 10 info|No information}}}
{{#if: {{{Row 11 title|}}}|
{{#if: {{{Row 11 title|}}}|
{{!}}-
{{!}}-
{{!}}height="32" colspan="2" align="center" valign="top" style="background: #aaaaaa;"{{!}}
{{!}} colspan="2" style="text-align:center; background:#AAAAAA;" {{!}}
Too many parameters
'''Too many parameters'''
|
|
}}
}}
Line 119: Line 90:
|
|
}}
}}
|}
|}<noinclude><br style="clear:both;"/>
<noinclude>
{{documentation}}</noinclude>
 
 
 
 
 
==Usage==
Syntax:<br>
<code>'''<nowiki>{{</nowiki>Infobox'''<br />
'''|'''Box title    = <br />
'''|'''Image file  = <br />
'''|'''Image size  = <br />
'''|'''Row 1 title  = <br />
'''|'''Row 1 info  = <br />
'''|'''Row 2 title  = <br />
'''|'''Row 2 info  = <br />
'''|'''Row 3 title  = <br />
'''|'''Row 3 info  = <br />
'''|'''Row 4 title  = <br />
'''|'''Row 4 info  = <br />
'''|'''Row 5 title  = <br />
'''|'''Row 5 info  = <br />
'''|'''Row 6 title  = <br />
'''|'''Row 6 info  = <br />
'''|'''Row 7 title  = <br />
'''|'''Row 7 info  = <br />
'''|'''Row 8 title  = <br />
'''|'''Row 8 info  = <br />
'''|'''Row 9 title  = <br />
'''|'''Row 9 info  = <br />
'''|'''Row 10 title = <br />
'''|'''Row 10 info  = <br />
'''<nowiki>}}</nowiki>'''</code>
 
Notes:
* Keeping the '''Box Title''' empty will result in displaying '''No title'''
* If you don't want to display image, just keep '''Image file Name''' and '''Image Size''' empty.
* Keeping the '''Row 1 title''' empty will result in displaying '''No title'''.
* Keeping the '''Row (any row) info''' empty will result in displaying '''No information'''.
* Keeping the '''Row (any below row 1) title''' empty will result in that row and the rest of the rows below it will not be displayed.
* Max row for information: 10 rows.
 
Usage examples are here: [[Template talk:Infobox]].
 
[[Category:General wiki templates]]
</noinclude>
AllPageAccess, Bureaucrats, Check users, Comment administrators, csmoderator, forumadmin, import, Interface administrators, oversight, rollback, Administrators
232

edits

Navigation menu