Difference between revisions of "User:R0o0di/Sandbox/New InfoBox Crime"

From Detective Conan Wiki
Line 1: Line 1:
 
 
<div style="background: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 5px;">
 
<div style="background: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 5px;">
 
  <div style="background: #DF5829; color: white; text-align: center; font-size: 1rem; font-weight: bold; padding: 5px;">{{#if:{{{crime|}}}|{{{crime}}}|Murder}}   
 
  <div style="background: #DF5829; color: white; text-align: center; font-size: 1rem; font-weight: bold; padding: 5px;">{{#if:{{{crime|}}}|{{{crime}}}|Murder}}   
Line 9: Line 8:
 
     </div>
 
     </div>
  
   <div style="padding-left: 10px; width: 100%;">
+
   <div style="padding-left: 10px; width: 100%;">{{#if:
    {{#if: {{{date|}}}|  
+
    {{{date|}}}|  
        <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>Date:</strong></span> <span>{{{date}}}</span></div> }}{{#if:
+
        <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>Date:</strong></span> <span>{{{date}}}</span></div> }}{{#if:
          {{{location|}}}   | <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>Location:</strong></span> <span>{{{location}}}</span></div> }}{{#if:
+
    {{{location|}}}|
          {{{people|}}}     | <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>People Involved:</strong></span> <span>{{{people}}}</span></div> }}{{#if:
+
        <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>Location:</strong></span> <span>{{{location}}}</span></div> }}{{#if:
          {{{victim|}}}     | <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>{{{victim-label|Victim}}}:</strong></span> <span>{{{victim}}}</span></div> }}{{#if:
+
    {{{people|}}}|
          {{{age|}}}       | <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>Age:</strong></span> <span>{{{age}}}</span></div> }}{{#if:
+
        <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>People Involved:</strong></span> <span>{{{people}}}</span></div> }}{{#if:
          {{{time|}}}       | <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>Time:</strong></span> <span>{{{time}}}</span></div> }}{{#if:
+
    {{{victim|}}}|
          {{{cause-death|}}}| <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>{{{cause-death-label|Cause of death}}}:</strong></span> <span>{{{cause-death}}}</span></div> }}{{#if:
+
        <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>{{{victim-label|Victim}}}:</strong></span> <span>{{{victim}}}</span></div> }}{{#if:
          {{{suspects|}}}   | <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>{{{suspects-label|Suspects}}}:</strong></span> <span>{{{suspects}}}</span></div> }}{{#if:
+
    {{{age|}}}|
          {{{description|}}}| <div style= "padding: 3px 0; border-bottom: 1px dotted;">{{{description}}}</div> }}{{#if:
+
        <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>Age:</strong></span> <span>{{{age}}}</span></div> }}{{#if:
          {{{footnotes|}}} | <div>{{{footnotes}}}</div> }}
+
    {{{time|}}}|
 +
        <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>Time:</strong></span> <span>{{{time}}}</span></div> }}{{#if:
 +
    {{{cause-death|}}}|
 +
        <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>{{{cause-death-label|Cause of death}}}:</strong></span> <span>{{{cause-death}}}</span></div> }}{{#if:
 +
    {{{suspects|}}}|
 +
        <div style= "padding: 3px 0; border-bottom: 1px dotted;"><span style="width: 75px; display: inline-block;"><strong>{{{suspects-label|Suspects}}}:</strong></span> <span>{{{suspects}}}</span></div> }}{{#if:
 +
    {{{description|}}}|
 +
        <div style= "padding: 3px 0; border-bottom: 1px dotted;">{{{description}}}</div> }}{{#if:
 +
    {{{footnotes|}}}|
 +
        <div>{{{footnotes}}}</div> }}
 
   </div>
 
   </div>
 
   </div>
 
   </div>

Revision as of 14:08, 28 March 2025

Murder

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)
}}