Difference between revisions of "Ginfo"

From Sega Retro

(added info rows)
(bringing it into line with prettytable)
 
(One intermediate revision by one other user not shown)
Line 19: Line 19:
 
|[[File:{{{1|}}}|120x120px{{#if:{{{link|}}}|{{!}}link={{{link|}}}}}]]
 
|[[File:{{{1|}}}|120x120px{{#if:{{{link|}}}|{{!}}link={{{link|}}}}}]]
 
}}
 
}}
}}}}</div>{{#if: {{{2|}}} | <div style="background: #fff; border: 1px solid #ddd; color: #000; width: 100%"><div style="background: #1077cb; color: #fff; padding: 2px;">{{{2}}}</div>{{#if: {{{info1name|}}} | <div style="background: #fafafa; border-bottom: 1px solid #ddd; color: inherit; font-size: small; padding: 2px;">{{#if:{{{info1name|}}}|{{InfoRowInfo|{{{info1name|}}}|{{{info1|}}}}}}}{{#if:{{{info2name|}}}|{{InfoRowInfo|{{{info2name|}}}|{{{info2|}}}}}}}{{#if:{{{info3name|}}}|{{InfoRowInfo|{{{info3name|}}}|{{{info3|}}}}}}}{{#if:{{{info4name|}}}|{{InfoRowInfo|{{{info4name|}}}|{{{info4|}}}}}}}{{#if:{{{info5name|}}}|{{InfoRowInfo|{{{info5name|}}}|{{{info5|}}}}}}}{{#if:{{{info6name|}}}|{{InfoRowInfo|{{{info6name|}}}|{{{info6|}}}}}}}{{#if:{{{info7name|}}}|{{InfoRowInfo|{{{info7name|}}}|{{{info7|}}}}}}}{{#if:{{{info8name|}}}|{{InfoRowInfo|{{{info8name|}}}|{{{info8|}}}}}}}{{#if:{{{info9name|}}}|{{InfoRowInfo|{{{info9name|}}}|{{{info9|}}}}}}}{{#if:{{{info10name|}}}|{{InfoRowInfo|{{{info10name|}}}|{{{info10|}}}}}}}</div>}}{{#if: {{{3|}}} | <div style="padding: 2px;">{{{3}}}</div>}}</div>}}</div></div></includeonly><noinclude>
+
}}}}</div>{{#if: {{{2|}}} | <div style="background: #fff; border: 1px solid #ddd; color: #000; width: {{#if: {{{width|}}} | {{{width|}}}px | 100%}};"><div style="background: #1077cb; color: #fff; padding: 0.5em; line-height:1.125rem;">{{{2}}}</div>{{#if: {{{info1name|}}} | <div style="background: #fafafa; border-bottom: 1px solid #ddd; color: inherit; font-size: small; padding: 0.5em;">{{#if:{{{info1name|}}}|{{InfoRowInfo|{{{info1name|}}}|{{{info1|}}}}}}}{{#if:{{{info2name|}}}|{{InfoRowInfo|{{{info2name|}}}|{{{info2|}}}}}}}{{#if:{{{info3name|}}}|{{InfoRowInfo|{{{info3name|}}}|{{{info3|}}}}}}}{{#if:{{{info4name|}}}|{{InfoRowInfo|{{{info4name|}}}|{{{info4|}}}}}}}{{#if:{{{info5name|}}}|{{InfoRowInfo|{{{info5name|}}}|{{{info5|}}}}}}}{{#if:{{{info6name|}}}|{{InfoRowInfo|{{{info6name|}}}|{{{info6|}}}}}}}</div>}}{{#if: {{{3|}}} | <div style="padding: 0.5em;">{{{3}}}</div>}}</div>}}</div></div></includeonly><noinclude>
 
{{gallery|widths=200|screens=yes|
 
{{gallery|widths=200|screens=yes|
 
{{ginfo|Sewer Shark, Characters, Ghost.png|Ghost|The co-pilot of the Hole Hawg, who judges the player's performance.}}
 
{{ginfo|Sewer Shark, Characters, Ghost.png|Ghost|The co-pilot of the Hole Hawg, who judges the player's performance.}}
Line 39: Line 39:
  
 
The first argument is the file, the second argument is the heading, and the third argument is the caption text.
 
The first argument is the file, the second argument is the heading, and the third argument is the caption text.
 +
 +
These arguments can be set explicitly (or they can be inherited from the [[:Template:gallery|gallery]] template):
 +
 +
<pre>
 +
| screen=
 +
| width=
 +
</pre>
 +
 +
It also supports "info" pairs, similar to the [[:Template:InfoRow|InfoRow]] template:
 +
 +
<pre>
 +
| info1name=
 +
| info1=
 +
| info2name=
 +
| info2=
 +
| info3name=
 +
| info3=
 +
| info4name=
 +
| info4=
 +
| info5name=
 +
| info5=
 +
| info6name=
 +
| info6=
 +
</pre>
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 13:36, 26 February 2024

Sewer Shark, Characters, Ghost.png

Ghost
The co-pilot of the Hole Hawg, who judges the player's performance.

Sewer Shark, Characters, Catfish.png

Catfish
The Hole Hawg's robotic navigator, who gives the player directions.

Sewer Shark, Characters, Falco.png

Falco
A fellow "sewer jockey" who is looking for a secret path to Solar City.

Sewer Shark, Characters, Commissioner Stenchler.png

Commissioner Stenchler
The gluttonous bureaucrat who runs Solar City, who becomes increasingly antagonistic.

Displays a gallery item (such as an image or other media) with an infobox. Meant to be used with the gallery template.

Usage

{{gallery|widths=200|screens=yes|
{{ginfo|Sewer Shark, Characters, Ghost.png|Ghost|The co-pilot of the Hole Hawg, who judges the player's performance.}}
{{ginfo|Sewer Shark, Characters, Catfish.png|Catfish|The Hole Hawg's robotic navigator, who gives the player directions.}}
{{ginfo|Sewer Shark, Characters, Falco.png|Falco|A fellow "sewer jockey" who is looking for a secret path to Solar City.}}
{{ginfo|Sewer Shark, Characters, Commissioner Stenchler.png|Commissioner Stenchler|The gluttonous bureaucrat who runs Solar City, who becomes increasingly antagonistic.}}
}}

The first argument is the file, the second argument is the heading, and the third argument is the caption text.

These arguments can be set explicitly (or they can be inherited from the gallery template):

| screen=
| width=

It also supports "info" pairs, similar to the InfoRow template:

| info1name=
| info1=
| info2name=
| info2=
| info3name=
| info3=
| info4name=
| info4=
| info5name=
| info5=
| info6name=
| info6=