Actions

Template

Difference between revisions of "InfoRow"

From Sonic Retro

Line 1: Line 1:
<includeonly>{{#vardefine:secondrow|{{#if:{{{password|}}}{{{map|}}}|true|}}}}{{#if:{{{imagewidth|}}}|{{#vardefine:imagewidth|{{{imagewidth|}}}}}|{{#vardefine:imagewidth|{{#var:tableimagewidth}}}}}}
+
<includeonly>{{#vardefine:secondrow|{{#if:{{{password|}}}{{{map|}}}{{{info1name|}}}{{{info2name|}}}{{{info3name|}}}{{{info4name|}}}|true|}}}}{{#if:{{{imagewidth|}}}|{{#vardefine:imagewidth|{{{imagewidth|}}}}}|{{#vardefine:imagewidth|{{#var:tableimagewidth}}}}}}{{
|rowspan="{{#if:{{#var:secondrow}}|3|2}}" style="vertical-align:top; width:{{#var:imagewidth}}px; white-space: nowrap; {{#if:{{#var:aligncenter}}|text-align:center;|}}"|{{#if:{{{image|}}}|[[File:{{{image|}}}|{{#var:imagewidth}}px]]|}}{{#if:{{{image2|}}}|[[File:{{{image2|}}}|{{#var:imagewidth}}px]]|}}{{#if:{{{image3|}}}|[[File:{{{image3|}}}|{{#var:imagewidth}}px]]|}}{{#if:{{{image4|}}}|[[File:{{{image4|}}}|{{#var:imagewidth}}px]]|}}{{
+
#if:{{{imagescale|}}}|{{#vardefine:imagewidth|{{#expr:{{#var:imagewidth}} * {{{imagescale|}}} }} }}|}}
 +
| rowspan="{{#if:{{#var:secondrow}}|3|2}}" style="vertical-align: top; {{#if:{{{minwidth|}}}|min-width: {{{minwidth|}}}px;|width: {{#var:imagewidth}}px;}} {{#if:{{{tabs|}}}||white-space: nowrap;}} {{#if:{{{bgcolour|}}}{{{bgcolor|}}}|background-color: {{{bgcolour|}}}{{{bgcolor|}}};|}}"|{{#if:{{#var:aligncenter}}|<div style="text-align: center;">|}}{{
 +
#if:{{{image|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image|}}}|{{{imagescale|}}}}}|[[File:{{{image|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak1|}}}|<br/>|}}{{
 +
#if:{{{image2|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image2|}}}|{{{imagescale|}}}}}|[[File:{{{image2|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak2|}}}|<br/>|}}{{
 +
#if:{{{image3|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image3|}}}|{{{imagescale|}}}}}|[[File:{{{image3|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak3|}}}|<br/>|}}{{
 +
#if:{{{image4|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image4|}}}|{{{imagescale|}}}}}|[[File:{{{image4|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak4|}}}|<br/>|}}{{
 +
#if:{{{image5|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image5|}}}|{{{imagescale|}}}}}|[[File:{{{image5|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak5|}}}|<br/>|}}{{
 +
#if:{{{image6|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image6|}}}|{{{imagescale|}}}}}|[[File:{{{image6|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak6|}}}|<br/>|}}{{
 +
#if:{{{image7|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image7|}}}|{{{imagescale|}}}}}|[[File:{{{image7|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak7|}}}|<br/>|}}{{
 +
#if:{{{image8|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image8|}}}|{{{imagescale|}}}}}|[[File:{{{image8|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak8|}}}|<br/>|}}{{
 +
#if:{{{image9|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image9|}}}|{{{imagescale|}}}}}|[[File:{{{image9|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak9|}}}|<br/>|}}{{
 +
#if:{{{image10|}}}|{{#if:{{{imagescale|}}}|{{scaleimage|{{{image10|}}}|{{{imagescale|}}}}}|[[File:{{{image10|}}}|{{#var:imagewidth}}px]]}}|}}{{#if:{{{imagebreak10|}}}|<br/>|}}{{#if:{{{screenshot|}}}|{{#if:{{{tabs|}}}|
 +
{{#vardefine:thumbwidth|{{#if:{{#var:imagewidth2}}|{{#var:imagewidth2}}|{{#expr:{{#var:imagewidth}}/5}}}}}}{{tabs
 +
| hidetitle=yes
 +
| icon1={{#if:{{{screenshot|}}}|{{Bobscreen|{{{screenshot|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| icon2={{#if:{{{screenshot2|}}}|{{Bobscreen|{{{screenshot2|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| icon3={{#if:{{{screenshot3|}}}|{{Bobscreen|{{{screenshot3|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| icon4={{#if:{{{screenshot4|}}}|{{Bobscreen|{{{screenshot4|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| icon5={{#if:{{{screenshot5|}}}|{{Bobscreen|{{{screenshot5|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| icon6={{#if:{{{screenshot6|}}}|{{Bobscreen|{{{screenshot6|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| icon7={{#if:{{{screenshot7|}}}|{{Bobscreen|{{{screenshot7|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| icon8={{#if:{{{screenshot8|}}}|{{Bobscreen|{{{screenshot8|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| icon9={{#if:{{{screenshot9|}}}|{{Bobscreen|{{{screenshot9|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| icon10={{#if:{{{screenshot10|}}}|{{Bobscreen|{{{screenshot10|}}}|width={{#var:thumbwidth}}|link=}}|}}
 +
| content1={{#if:{{{screenshot|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot|}}}}}|}}
 +
| content2={{#if:{{{screenshot2|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot2|}}}}}|}}
 +
| content3={{#if:{{{screenshot3|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot3|}}}}}|}}
 +
| content4={{#if:{{{screenshot4|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot4|}}}}}|}}
 +
| content5={{#if:{{{screenshot5|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot5|}}}}}|}}
 +
| content6={{#if:{{{screenshot6|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot6|}}}}}|}}
 +
| content7={{#if:{{{screenshot7|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot7|}}}}}|}}
 +
| content8={{#if:{{{screenshot8|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot8|}}}}}|}}
 +
| content9={{#if:{{{screenshot9|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot9|}}}}}|}}
 +
| content10={{#if:{{{screenshot10|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot10|}}}}}|}}
 +
| orientation=horizontal
 +
| width={{#var:imagewidth}}px
 +
| selectedstyle=margin:2px; padding-top:5px;
 +
| notselectedstyle=margin:2px; padding-top:5px;
 +
| tabliststyle=margin-top:-4px;
 +
| flipped=yes
 +
}}
 +
|<div style="max-width: 50vw; overflow-x: auto;">{{
 
#if:{{{screenshot|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot|}}}}}|}}{{
 
#if:{{{screenshot|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot|}}}}}|}}{{
 
#if:{{{screenshot2|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot2|}}}}}|}}{{
 
#if:{{{screenshot2|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot2|}}}}}|}}{{
 
#if:{{{screenshot3|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot3|}}}}}|}}{{
 
#if:{{{screenshot3|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot3|}}}}}|}}{{
 
#if:{{{screenshot4|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot4|}}}}}|}}{{
 
#if:{{{screenshot4|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot4|}}}}}|}}{{
#if:{{{sprite|}}}|<div style="text-align:center;">{{{sprite|}}}{{{sprite2|}}}{{{sprite3|}}}{{{sprite4|}}}</div>|}}
+
#if:{{{screenshot5|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot5|}}}}}|}}{{
!style="height:30px"|{{{title|}}}
+
#if:{{{screenshot6|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot6|}}}}}|}}{{
 +
#if:{{{screenshot7|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot7|}}}}}|}}{{
 +
#if:{{{screenshot8|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot8|}}}}}|}}{{
 +
#if:{{{screenshot9|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot9|}}}}}|}}{{
 +
#if:{{{screenshot10|}}}|{{Bobscreen|width={{#var:imagewidth}}|{{{screenshot10|}}}}}|}}</div>}}|}}{{#if:{{#var:aligncenter}}|</div>|}}{{
 +
#if:{{{sprite|}}}|<div style="text-align: center;">{{{sprite|}}}{{{sprite2|}}}{{{sprite3|}}}{{{sprite4|}}}</div>|}}
 +
! style="height: 30px"|{{{title|}}}
 
|-
 
|-
 
{{#if:{{#var:secondrow}}|
 
{{#if:{{#var:secondrow}}|
{{!}}style="vertical-align:top; height:30px"{{!}}{{#if:{{{password|}}}|'''Password:''' {{{password|}}}&nbsp;}} {{#if:{{{map|}}}|'''Map{{#if:{{{map2|}}}|s|}}:''' [[:File:{{{map|}}}|{{{mapname1|1}}}]]{{#if:{{{map2|}}}|&nbsp;{{!}} [[:File:{{{map2|}}}|{{{mapname2|2}}}]]|}}{{#if:{{{map3|}}}|&nbsp;{{!}} [[:File:{{{map3|}}}|{{{mapname3|3}}}]]|}}{{#if:{{{map4|}}}|&nbsp;{{!}} [[:File:{{{map4|}}}|{{{mapname4|4}}}]]|}}&nbsp;}}
+
{{!}}style="vertical-align: top; height: 30px"{{!}}{{
 +
#if:{{{password|}}}|'''Password:''' {{{password|}}}&nbsp;}} {{
 +
#if:{{{map|}}}|'''Map{{#if:{{{map2|}}}|s|}}:''' [[:File:{{{map|}}}|{{{map1name|1}}}]]{{
 +
#if:{{{map2|}}}|&nbsp;{{!}} [[:File:{{{map2|}}}|{{{map2name|2}}}]]|}}{{
 +
#if:{{{map3|}}}|&nbsp;{{!}} [[:File:{{{map3|}}}|{{{map3name|3}}}]]|}}{{
 +
#if:{{{map4|}}}|&nbsp;{{!}} [[:File:{{{map4|}}}|{{{map4name|4}}}]]|}}&nbsp;}}{{
 +
#if:{{{info1|}}}|'''{{{info1name|}}}:''' {{{info1|}}}&nbsp;}}{{
 +
#if:{{{info2|}}}|'''{{{info2name|}}}:''' {{{info2|}}}&nbsp;}}{{
 +
#if:{{{info3|}}}|'''{{{info3name|}}}:''' {{{info3|}}}&nbsp;}}{{
 +
#if:{{{info4|}}}|'''{{{info4name|}}}:''' {{{info4|}}}&nbsp;}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
|style="vertical-align:top;"|{{{desc|}}}
+
| style="vertical-align: top;"|{{{desc|}}}
 
|-
 
|-
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{SegaRetroTemplate}}
 
{{SegaRetroTemplate}}
{{InfoTable
+
{{InfoTable|
|{{InfoRow
+
{{InfoRow
 
| imagewidth=120
 
| imagewidth=120
 
| image=Sonic1 box us nfr1.jpg
 
| image=Sonic1 box us nfr1.jpg
Line 39: Line 95:
 
| map3=Sonic1 MD Map Ghz3.png
 
| map3=Sonic1 MD Map Ghz3.png
 
| map4=SonicAdvance3 Map SunsetHill Hub.png
 
| map4=SonicAdvance3 Map SunsetHill Hub.png
| mapname1=Act 1
+
| map1name=Act 1
| mapname2=Act 2
+
| map2name=Act 2
| mapname3=Act 3
+
| map3name=Act 3
| mapname4=Hub
+
| map4name=Hub
 
| title=Sonic the Hedgehog 2
 
| title=Sonic the Hedgehog 2
 
| password=sajfdmow03
 
| password=sajfdmow03
Line 84: Line 140:
 
| sprite={{spriteImage|Sonic1 MD Sprite Monitors.png|crop_width=30|crop_x=240|2}}
 
| sprite={{spriteImage|Sonic1 MD Sprite Monitors.png|crop_width=30|crop_x=240|2}}
 
| desc=Hurts the player.
 
| desc=Hurts the player.
 +
}}
 +
}}
 +
 +
{{InfoTable|imagewidths=320|
 +
{{InfoRow
 +
| title=Hope You Like Green Hill Zone
 +
| screenshot=Ghz.png
 +
| screenshot2=Green Hill SMS.png
 +
| screenshot3=Drift Green Hill.png
 +
| screenshot4=Green Hill Blast.png
 +
| screenshot5=Sa2ghz.png
 +
| screenshot6=Sonic generations 5.jpg
 +
| screenshot7=ManiaGHZ1clean.png
 +
| screenshot8=GH SonicForces Switch.png
 +
| tabs=yes
 +
| info1name=How many Green Hills?
 +
| info1=Lots
 +
| desc=Because Sega wants you to remember it.
 
}}
 
}}
 
}}
 
}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 09:53, 4 August 2022


Segaretro-round.svg This template has been manually copied from Sega Retro, specifically Template:InfoRow
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.
Sonic1 box us nfr1.jpgSonic1 box eu.jpgSonic1 box jap.jpg Sonic the Hedgehog
The most famous hedgehog in the world.
Sonic2 title.png
S2b title.png
Sonic2 title.png
S2b title.png
Sonic the Hedgehog 2
Password: sajfdmow03  Maps: Act 1 | Act 2 | Act 3 | Hub 
Are you up 2 it?
Sonic2 title.png
Sonic the Hedgehog 2
Password: sajfdmow03 
Are you up 2 it?
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.
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.
Sonic1 MD Sprite Monitors.png
1-UP
Extra player life.
Sonic1 MD Sprite Monitors.png
Eggman Mark
Hurts the player.
show;hide
Ghz.png
Green Hill SMS.png
Drift Green Hill.png
Green Hill Blast.png
Sa2ghz.png
Sonic generations 5.jpg
ManiaGHZ1clean.png
GH SonicForces Switch.png
  • Ghz.png
  • Green Hill SMS.png
  • Drift Green Hill.png
  • Green Hill Blast.png
  • Sa2ghz.png
  • Sonic generations 5.jpg
  • ManiaGHZ1clean.png
  • GH SonicForces Switch.png
Hope You Like Green Hill Zone
How many Green Hills?:
Lots
Because Sega wants you to remember it.