Difference between revisions of "InfoTable"

From Sega Retro

Line 1: Line 1:
{| class="prettytable" |{{#vardefine:tableimagewidth|{{{imagewidths|}}}}}
+
<includeonly>{| class="prettytable" |{{#vardefine:tableimagewidth|{{{imagewidths|}}}}}
 
{{{1|}}}
 
{{{1|}}}
|}<noinclude>
+
|}</includeonly><noinclude>
  
{{InfoTable
+
A simple table for displaying information about characters, levels, items etc. Use in conjunction with [[:Template:InfoRow]].
|{{InfoRow
+
 
 +
==Usage==
 +
<pre>
 +
{{InfoTable|
 +
| imagewidths=
 +
{{InfoRow
 +
| imagewidth=
 
| image=
 
| image=
 
| image2=
 
| image2=
Line 10: Line 16:
 
| image4=
 
| image4=
 
| title=
 
| title=
 +
| password=
 
| desc=
 
| desc=
 +
}}
 +
}}
 +
</pre>
 +
There aer three types of "image" that can be displayed
 +
*"image", which is a regular mediawiki image
 +
*"screenshot", which uses [[:Template:Bobscreen]] to correct TV aspect ratios
 +
*"sprite", which can be used to display 2D sprites with [[:Template:Sprite]]
 +
 +
Use "imagewidths" to force a width for images/screenshots. Each one can be overriden by the "imagewidth" argument in InfoRow. The template supports up to 4 of each.
 +
 +
==Examples==
 +
<pre>
 +
{{InfoTable
 +
|{{InfoRow
 +
| imagewidth=120
 +
| image=SF2SCE MD US Box.jpg
 +
| image2=SF2SCE MD EU Box.jpg
 +
| image3=SF2SCE MD JP Box.jpg
 +
| image4=
 +
| title=Street Fighter II
 +
| desc=Shadaloo
 +
}}
 +
}}
 +
</pre>
 +
{{InfoTable
 +
|{{InfoRow
 +
| imagewidth=120
 +
| image=SF2SCE MD US Box.jpg
 +
| image2=SF2SCE MD EU Box.jpg
 +
| image3=SF2SCE MD JP Box.jpg
 +
| image4=
 +
| title=Street Fighter II
 +
| desc=Shadaloo
 +
}}
 +
}}
 +
----
 +
<pre>
 +
{{InfoTable|imagewidths=320|
 +
{{InfoRow
 +
| imagewidth=80
 +
| screenshot=SF2SCE Title.png
 +
| screenshot2=SuperSteetFighter2 Title.png
 +
| screenshot3=SF2SCE Title.png
 +
| screenshot4=SuperSteetFighter2 Title.png
 +
| title=Psycho crusher
 +
| password=sajfdmow03
 +
| desc=Psycho crusssaaahhrrrhh
 +
}}
 +
{{InfoRow
 +
| screenshot=SF2SCE Title.png
 +
| title=Psycho crusher
 +
| password=sajfdmow03
 +
| desc=Psycho crusssaaahhrrrhh
 +
}}
 +
}}
 +
</pre>
 +
{{InfoTable|imagewidths=320|
 +
{{InfoRow
 +
| imagewidth=80
 +
| screenshot=SF2SCE Title.png
 +
| screenshot2=SuperSteetFighter2 Title.png
 +
| screenshot3=SF2SCE Title.png
 +
| screenshot4=SuperSteetFighter2 Title.png
 +
| title=Psycho crusher
 +
| password=sajfdmow03
 +
| desc=Psycho crusssaaahhrrrhh
 +
}}
 +
{{InfoRow
 +
| screenshot=SF2SCE Title.png
 +
| title=Psycho crusher
 +
| password=sajfdmow03
 +
| desc=Psycho crusssaaahhrrrhh
 
}}
 
}}
 
}}
 
}}
  
 +
----
 +
<pre>
 
{{InfoTable|
 
{{InfoTable|
 
{{InfoRow
 
{{InfoRow
| screenshot=
+
| sprite={{sprite|SSFII MD Portraits.png|crop_width=56}}
| screenshot2=
+
| sprite2={{sprite|SSFII MD Portraits.png|crop_width=56|crop_x=56}}
| screenshot3=
+
| sprite3={{sprite|SSFII MD Portraits.png|crop_width=56}}
| screenshot4=
+
| sprite4={{sprite|SSFII MD Portraits.png|crop_width=56|crop_x=56}}
| title=
+
| title=Ryu/E.Honda fun time
| desc=
+
| desc=Hurray it's Ryu. And E.Honda.
 
}}
 
}}
 
}}
 
}}
 
+
</pre>
 
{{InfoTable|
 
{{InfoTable|
 
{{InfoRow
 
{{InfoRow

Revision as of 14:26, 23 July 2018


A simple table for displaying information about characters, levels, items etc. Use in conjunction with Template:InfoRow.

Usage

{{InfoTable|
| imagewidths=
{{InfoRow
| imagewidth=
| image=
| image2=
| image3=
| image4=
| title=
| password=
| desc=
}}
}}

There aer three types of "image" that can be displayed

  • "image", which is a regular mediawiki image
  • "screenshot", which uses Template:Bobscreen to correct TV aspect ratios
  • "sprite", which can be used to display 2D sprites with Template:Sprite

Use "imagewidths" to force a width for images/screenshots. Each one can be overriden by the "imagewidth" argument in InfoRow. The template supports up to 4 of each.

Examples

{{InfoTable
|{{InfoRow
| imagewidth=120
| image=SF2SCE MD US Box.jpg
| image2=SF2SCE MD EU Box.jpg
| image3=SF2SCE MD JP Box.jpg
| image4=
| title=Street Fighter II
| desc=Shadaloo
}}
}}
SF2SCE MD US Box.jpgSF2SCE MD EU Box.jpgSF2SCE MD JP Box.jpg Street Fighter II
Shadaloo

{{InfoTable|imagewidths=320|
{{InfoRow
| imagewidth=80
| screenshot=SF2SCE Title.png
| screenshot2=SuperSteetFighter2 Title.png
| screenshot3=SF2SCE Title.png
| screenshot4=SuperSteetFighter2 Title.png
| title=Psycho crusher
| password=sajfdmow03
| desc=Psycho crusssaaahhrrrhh
}}
{{InfoRow
| screenshot=SF2SCE Title.png
| title=Psycho crusher
| password=sajfdmow03
| desc=Psycho crusssaaahhrrrhh
}}
}}

SF2SCE Title.png

SuperSteetFighter2 Title.png

SF2SCE Title.png

SuperSteetFighter2 Title.png

Psycho crusher
Password: sajfdmow03 
Psycho crusssaaahhrrrhh

SF2SCE Title.png

Psycho crusher
Password: sajfdmow03 
Psycho crusssaaahhrrrhh

{{InfoTable|
{{InfoRow
| sprite={{sprite|SSFII MD Portraits.png|crop_width=56}}
| sprite2={{sprite|SSFII MD Portraits.png|crop_width=56|crop_x=56}}
| sprite3={{sprite|SSFII MD Portraits.png|crop_width=56}}
| sprite4={{sprite|SSFII MD Portraits.png|crop_width=56|crop_x=56}}
| title=Ryu/E.Honda fun time
| desc=Hurray it's Ryu. And E.Honda.
}}
}}
SSFII MD Portraits.png
SSFII MD Portraits.png
SSFII MD Portraits.png
SSFII MD Portraits.png
Ryu/E.Honda fun time
Hurray it's Ryu. And E.Honda.