Template:Game infobox: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<templatestyles src="Template:Game infobox/styles.css" />
/*
{| class="tpl:infobox" style="background-color:rgba(217, 217, 217, 0.2);border: solid;border-color:#3a40450f; width: 22em; float: right; clear: left;"
Madness combat game infobox styles
| colspan="2" align="center" style = "font-size: 90%" |{{#if: {{{image|}}} |{{{image}}}}} <br>{{#if:{{{caption|}}}|{{{caption}}}}}
*/
|- style="vertical-align: top;"
|{{#if: {{{Artist|}}}|{{!}}'''Artist(s):'''{{!!}}{{{Artist}}}}}
|- style="vertical-align: top;"
|{{#if: {{{Programming|}}}|{{!}}'''Programming:'''{{!!}}{{{Programming}}}}}
|- style="vertical-align: top;"
{{#if: {{{Music|}}}|{{!}}'''Music:'''{{!!}}{{{Music}}}}}
|- style="vertical-align: top;"
{{#if: {{{Version|}}}|{{!}}'''Current version:'''{{!!}}{{{Version}}}}}
|- style="vertical-align: top;"
{{#if: {{{Date|}}}|{{!}}'''Release date(s):'''{{!!}}{{{Date}}}}}
|- style="vertical-align: top;"
{{#if: {{{Genre|}}}|{{!}}'''Genre(s):'''{{!!}}{{{Genre}}}}}
|- style="vertical-align: top;"
{{#if: {{{Links|}}}|{{!}}colspan="2" align="center" style="background:#FF4753" {{!}} '''External links'''
{{!}}-
{{!}} colspan="2"{{!}}
{{{Links}}}
}}
|}<noinclude><br clear="{{{1|all}}}">


==Usage==
.tpl\:infobox{
Copy and paste the following code:
border-radius: 8px;
<pre>
margin: 0 0 0 20px !important;
{{Game infobox
}
| Title =
| image =
| caption =
| Artist =
| Programming =
| Music =
| Version =
| Date =
| Genre =
| Links =
}}
</pre>


<br clear="{{{1|all}}}">
.tpl\:infobox > tbody > tr{
 
overflow: hidden;
'''Note: Leave blank if information is missing or not applicable.'''
}
 
.tpl\:infobox > tbody > tr:first-child > *{
[[Category:Templates|{{PAGENAME}}]]</noinclude>
border-radius: 4px 4px 0 0;
}
.tpl\:infobox > tbody > tr:last-child > *{
border-radius: 0 0 4px 4px;
}

Revision as of 18:55, 2 November 2022

/*

Madness combat game infobox styles
  • /

.tpl\:infobox{ border-radius: 8px; margin: 0 0 0 20px !important; }

.tpl\:infobox > tbody > tr{ overflow: hidden; } .tpl\:infobox > tbody > tr:first-child > *{ border-radius: 4px 4px 0 0; } .tpl\:infobox > tbody > tr:last-child > *{ border-radius: 0 0 4px 4px; }