The forum pages are fully operational! See this link for the latest forum topics, where users can collaborate or discuss certain topics in one place!

Editing Template:Infobox

From Arthur Wiki
Jump to navigationJump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px; {{roundy|12px}}"
{| border="1" align="right" cellspacing="0" cellpadding="3" style="border:2px solid #000000; float:right; width:300px; background:#ffffff; color:black; margin:0px 0px 15px 15px; border-collapse:collapse;"
|-
|-
! colspan="2" style="background-color:#3366CC; color:#FFFFFF; font-size:120%; padding:1em; {{roundy|10px}}" | {{{Box title|No Title}}}
|height="32" colspan="2" align="center" style="background: #BC1B1B;"|
{{#if: {{{image|}}}|
<div style="top:+0.2em;font-size: 105%">'''''{{{Box title|No Title}}}'''''</div>
{{#if: {{{Image file|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
{{!}}colspan="2" align="center" valign="top" style="background: #FFFFFF;"{{!}}
[[Image:{{{Image file}}}|{{{Image size}}}px]]
|
|
}}
}}
|-
|-
| style="width:30%;" |
|height="32" Width="30%" valign="top" style="background: #BC1B1B"|
'''{{{Row 1 title|No Title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 1 title|No Title}}}'''</div>
| style="width:70%;" |
|valign="top" style="background: #FFFFFF;"|
{{{Row 1 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 1 info|No information}}}</div>
{{#if: {{{Row 2 title|}}}|
{{#if: {{{Row 2 title|}}}|
{{!}}-
{{!}}-
{{!}}
{{!}}height="32" Width="30%" valign="top"  style="background: #BC1B1B;"{{!}}
'''{{{Row 2 title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 2 title}}}'''</div>
{{!}}
{{!}}valign="top"  style="background: #FFFFFF;"{{!}}
{{{Row 2 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 2 info|No information}}}</div>
{{#if: {{{Row 3 title|}}}|
{{#if: {{{Row 3 title|}}}|
{{!}}-
{{!}}-
{{!}}
{{!}}height="32" Width="30%" valign="top"  style="background: #BC1B1B;"{{!}}
'''{{{Row 3 title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 3 title}}}'''</div>
{{!}}
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{{Row 3 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 3 info|No information}}}</div>
{{#if: {{{Row 4 title|}}}|
{{#if: {{{Row 4 title|}}}|
{{!}}-
{{!}}-
{{!}}
{{!}}height="32" Width="30%" valign="top" style="background: #BC1B1B;"{{!}}
'''{{{Row 4 title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 4 title}}}'''</div>
{{!}}
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{{Row 4 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 4 info|No information}}}</div>
{{#if: {{{Row 5 title|}}}|
{{#if: {{{Row 5 title|}}}|
{{!}}-
{{!}}-
{{!}}
{{!}}height="32" Width="30%" valign="top" style="background: #BC1B1B;"{{!}}
'''{{{Row 5 title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 5 title}}}'''</div>
{{!}}
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{{Row 5 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 5 info|No information}}}</div>
{{#if: {{{Row 6 title|}}}|
{{#if: {{{Row 6 title|}}}|
{{!}}-
{{!}}-
{{!}}
{{!}}height="32" Width="30%" valign="top" style="background: #BC1B1B;"{{!}}
'''{{{Row 6 title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 6 title}}}'''</div>
{{!}}
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{{Row 6 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 6 info|No information}}}</div>
{{#if: {{{Row 7 title|}}}|
{{#if: {{{Row 7 title|}}}|
{{!}}-
{{!}}-
{{!}}
{{!}}height="32" Width="30%" valign="top" style="background: #BC1B1B;"{{!}}
'''{{{Row 7 title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 7 title}}}'''</div>
{{!}}
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{{Row 7 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 7 info|No information}}}</div>
{{#if: {{{Row 8 title|}}}|
{{#if: {{{Row 8 title|}}}|
{{!}}-
{{!}}-
{{!}}
{{!}}height="32" Width="30%" valign="top" style="background: #BC1B1B;"{{!}}
'''{{{Row 8 title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 8 title}}}'''</div>
{{!}}
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{{Row 8 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 8 info|No information}}}</div>
{{#if: {{{Row 9 title|}}}|
{{#if: {{{Row 9 title|}}}|
{{!}}-
{{!}}-
{{!}}
{{!}}height="32" Width="30%" valign="top" style="background: #BC1B1B;"{{!}}
'''{{{Row 9 title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 9 title}}}'''</div>
{{!}}
{{!}}valign="top" style="background: #FFFFFF; border: 1px solid #aaaaaa"{{!}}
{{{Row 9 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 9 info|No information}}}</div>
{{#if: {{{Row 10 title|}}}|
{{#if: {{{Row 10 title|}}}|
{{!}}-
{{!}}-
{{!}}
{{!}}height="32" Width="30%" valign="top" style="background: #BC1B1B;"{{!}}
'''{{{Row 10 title}}}'''
<div style="top:+0.2em;font-size: 95%">'''{{{Row 10 title}}}'''</div>
{{!}}
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
{{{Row 10 info|No information}}}
<div style="top:+0.2em;font-size: 95%">{{{Row 10 info|No information}}}</div>
{{#if: {{{Row 11 title|}}}|
{{#if: {{{Row 11 title|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align:center; background:#AAAAAA;" {{!}}
{{!}}height="32" colspan="2" align="center" valign="top" style="background: #aaaaaa;"{{!}}
'''Too many parameters'''
Too many parameters
|
|
}}
}}
Line 90: Line 92:
|
|
}}
}}
|}<noinclude><br style="clear:both;"/>
|}
{{documentation}}</noinclude>
<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>

Please note that all contributions to Arthur Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see Arthur Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)