Screamer Forums and Screamer gallery have returned.

The Screamer Forums will likely remain read only unless it's known that it will be active, since forums in general are kind of dead because of Discord.

Template:Infobox: Difference between revisions

From Screamer Wiki
Jump to navigation Jump to search
m 1 revision
Sump (talk | contribs)
Infobox updated using the portable infobox migration tool
Line 1: Line 1:
{| 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;"
<infobox>
|-
<data source="Box title"><label>Box title</label><default>No Title</default></data>
|height="32" colspan="2" align="center" style="background: #D1BEF4;"|
<data source="Image file"><label>Image file</label></data>
<div style="top:+0.2em;font-size: 105%">'''''{{{Box title|No Title}}}'''''</div>
<data source="Image size"><label>Image size</label></data>
{{#if: {{{Image file|}}}|
<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>
{{!}}colspan="2" align="center" valign="top" style="background: #FFFFFF;"{{!}}
<data source="Row 2 title"><label>Row 2 title</label></data>
[[Image:{{{Image file}}}|{{{Image size}}}px]]
<data source="Row 2 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 2 title}}}'''</div></label><default>No information</default></data>
|
<data source="Row 3 title"><label>Row 3 title</label></data>
}}
<data source="Row 3 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 3 title}}}'''</div></label><default>No information</default></data>
|-
<data source="Row 4 title"><label>Row 4 title</label></data>
|height="32" Width="30%" valign="top" style="background: #D1BEF4;"|
<data source="Row 4 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 4 title}}}'''</div></label><default>No information</default></data>
<div style="top:+0.2em;font-size: 95%">'''{{{Row 1 title|No Title}}}'''</div>
<data source="Row 5 title"><label>Row 5 title</label></data>
|valign="top" style="background: #FFFFFF;"|
<data source="Row 5 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 5 title}}}'''</div></label><default>No information</default></data>
<div style="top:+0.2em;font-size: 95%">{{{Row 1 info|No information}}}</div>
<data source="Row 6 title"><label>Row 6 title</label></data>
{{#if: {{{Row 2 title|}}}|
<data source="Row 6 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 6 title}}}'''</div></label><default>No information</default></data>
{{!}}-
<data source="Row 7 title"><label>Row 7 title</label></data>
{{!}}height="32" Width="30%" valign="top"  style="background: #D1BEF4;"{{!}}
<data source="Row 7 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 7 title}}}'''</div></label><default>No information</default></data>
<div style="top:+0.2em;font-size: 95%">'''{{{Row 2 title}}}'''</div>
<data source="Row 8 title"><label>Row 8 title</label></data>
{{!}}valign="top"  style="background: #FFFFFF;"{{!}}
<data source="Row 8 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 8 title}}}'''</div></label><default>No information</default></data>
<div style="top:+0.2em;font-size: 95%">{{{Row 2 info|No information}}}</div>
<data source="Row 9 title"><label>Row 9 title</label></data>
{{#if: {{{Row 3 title|}}}|
<data source="Row 9 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 9 title}}}'''</div></label><default>No information</default></data>
{{!}}-
<data source="Row 10 title"><label>Row 10 title</label></data>
{{!}}height="32" Width="30%" valign="top"  style="background: #D1BEF4;"{{!}}
<data source="Row 10 info"><label><div style="top:+0.2em;font-size: 95%">'''{{{Row 10 title}}}'''</div></label><default>No information</default></data>
<div style="top:+0.2em;font-size: 95%">'''{{{Row 3 title}}}'''</div>
<data source="Row 11 title"><label>Row 11 title</label></data>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
</infobox>
<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: #D1BEF4;"{{!}}
<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: #D1BEF4;"{{!}}
<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: #D1BEF4;"{{!}}
<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: #D1BEF4;"{{!}}
<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: #D1BEF4;"{{!}}
<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: #D1BEF4;"{{!}}
<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: #D1BEF4;"{{!}}
<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>
<noinclude>
== Usage & preview ==
Type in this:


<pre>
{{Infobox
|Box title=
|Image file=
|Image size=
|Row 1 title=
|Row 1 info=
|Row 2 title=
|Row 2 info=
|Row 3 title=
|Row 3 info=
|Row 4 title=
|Row 4 info=
|Row 5 title=
|Row 5 info=
|Row 6 title=
|Row 6 info=
|Row 7 title=
|Row 7 info=
|Row 8 title=
|Row 8 info=
|Row 9 title=
|Row 9 info=
|Row 10 title=
|Row 10 info=
|Row 11 title=
}}


</pre>


to see this:


{{Infobox
|Box title=This is a test
|Image file=This is a test
|Image size=This is a test
|Row 1 title=This is a test
|Row 1 info=This is a test
|Row 2 title=This is a test
|Row 2 info=This is a test
|Row 3 title=This is a test
|Row 3 info=This is a test
|Row 4 title=This is a test
|Row 4 info=This is a test
|Row 5 title=This is a test
|Row 5 info=This is a test
|Row 6 title=This is a test
|Row 6 info=This is a test
|Row 7 title=This is a test
|Row 7 info=This is a test
|Row 8 title=This is a test
|Row 8 info=This is a test
|Row 9 title=This is a test
|Row 9 info=This is a test
|Row 10 title=This is a test
|Row 10 info=This is a test
|Row 11 title=This is a test
}}


==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]]
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
</noinclude>
</noinclude>

Revision as of 16:43, 19 August 2015

Usage & preview

Type in this:

{{Infobox
|Box title=
|Image file=
|Image size=
|Row 1 title=
|Row 1 info=
|Row 2 title=
|Row 2 info=
|Row 3 title=
|Row 3 info=
|Row 4 title=
|Row 4 info=
|Row 5 title=
|Row 5 info=
|Row 6 title=
|Row 6 info=
|Row 7 title=
|Row 7 info=
|Row 8 title=
|Row 8 info=
|Row 9 title=
|Row 9 info=
|Row 10 title=
|Row 10 info=
|Row 11 title=
}}

to see this:


Click here to refresh the preview above