Difference between revisions of "Template:GameInfobox"
Jump to navigation
Jump to search
(Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} <table>{{#if:{...") |
ShunFishman (talk | contribs) |
||
(57 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="infobox"> | + | <div class="infobox" |
− | <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | + | style="float:right; |
− | <div class="infobox-image">[[File:{{{image}}}| | + | border:solid {{{bordercolor|black}}} 2px; |
− | <table>{{#if:{{{ | + | padding: 9px; |
− | <th> | + | margin: 10px; |
− | <td>{{{ | + | border-radius: 3px; |
− | </tr>}}{{#if:{{{ | + | width: {{{width|300px}}}; |
− | <th> | + | background: {{{background|#f8f8f8}}}; |
− | <td>{{{ | + | text-align: center; |
− | </tr>}}{{#if:{{{ | + | "> |
− | <th> | + | |
− | <td>{{{ | + | <div class="infobox-title" |
− | </tr>}}{{#if:{{{ | + | style="text-align:center; |
− | <th> | + | padding: 5px; |
− | <td>{{{ | + | margin: 8px; |
− | </tr>}}{{#if:{{{ | + | margin-left: -9px; |
− | <th> | + | margin-top: -9px; |
− | <td>{{{ | + | margin-right: -9px; |
+ | color: white; | ||
+ | background-color: {{{bordercolor|black}}}; | ||
+ | "> | ||
+ | '''<big><big>{{{title|{{PAGENAME}}}}}</big></big>'''</div>{{#if:{{{image|}}}| | ||
+ | |||
+ | <div class="infobox-image" | ||
+ | style="display: inline-block; | ||
+ | height: auto; | ||
+ | width: auto; | ||
+ | text-align:center; | ||
+ | margin:auto; | ||
+ | border: solid {{{innerbordercolor|}}} 2px; | ||
+ | "> | ||
+ | [[File:{{{image}}}|{{{imagescalepx|200px}}}]]</div>}} | ||
+ | <small>{{{imagecaption|Game title screen}}}</small> | ||
+ | <table style="text-align: left;">{{#if:{{{developer|}}}|<tr> | ||
+ | <th style="text-align: left;">Developer: </th> | ||
+ | <td style="text-align: left;">{{{developer}}}</td> | ||
+ | </tr>}}{{#if:{{{publisher|}}}|<tr> | ||
+ | <th style="text-align: left;">Publisher: </th> | ||
+ | <td style="text-align: left;">{{{publisher}}}</td> | ||
+ | </tr>}}{{#if:{{{officialsite|}}}|<tr> | ||
+ | <th style="text-align: left;">Official site:</th> | ||
+ | <td style="text-align: left;">{{{officialsite}}}</td> | ||
+ | </tr>}}{{#if:{{{director|}}}|<tr> | ||
+ | <th style="text-align: left;">Director: </th> | ||
+ | <td style="text-align: left;">{{{director}}}</td> | ||
+ | </tr>}}{{#if:{{{producer|}}}|<tr> | ||
+ | <th style="text-align: left;">Producer: </th> | ||
+ | <td style="text-align: left;">{{{producer}}}</td> | ||
+ | </tr>}}{{#if:{{{planning|}}}|<tr> | ||
+ | <th style="text-align: left;">Planning: </th> | ||
+ | <td style="text-align: left;">{{{planning}}}</td> | ||
+ | </tr>}}{{#if:{{{music|}}}|<tr> | ||
+ | <th style="text-align: left;">Music: </th> | ||
+ | <td style="text-align: left;">{{{music}}}</td> | ||
+ | </tr>}}{{#if:{{{program|}}}|<tr> | ||
+ | <th style="text-align: left;">Program: </th> | ||
+ | <td style="text-align: left;">{{{program}}}</td> | ||
+ | </tr>}}{{#if:{{{art|}}}|<tr> | ||
+ | <th style="text-align: left;">Art: </th> | ||
+ | <td style="text-align: left;">{{{art}}}</td> | ||
+ | </tr>}}{{#if:{{{designer|}}}|<tr> | ||
+ | <th style="text-align: left;">Designer: </th> | ||
+ | <td style="text-align: left;">{{{designer}}}</td> | ||
+ | </tr>}}{{#if:{{{releasedate|}}}|<tr> | ||
+ | <th style="text-align: left;">Release date: </th> | ||
+ | <td style="text-align: left;">{{{releasedate}}}</td> | ||
+ | </tr>}}{{#if:{{{previousgame|}}}|<tr> | ||
+ | <th style="text-align: left;">Previous game:</th> | ||
+ | <td style="text-align: left;">{{{previousgame}}}</td> | ||
+ | </tr>}}{{#if:{{{nextgame|}}}|<tr> | ||
+ | <th style="text-align: left;">Next game:</th> | ||
+ | <td style="text-align: left;">{{{nextgame}}}</td> | ||
+ | </tr>}}{{#if:{{{rating|}}}|<tr> | ||
+ | <th style="text-align: left;">Age Rating:</th> | ||
+ | <td style="text-align: left;">{{{rating}}}</td> | ||
</tr>}}</table> | </tr>}}</table> | ||
− | </div> | + | </div><noinclude> |
+ | == Optional parameters for the infobox == | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | |'''{{{bordercolor}}}''' ||The color of the infobox border and header. Try to choose something related to the game's theme. | ||
+ | |- | ||
+ | | '''{{{background}}}''' || The main color/background color of the infobox. Try to choose something ''light'' and related to the game's theme that won't make the content hard to read. | ||
+ | |- | ||
+ | | '''{{{innerbordercolor}}}''' || Color for a very faint border around the game's image. Try to choose a highlight color related to the game or just use the {{{background}}} color.<br />Wikimedia software uses standard #RRGGBB (R = red, G = green, B = blue) web color values. FF = highest, 00 = lowest. It's pretty hard to read anything on a background darker than say d5 in all fields. | ||
+ | |- | ||
+ | | '''{{{width}}}''' || The width of the infobox in pixels. Probably just leave it as is. | ||
+ | |- | ||
+ | | '''{{{title}}}''' || Probably just leave it as is as it will automatically be filled in with the page name. | ||
+ | |- | ||
+ | | '''{{{image}}}''' || An image that will be placed in the center of the box. | ||
+ | |- | ||
+ | | '''{{{imagecaption}}}''' || A caption for the central image | ||
+ | |- | ||
+ | | '''{{{officialsite}}}''' || A link to the game's official website if any. <br />For instance, <code><nowiki>|officialsite = [https://www.8ing.co.jp/museum/prd/sipu/ 8ing Museum]</nowiki></code> | ||
+ | |- | ||
+ | | '''{{{releasedate}}}''' || For release date info including different regions if available. | ||
+ | |- | ||
+ | | '''{{{previousgame}}}''' || An internal wikilink to the previous game in the series or by this dev. | ||
+ | |- | ||
+ | | '''{{{nextgame}}}''' || An internal wikilink to the next game in the series or by this dev. | ||
+ | |- | ||
+ | | '''{{{developer}}}''' || Game credits if available. | ||
+ | |- | ||
+ | | '''{{{publisher}}}''' || Game credits if available. | ||
+ | |- | ||
+ | | '''{{{producer}}}''' || Game credits if available. | ||
+ | |- | ||
+ | | '''{{{planning}}}''' || Game credits if available. | ||
+ | |- | ||
+ | | '''{{{music}}}''' || Game credits if available. | ||
+ | |- | ||
+ | | '''{{{program}}}''' || Game credits if available. | ||
+ | |- | ||
+ | | '''{{{art}}}''' || Game credits if available. | ||
+ | |- | ||
+ | | '''{{{designer}}}''' || Game credits if available. | ||
+ | |- | ||
+ | | '''{{{rating}}}''' || Age Rating(s) | ||
+ | |} | ||
+ | |||
+ | == code == | ||
+ | <pre> | ||
+ | {{GameInfobox | ||
+ | |bordercolor = | ||
+ | |background = | ||
+ | |innerbordercolor = | ||
+ | |width = | ||
+ | |title = | ||
+ | |image = | ||
+ | |imagecaption = | ||
+ | |officialsite = | ||
+ | |releasedate = | ||
+ | |previousgame = | ||
+ | |nextgame = | ||
+ | |developer = | ||
+ | |publisher = | ||
+ | |producer = | ||
+ | |planning = | ||
+ | |music = | ||
+ | |program = | ||
+ | |art = | ||
+ | |designer = | ||
+ | |rating = | ||
+ | }} | ||
+ | </pre> | ||
+ | </noinclude> |
Latest revision as of 16:37, 20 December 2023
GameInfobox
Game title screen
Optional parameters for the infobox
{{{bordercolor}}} | The color of the infobox border and header. Try to choose something related to the game's theme. |
{{{background}}} | The main color/background color of the infobox. Try to choose something light and related to the game's theme that won't make the content hard to read. |
{{{innerbordercolor}}} | Color for a very faint border around the game's image. Try to choose a highlight color related to the game or just use the {{{background}}} color. Wikimedia software uses standard #RRGGBB (R = red, G = green, B = blue) web color values. FF = highest, 00 = lowest. It's pretty hard to read anything on a background darker than say d5 in all fields. |
{{{width}}} | The width of the infobox in pixels. Probably just leave it as is. |
{{{title}}} | Probably just leave it as is as it will automatically be filled in with the page name. |
{{{image}}} | An image that will be placed in the center of the box. |
{{{imagecaption}}} | A caption for the central image |
{{{officialsite}}} | A link to the game's official website if any. For instance, |officialsite = [https://www.8ing.co.jp/museum/prd/sipu/ 8ing Museum]
|
{{{releasedate}}} | For release date info including different regions if available. |
{{{previousgame}}} | An internal wikilink to the previous game in the series or by this dev. |
{{{nextgame}}} | An internal wikilink to the next game in the series or by this dev. |
{{{developer}}} | Game credits if available. |
{{{publisher}}} | Game credits if available. |
{{{producer}}} | Game credits if available. |
{{{planning}}} | Game credits if available. |
{{{music}}} | Game credits if available. |
{{{program}}} | Game credits if available. |
{{{art}}} | Game credits if available. |
{{{designer}}} | Game credits if available. |
{{{rating}}} | Age Rating(s) |
code
{{GameInfobox |bordercolor = |background = |innerbordercolor = |width = |title = |image = |imagecaption = |officialsite = |releasedate = |previousgame = |nextgame = |developer = |publisher = |producer = |planning = |music = |program = |art = |designer = |rating = }}