Difference between revisions of "InfoTable"

From Sega Retro

m
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="prettytable" |
+
<includeonly>{| class="responsive prettytable" |{{#vardefine:tableimagewidth|{{{imagewidths|}}}}}{{#vardefine:aligncenter|{{{align|}}}}}
 
{{{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 are 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 10 of each.
  
 +
===Optional fields===
 +
Put these under InfoRow if necessary:
 +
<pre>
 +
| tabs=yes
 +
| password=
 +
| map=
 +
| map2=
 +
| map3=
 +
| map4=
 +
| info1name=
 +
| info1=
 +
| info2name=
 +
| info2=
 +
| info3name=
 +
| info3=
 +
| info4name=
 +
| info4=
 +
</pre>
 +
*'''"tabs"''' will apply selectable tabs for images when added. Useful if there are lots of screenshots.
 +
*'''"password"''' is for listing passwords to access specific levels.
 +
*'''"map"''' is for links to map rips of specific levels (up to four).
 +
*'''"info"''' and '''"infoname"''' are for any additional fields of information.
 +
 +
==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
Line 35: Line 139:
 
}}
 
}}
 
}}
 
}}
[[Category:Sega Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 12:48, 15 June 2022


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 are 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 10 of each.

Optional fields

Put these under InfoRow if necessary:

| tabs=yes
| password=
| map=
| map2=
| map3=
| map4=
| info1name=
| info1=
| info2name=
| info2=
| info3name=
| info3=
| info4name=
| info4=
  • "tabs" will apply selectable tabs for images when added. Useful if there are lots of screenshots.
  • "password" is for listing passwords to access specific levels.
  • "map" is for links to map rips of specific levels (up to four).
  • "info" and "infoname" are for any additional fields of information.

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.