Template:Infobox: Difference between revisions

Jump to: navigation, search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>{| class="wikia-infobox"
{| 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;"
 
|-
|-
! class="wikia-infobox-header" colspan="2" | {{{title|''Unknown''}}}
|height="32" colspan="2" align="center" style="background: #A62E10;"|
 
<div style="top:+0.2em;font-size: 105%">'''''{{{Box title|No Title}}}'''''</div>
{{#if: {{{Image file|}}}|
{{!}}-
{{!}}colspan="2" align="center" valign="top" style="background: #FFFFFF;"{{!}}
[[Image:{{{Image file}}}|{{{Image size}}}px]]
|
}}
|-
|-
{{#if: {{{image|}}} |
|height="32" Width="30%" valign="top" style="background: #A62E10;"|
{{!}} class="wikia-infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{imagewidth|300}}}px|{{{imagecaption|}}}]]
<div style="top:+0.2em;font-size: 95%">'''{{{Row 1 title|No Title}}}'''</div>
| }}
|valign="top" style="background: #FFFFFF;"|
<div style="top:+0.2em;font-size: 95%">{{{Row 1 info|No information}}}</div>
{{#if: {{{Row 2 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top"  style="background: #A62E10;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 2 title}}}'''</div>
{{!}}valign="top"  style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 2 info|No information}}}</div>
{{#if: {{{Row 3 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top"  style="background: #A62E10;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 3 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 3 info|No information}}}</div>
{{#if: {{{Row 4 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #A62E10;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 4 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 4 info|No information}}}</div>
{{#if: {{{Row 5 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #A62E10;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 5 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 5 info|No information}}}</div>
{{#if: {{{Row 6 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #A62E10;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 6 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 6 info|No information}}}</div>
{{#if: {{{Row 7 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #A62E10;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 7 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 7 info|No information}}}</div>
{{#if: {{{Row 8 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #A62E10;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 8 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 8 info|No information}}}</div>
{{#if: {{{Row 9 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #A62E10;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 9 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF; border: 1px solid #aaaaaa"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 9 info|No information}}}</div>
{{#if: {{{Row 10 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #A62E10;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 10 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 10 info|No information}}}</div>
{{#if: {{{Row 11 title|}}}|
{{!}}-
{{!}}height="32" colspan="2" align="center" valign="top" style="background: #aaaaaa;"{{!}}
Too many parameters
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|}
<noinclude>


|-
{{#if: {{{imagecaption|}}} |
{{!}} class="wikia-infobox-caption" colspan="2" {{!}} {{{imagecaption}}}
| }}


|-
! colspan="2" | <div class="wikia-infobox-section-header">Some attributes</div>


|-
! Maker
| {{{maker|''Unknown''}}}


|-
! Date of release
| {{{date|''Unknown''}}}


|-
==Usage==
! Type
Syntax:<br>
| {{{type|''Unknown''}}}
<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:
! colspan="2" | <div class="wikia-infobox-section-header">Other attributes</div>
* 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'''.
{{#if: {{{fourth|}}} |
* Keeping the '''Row (any row) info''' empty will result in displaying '''No information'''.
! Fourth
* 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.
{{!}} {{{fourth}}}
* Max row for information: 10 rows.
| }}
 
|-
{{#if: {{{fifth|}}} |
! Fifth
{{!}} {{{fifth}}}
| }}
 
|-
{{#if: {{{sixth|}}} |
! Sixth
{{!}} {{{sixth}}}
| }}


|- style="font-size:0; line-height:0;"
Usage examples are here: [[Template talk:Infobox]].
! style="width:25%; padding:0" |
! style="width:25%; padding:0" |


|}</onlyinclude><noinclude><br style="clear:both;"/>
[[Category:General wiki templates]]
{{documentation}}</noinclude>
</noinclude>
AllPageAccess, Bureaucrats, Check users, Comment administrators, csmoderator, forumadmin, import, Interface administrators, oversight, rollback, Administrators
232

edits

Navigation menu