Actions

Template

Difference between revisions of "InfoTable"

From Sonic Retro

(Created page with "<includeonly>{| class="responsive prettytable" style="width:auto" |{{#vardefine:tableimagewidth|{{{imagewidths|}}}}}{{#vardefine:aligncenter|{{{align|}}}}} {{{1|}}} |}</includ...")
 
Line 117: Line 117:
 
}}
 
}}
 
}}
 
}}
[[Category:Sonic Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Revision as of 19:19, 1 January 2022


Segaretro-round.svg This template has been manually copied from Sega Retro, specifically Template:InfoTable
Technical restrictions prevent this template from being shared across multiple wikis. In the medium term, any changes should be made to the Sega Retro variant first, before manually copying the contents back here. As this is not an automatic process, this version of the template might also be out of date.

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:SpriteImage

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=Sonic1 box us nfr1.jpg
| image2=Sonic1 box eu.jpg
| image3=Sonic1 box jap.jpg
| image4=
| title=Sonic the Hedgehog
| desc=The most famous hedgehog in the world.
}}
}}
Sonic1 box us nfr1.jpgSonic1 box eu.jpgSonic1 box jap.jpg Sonic the Hedgehog
The most famous hedgehog in the world.

{{InfoTable|imagewidths=320|
{{InfoRow
| imagewidth=80
| screenshot=Sonic2 title.png
| screenshot2=S2b title.png
| screenshot3=Sonic2 title.png
| screenshot4=S2b title.png
| title=Sonic the Hedgehog 2
| password=sajfdmow03
| desc=Are you up 2 it?
}}
{{InfoRow
| screenshot=Sonic2 title.png
| title=Sonic the Hedgehog 2
| password=sajfdmow03
| desc=Are you up 2 it?
}}
}}
Sonic2 title.png
S2b title.png
Sonic2 title.png
S2b title.png
Sonic the Hedgehog 2
Password: sajfdmow03 
Are you up 2 it?
Sonic2 title.png
Sonic the Hedgehog 2
Password: sajfdmow03 
Are you up 2 it?

{{InfoTable|
{{InfoRow
| sprite={{spriteImage|Sonic2 MD Sprite SlotMachine.png|crop_width=30|2}}
| sprite2={{spriteImage|Sonic2 MD Sprite SlotMachine.png|crop_width=30|crop_x=60|2}}
| sprite3={{spriteImage|Sonic2 MD Sprite SlotMachine.png|crop_width=30|2}}
| sprite4={{spriteImage|Sonic2 MD Sprite SlotMachine.png|crop_width=30|crop_x=60|2}}
| title=Sonic & Knuckles
| desc=Knock knock it's Knuckles.
}}
}}
Sonic2 MD Sprite SlotMachine.png
Sonic2 MD Sprite SlotMachine.png
Sonic2 MD Sprite SlotMachine.png
Sonic2 MD Sprite SlotMachine.png
Sonic & Knuckles
Knock knock it's Knuckles.