Template:Infobox: Difference between revisions

From Screamer Wiki
Jump to: navigation, search
m (Am I right. Now extra little tests to see where the bug attacked.)
(Undo revision 47999 by SkyBlueCat (talk))
Tag: Undo
(48 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<br clear=all>
<!-- START OF PADDING AROUND INFO BOX -->
<!-- START OF PADDING AROUND INFO BOX -->
{| border="0" cellpadding="20" width= "320px" style="float: right;"
{| border="0" cellpadding="20" width= "320px" style="float: right;"
Line 6: Line 5:
|
|
<!-- START OF ACTUAL INFO BOX -->
<!-- START OF ACTUAL INFO BOX -->
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #d95e1c" align="center"
{| border="0" cellpadding="2" cellspacing="0" style="background: #212121; border: 1px solid #d44d1c" align="center"
|-
|-
!style="background:#2447a6;" |'''{{{name|{{PAGENAME}}}}}'''
!style="background:#d44d1c;" |<font color="white" style="font-size:120%">'''{{{name|{{PAGENAME}}}}}'''</font>
|-
|-
|
|
<!-- BORDER AROUND THE IMAGE -->
<!-- BORDER AROUND THE IMAGE -->
{| border="0" cellpadding="2" cellspacing="0" style="background: black; border: 1px solid #d95e1c" align="center"
{| border="0" cellpadding="1" cellspacing="0" style="background: #212121; border: 1px solid #d44d1c" align="center"
|-
|-
![[File:{{{Picture|none.png}}}|250px|center|]]
![[File:{{{Picture|none.png}}}|290px|center|]]
|-
|-
|}<div style= align="center">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div>
|}<div style="align=center; text-align:center; font-size:95%">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div>
<!-- END OF BORDER AROUND IMAGE -->
<!-- END OF BORDER AROUND IMAGE -->
|-
|-
|
|
{| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #d95e1c"
{| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #4a4a4a"
|-valign="top"
|-valign="top"
{{#if:{{{Maker|}}} |
{{#if:{{{Maker|}}} |
Line 29: Line 28:
{{#if:{{{Type|}}} |
{{#if:{{{Type|}}} |
!width=100{{!}}Type:
!width=100{{!}}Type:
!width=200{{!}}{{{Type|}}}
!width=200{{!}}{{{Type|''Unknown''}}}
}}
|-valign="top"
{{#if:{{{Language|}}} |
!width=100{{!}}Language:
!width=200{{!}}{{{Language|}}}
}}
|-valign="top"
{{#if:{{{Length|}}} |
!width=100{{!}}Length:
!width=200{{!}}{{{Length|}}}
}}
|-valign="top"
{{#if:{{{Country|}}} |
!width=100{{!}}Country:
!width=200{{!}}{{{Country|}}}
}}
}}
|-valign="top"
|-valign="top"
{{#if:{{{Release Date|}}} |
{{#if:{{{Release date|}}} |
!width=100{{!}}Release Date:
!width=100{{!}}Release date:
!width=200{{!}}{{{Release Date|}}} |
!width=200{{!}}{{{Release date|''Unknown''}}}
}}
}}
|-
|-
Line 58: Line 42:
|}
|}
<!-- END OF PADDING AROUND INFOBOX -->
<!-- END OF PADDING AROUND INFOBOX -->
</font>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
<div><pre>
<div><pre>
{{Infobox
{{Infobox
|title =  
|name =  
|image =  
|Picture =  
|imagecaption =  
|Quote =  
|maker = ''Unknown''
|Maker = ''Unknown''
|type =  
|Type = ''Unknown''
|language =  
|Release date = ''Unknown''
|length =
}}
|country = ''Unknown''
</pre></div>
|date =  
 
==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
|Maker = Jeremy Winterrowd
|Type = Flash game
|Release date = October 2004
|Quote = The third level in The Maze.
}}
}}
</pre></div>
</pre></div>
Results in the following (normally aligned on the right of the screen):
{|
|-
|{{Infobox
|name = The Maze
|Picture = The_Maze.jpg
|Maker = Jeremy Winterrowd
|Type = Flash game
|Release date = October 2004
|Quote = The third level in The Maze.
}}
|-
|}
<br clear=all>
[[Category:Templates]]
[[Category:Templates]]
[[Category:Infobox]]
[[Category:Infobox]]
</noinclude>
</noinclude>

Revision as of 19:39, 1 April 2021


{{Infobox
|name = 
|Picture = 
|Quote = 
|Maker = ''Unknown''
|Type = ''Unknown''
|Release date = ''Unknown''
}}

Example

Notes: Use the operator
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:

{{Infobox
|name = The Maze
|Picture = The_Maze.jpg
|Maker = Jeremy Winterrowd
|Type = Flash game
|Release date = October 2004
|Quote = The third level in The Maze.
}}

Results in the following (normally aligned on the right of the screen):

The Maze
The third level in The Maze.
Maker: Jeremy Winterrowd
Type: Flash game
Release date: October 2004