Difference between revisions of "InfoRow"
From Sonic Retro
BSonirachi (talk | contribs) m (Text replacement - "Category:Sonic Retro templates" to "Category:Templates") |
BSonirachi (talk | contribs) |
||
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:{{{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|}}} }} {{#if:{{{map|}}}|'''Map{{#if:{{{map2|}}}|s|}}:''' [[:File:{{{map|}}}|{{{ | + | {{!}}style="vertical-align: top; height: 30px"{{!}}{{ |
+ | #if:{{{password|}}}|'''Password:''' {{{password|}}} }} {{ | ||
+ | #if:{{{map|}}}|'''Map{{#if:{{{map2|}}}|s|}}:''' [[:File:{{{map|}}}|{{{map1name|1}}}]]{{ | ||
+ | #if:{{{map2|}}}| {{!}} [[:File:{{{map2|}}}|{{{map2name|2}}}]]|}}{{ | ||
+ | #if:{{{map3|}}}| {{!}} [[:File:{{{map3|}}}|{{{map3name|3}}}]]|}}{{ | ||
+ | #if:{{{map4|}}}| {{!}} [[:File:{{{map4|}}}|{{{map4name|4}}}]]|}} }}{{ | ||
+ | #if:{{{info1|}}}|'''{{{info1name|}}}:''' {{{info1|}}} }}{{ | ||
+ | #if:{{{info2|}}}|'''{{{info2name|}}}:''' {{{info2|}}} }}{{ | ||
+ | #if:{{{info3|}}}|'''{{{info3name|}}}:''' {{{info3|}}} }}{{ | ||
+ | #if:{{{info4|}}}|'''{{{info4name|}}}:''' {{{info4|}}} }} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
− | |style="vertical-align:top;"|{{{desc|}}} | + | | style="vertical-align: top;"|{{{desc|}}} |
|- | |- | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{SegaRetroTemplate}} | {{SegaRetroTemplate}} | ||
− | {{InfoTable | + | {{InfoTable| |
− | + | {{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 | ||
− | | | + | | map1name=Act 1 |
− | | | + | | map2name=Act 2 |
− | | | + | | map3name=Act 3 |
− | | | + | | 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
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. |
Sonic the Hedgehog | |
---|---|
The most famous hedgehog in the world. |
Sonic the Hedgehog 2 | |
---|---|
Password: sajfdmow03 Maps: Act 1 | Act 2 | Act 3 | Hub | |
Are you up 2 it? | |
Sonic the Hedgehog 2 | |
Password: sajfdmow03 | |
Are you up 2 it? |
Sonic & Knuckles | |
---|---|
Knock knock it's Knuckles. | |
Sonic & Knuckles | |
Knock knock it's Knuckles. |
1-UP | |
---|---|
Extra player life. | |
Eggman Mark | |
Hurts the player. |
show;hide
|
Hope You Like Green Hill Zone |
---|---|
How many Green Hills?: Lots | |
Because Sega wants you to remember it. |