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

From Detective Conan Wiki
Line 1: Line 1:
<div class="crime-info-box" style="width: 650px; background: #f8f9fa; border: 1px solid #c8ccd1; padding: 10px; border-radius: 5px; font-size: 90%;">
+
<div style="width: 650px; background: #f8f9fa; border: 1px solid #c8ccd1; padding: 10px; border-radius: 5px; font-size: 90%;">
  <div class="crime-title" style="background: #DF5829; color: white; text-align: center; font-weight: bold; padding: 5px; border-radius: 3px;">{{#if:{{{crime|}}}|{{{crime}}}|Murder}}   
+
  <div style="background: #DF5829; color: white; text-align: center; font-weight: bold; padding: 5px; border-radius: 3px;">{{#if:{{{crime|}}}|{{{crime}}}|Murder}}   
 
  </div>
 
  </div>
  
  <div class="crime-content" style="display: flex; margin-top: 10px;">
+
  <div style="display: flex; margin-top: 10px;">
 
   {{#if: {{{image|}}} |
 
   {{#if: {{{image|}}} |
   <div class="crime-image" style="flex: 1; text-align: center;">
+
   <div style="flex: 1; text-align: center;">
 
     [[Image:{{{image}}}|290px]]}}
 
     [[Image:{{{image}}}|290px]]}}
 
   </div>
 
   </div>
  
   <div class="crime-details" style="flex: 2; padding-left: 10px;">
+
   <div style="flex: 2; padding-left: 10px;">
 
   {{#if: {{{date|}}} | <div><strong>Date:</strong> {{{date}}}</div> }}
 
   {{#if: {{{date|}}} | <div><strong>Date:</strong> {{{date}}}</div> }}
 
   {{#if: {{{location|}}} | <div><strong>Location:</strong> {{{location}}}</div> }}
 
   {{#if: {{{location|}}} | <div><strong>Location:</strong> {{{location}}}</div> }}

Revision as of 18:33, 27 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)
}}