Difference between revisions of "Ginfo"
From Sega Retro
(Created page with "<includeonly>{{clearvar|fileerror}}<!--{{#ifeq:{{#mediawidth:{{{1|}}}}}|0|{{#vardefine:fileerror|1}}}}{{#ifeq:{{#mediawidth:{{{1|}}}}}||{{#vardefine:fileerror|1}}}}{{#iferror:...") |
(bringing it into line with prettytable) |
||
(2 intermediate revisions 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>{{#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
Ghost
The co-pilot of the Hole Hawg, who judges the player's performance.
Catfish
The Hole Hawg's robotic navigator, who gives the player directions.
Falco
A fellow "sewer jockey" who is looking for a secret path to Solar City.
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=