Template:InfoBox Crime: Difference between revisions
Appearance
Undo revision 382737 by LegoFan506 (talk) overflow: auto; does not change anyhting there Tag: Undo |
Replacing R0o0di's version with my improved version |
||
| Line 1: | Line 1: | ||
<div style="background: #f8f9fa; border: 1px solid # | <includeonly>{{clearleft}} | ||
<div style="background: #DF5829; color: white; text-align: center; font-weight: bold; padding: | <div style="background: #f8f9fa; border: 1px solid #aaa; max-width: 650px; padding: 0.3em; line-height: 1.3em;"> | ||
<div style="background: #DF5829; color: white; text-align: center; font-weight: bold; padding: 2px;">{{#if:{{{crime|}}}|{{{crime}}}|Murder}} </div> | |||
<div style="overflow: auto; font-size: 90% | <div style="overflow: auto; padding-top: 4px; font-size: 90%; display: flex;"> | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
<div> [[Image:{{{image}}}|290px]]}} | <div> [[Image:{{{image}}}|290px]]}} </div> | ||
<div style="width: 100%; padding-left: 5px;">{{#if: | |||
{{{date|}}}| | |||
<div style= "padding: 3px 0; border-bottom: 1px dotted #ccc; display: grid; grid-template-columns: 102px auto;"> <span><strong>Date:</strong></span> <span>{{{date}}}</span> </div> }}{{#if: | |||
{{{location|}}}| | |||
<div style= "padding: 3px 0; border-bottom: 1px dotted #ccc; display: grid; grid-template-columns: 102px auto;"> <span><strong>Location:</strong></span> <span>{{{location}}}</span> </div> }}{{#if: | |||
{{{people|}}}| | |||
<div style= "padding: 3px 0; border-bottom: 1px dotted #ccc; display: grid; grid-template-columns: 102px auto;"> <span><strong>People:</strong></span> <span>{{{people}}}</span> </div> }}{{#if: | |||
{{{victim|}}}| | |||
<div style= "padding: 3px 0; border-bottom: 1px dotted #ccc; display: grid; grid-template-columns: 102px auto;"> <span><strong>{{{victim-label|Victim}}}:</strong></span> <span>{{{victim}}}</span> </div> }}{{#if: | |||
{{{age|}}}| | |||
<div style= "padding: 3px 0; border-bottom: 1px dotted #ccc; display: grid; grid-template-columns: 102px auto;"> <span><strong>Age:</strong></span> <span>{{{age}}}</span> </div> }}{{#if: | |||
{{{time|}}}| | {{{time|}}}| | ||
<div style= "padding: 3px 0; border-bottom: 1px dotted #ccc; display: grid; grid-template-columns: 102px auto;"> <span><strong>Time:</strong></span> <span>{{{time}}}</span> </div> }}{{#if: | |||
{{{cause-death|}}}| | {{{cause-death|}}}| | ||
<div style= "padding: 3px 0; border-bottom: 1px dotted #ccc; display: grid; grid-template-columns: 102px auto;"> <span><strong>{{{cause-death-label|Cause of death}}}:</strong></span> <span>{{{cause-death}}}</span> </div> }}{{#if: | |||
{{{suspects|}}}| | {{{suspects|}}}| | ||
<div style= "padding: 3px 0; border-bottom: 1px dotted #ccc; display: grid; grid-template-columns: 102px auto;"> <span><strong>{{{suspects-label|Suspects}}}:</strong></span> <span>{{{suspects}}}</span> </div> }}{{#if: | |||
{{{description|}}}| | {{{description|}}}| | ||
<div style= "padding: 3px 0;">{{{description}}}</div> }}{{#if: | |||
{{{footnotes|}}}| | {{{footnotes|}}}| | ||
<div style="padding: 3px 0; font-size: 90%; border-top: 1px dotted #ccc;">{{{footnotes}}}</div> }} | |||
</div> | </div> | ||
</div> | </div> | ||
</div><noinclude> | </div></includeonly><noinclude> | ||
<p style="clear: both">The following is a list of required or optional parameters for a case's crime:</p> | <p style="clear: both">The following is a list of required or optional parameters for a case's crime:</p> | ||
<pre> | <pre> | ||
Revision as of 02:46, 7 April 2025
The following is a list of required or optional parameters for a case's crime:
{{InfoBox Crime
| crime = (Optional: defaults to "Murder" if omitted)
| image =
| location = (Optional)
| victim = (Optional)
| victim-label = (Optional)
| age = (Optional)
| time = (Optional)
| cause-death = (Optional)
| cause-death-label = (Optional)
| suspects = (Optional)
| suspects-label = (Optional)
| description = (Optional)
| footnotes = (Optional: will not show the row if omitted)
}}