Difference between revisions of "InfoFighter"
From Sega Retro
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine: | + | <includeonly>{{#vardefine:cellwidth | {{#if:{{#var:tableimagewidth}} | {{#var:tableimagewidth}}px | {{#if:{{{imagewidth|}}} | {{{imagewidth|}}}px | auto}} }} }} |
− | |||
|- | |- | ||
− | | rowspan="2" style="background: | + | | rowspan="2" style="background: #000; border: 1px solid #000; color: #fff; padding: 0; position: relative; vertical-align: top;" | {{#if:{{{portrait|}}} | <div style="background: linear-gradient(transparent 50%, #000 100%); position: relative; left: 50%; top: 0; text-align: center; transform: translateX(-50%); width: {{#var:cellwidth}}; z-index: 2;"><div style="visibility: hidden;">{{{portrait|}}}</div></div> }} |
− | <div style="position: absolute; left: 50%; margin-bottom: 2em; top: 0; transform: translateX(-50%); z-index: 1;">{{{portrait|}}}</div> | + | <div style="position: absolute; left: 50%; margin-bottom: 2em; top: 0; text-align: center; transform: translateX(-50%); width: {{#var:cellwidth}}; z-index: 1;">{{{portrait|}}}</div> |
{{#if:{{{sprite|}}} | <div style="display: flex; justify-content: space-evenly;">{{#if:{{{sprite|}}} | {{{sprite|}}} }}{{#if:{{{sprite2|}}} | {{{sprite2|}}} }}</div>}} | {{#if:{{{sprite|}}} | <div style="display: flex; justify-content: space-evenly;">{{#if:{{{sprite|}}} | {{{sprite|}}} }}{{#if:{{{sprite2|}}} | {{{sprite2|}}} }}</div>}} | ||
− | {{#if:{{{info1|}}} | <div style="border-color: | + | {{#if:{{{info1|}}} | <div style="border-color: #fff; border-style: solid; border-width: 0 0 2px 4px; font-size: 0.75rem; font-weight: bold; margin: 1em 0 0 1em; padding-left: 0.5em;">{{{info1name|}}}:</div><div style="padding-left: 1em;">{{{info1|}}}</div> }} |
− | {{#if:{{{info2|}}} | <div style="border-color: | + | {{#if:{{{info2|}}} | <div style="border-color: #fff; border-style: solid; border-width: 0 0 2px 4px; font-size: 0.75rem; font-weight: bold; margin: 1em 0 0 1em; padding-left: 0.5em;">{{{info2name|}}}:</div><div style="padding-left: 1em;">{{{info2|}}}</div> }} |
− | {{#if:{{{info3|}}} | <div style="border-color: | + | {{#if:{{{info3|}}} | <div style="border-color: #fff; border-style: solid; border-width: 0 0 2px 4px; font-size: 0.75rem; font-weight: bold; margin: 1em 0 0 1em; padding-left: 0.5em;">{{{info3name|}}}:</div><div style="padding-left: 1em;">{{{info3|}}}</div> }} |
− | {{#if:{{{info4|}}} | <div style="border-color: | + | {{#if:{{{info4|}}} | <div style="border-color: #fff; border-style: solid; border-width: 0 0 2px 4px; font-size: 0.75rem; font-weight: bold; margin: 1em 0 0 1em; padding-left: 0.5em;">{{{info4name|}}}:</div><div style="padding-left: 1em;">{{{info4|}}}</div> }} |
− | {{#if:{{{info5|}}} | <div style="border-color: | + | {{#if:{{{info5|}}} | <div style="border-color: #fff; border-style: solid; border-width: 0 0 2px 4px; font-size: 0.75rem; font-weight: bold; margin: 1em 0 0 1em; padding-left: 0.5em;">{{{info5name|}}}:</div><div style="padding-left: 1em;">{{{info5|}}}</div> }} |
− | {{#if:{{{info6|}}} | <div style="border-color: | + | {{#if:{{{info6|}}} | <div style="border-color: #fff; border-style: solid; border-width: 0 0 2px 4px; font-size: 0.75rem; font-weight: bold; margin: 1em 0 0 1em; padding-left: 0.5em;">{{{info6name|}}}:</div><div style="padding-left: 1em;">{{{info6|}}}</div> }} |
− | | style="background: linear-gradient(to right, | + | | style="background: linear-gradient(to right, #000 50%, #fff 100%); border: 1px solid #000; color: #000; font-size: 2rem; font-weight: bold; font-variant: small-caps; height: 1em; line-height: 100%; padding: 0.25em 0.5em; text-align: right; text-shadow: 2px 2px #fff;" | {{{name|}}} |
|- | |- | ||
− | | style="border: 1px solid | + | | style="border: 1px solid #000; vertical-align: top; width: 100%;" | {{{desc|}}} |
|- | |- | ||
</includeonly><noinclude> | </includeonly><noinclude> |
Revision as of 10:40, 26 February 2024
Shows a fancier version of the InfoRow template for fighting game characters, for use with the InfoTable template.
Usage
The most common named arguments are:
| name= | portrait= | sprite= | desc=
It also supports "info" pairs, similar to the InfoRow template:
| info1name= | info1= | info2name= | info2= | info3name= | info3= | info4name= | info4= | info5name= | info5= | info6name= | info6=
Less common arguments:
| bgcolor= | fgcolor=