πŸŽƒ Happy Halloween, Screamer Wiki! πŸŽƒ

Permanently protected template

Template:Infobox: Difference between revisions

From Screamer Wiki
Jump to: navigation, search
(Creating generic infobox)
(Undo revision 133245 by Angeleno (talk))
Tag: Undo
Β 
(205 intermediate revisions by 15 users not shown)
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;"
<onlyinclude><infobox>
|-
<title source="title"><default><font face="Rubik"; style="font-weight:bold">{{PAGENAME}}</font></default></title>
|height="32" colspan="2" align="center" style="background: #D1BEF4;"|
<image source="image"><default>NoImageAvailable.png</default><caption source="imagecaption"/></image>
<div style="top:+0.2em;font-size: 105%">'''''{{{Box title|No Title}}}'''''</div>
<group>
{{#if: {{{Image file|}}}|
<header><font face="Rubik"><font color="white">About This Screamer</header>
{{!}}-
<data source="maker"><label>Maker</label><default>Unknown</default></data>
{{!}}colspan="2" align="center" valign="top" style="background: #FFFFFF;"{{!}}
<data source="type"><label>Type</label><default>Unknown</default></data>
[[Image:{{{Image file}}}|{{{Image size}}}px]]
<data source="date"><label>Release date</label><default>Unknown</font></default></data>
|
</group>
}}
<group layout="horizontal">
|-
<header>Order</header>
|height="32" Width="30%" valign="top" style="background: #D1BEF4;"|
<data source="previous"><label>Previous</label></data>
<div style="top:+0.2em;font-size: 95%">'''{{{Row 1 title|No Title}}}'''</div>
<data source="next"><label>Next</label></data>
|valign="top" style="background: #FFFFFF;"|
</group>
<div style="top:+0.2em;font-size: 95%">{{{Row 1 info|No information}}}</div>
</infobox></onlyinclude><noinclude><br style="clear:both;"/>
{{#if: {{{Row 2 title|}}}|
{{documentation}}</noinclude>
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
<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: #D1BEF4;"{{!}}
<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: #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>
Β 
Β 
Β 
Β 
Β 
==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>

Latest revision as of 15:58, 25 June 2023