Permanently protected template

Template:Infobox: Difference between revisions

From Screamer Wiki
Jump to navigation Jump to search
No edit summary
let's test this out
 
(44 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
<onlyinclude><infobox>
<!-- START OF PADDING AROUND INFO BOX -->
<title source="title">
{| border="0" cellpadding="20" width= "320px" style="float: right;"
<default>{{PAGENAME}}</default>
|-
</title>
|
<image source="image">
<!-- START OF ACTUAL INFO BOX -->
<default>NoImageAvailable.png</default>
{| border="0" cellpadding="2" cellspacing="0" style="background: #212121; border: 1px solid #d44d1c" align="center"
<caption source="imagecaption"/>
|-
</image>
!style="background:#d44d1c;" |<font color="white"><big><big>'''{{{name|{{PAGENAME}}}}}'''</big></big></font>
<group>
|-
<header>About This Screamer</header>
|
<data source="maker">
<!-- BORDER AROUND THE IMAGE -->
<label>Maker</label>
{| border="0" cellpadding="2" cellspacing="0" style="background: #212121; border: 1px solid #d44d1c" align="center"
<default>Unknown</default>
|-
</data>
![[File:{{{Picture|none.png}}}|285px|center|]]
<data source="type">
|-
<label>Type</label>
|}<div style="align=center; text-align:center">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div>
<default>Unknown</default>
<!-- END OF BORDER AROUND IMAGE -->
</data>
|-
<data source="date">
|
<label>Release date</label>
{| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #4a4a4a"
<default>Unknown</default>
|-valign="top"
</data>
{{#if:{{{Maker|}}} |
</group>
!width=100{{!}}Maker:
<group layout="horizontal">
!width=200{{!}}{{{Maker|''Unknown''}}}
<header>Order</header>
}}
<data source="previous">
|-valign="top"
<label>Previous</label>
{{#if:{{{Type|}}} |
</data>
!width=100{{!}}Type:
<data source="next">
!width=200{{!}}{{{Type|''Unknown''}}}
<label>Next</label>
}}
</data>
|-valign="top"
</group>
{{#if:{{{Release date|}}} |
</infobox></onlyinclude><noinclude>
!width=100{{!}}Release date:
<br style="clear:both;"/>
!width=200{{!}}{{{Release date|''Unknown''}}}
{{documentation}}
}}
|-
|}
<!-- END OF FIRST SECTION  -->
|}
<!-- END OF ACTUAL INFOBOX -->
|}
<!-- END OF PADDING AROUND INFOBOX -->
</includeonly>
<noinclude>
<div><pre>
{{ScreamerInfobox
|name =  
|Picture =
|Quote =
|Maker = ''Unknown''
|Type = ''Unknown''
|Release date = ''Unknown''
}}
</pre></div>
 
==Example==
Notes: Use the operator <br> in source mode to add linebreaks within the table. Sections left blank will not be displayed. The title that appears at the top of the infobox will be the same as the name of the page it is on. Note that the picture field requires the extension (.jpg, .jpeg, .png) to be present, and requires that the File: or Image: part of the link not be present.
 
Using the following:
 
<div><pre>
{{Infobox
|name = The Maze
|Picture = The_Maze.jpg
|Quote = The third level in The Maze.
|Maker = Jeremy Winterrowd
|Type = Flash game
|Release date = October 2004
}}
 
</pre></div>
 
Results in the following (normally aligned on the right of the screen):
 
{|
|-
|{{Infobox
|name = The Maze
|Picture = The_Maze.jpg
|Quote = The third level in The Maze.
|Maker = Jeremy Winterrowd
|Type = Flash game
|Release date = October 2004
}}
|-
|}
<br clear=all>
 
[[Category:Templates]]
[[Category:Infobox]]
</noinclude>
</noinclude>

Latest revision as of 23:13, 11 August 2025