Difference between revisions of "Template:InfoBox Crime"

From Detective Conan Wiki
m (If there is no image, the crime details should still be right-aligned)
Line 2: Line 2:
 
<div style="background: #f8f9fa; border: 1px solid #aaa; max-width: 650px; padding: 0.3em; margin: 0.5em 0; line-height: 1.3em;">
 
<div style="background: #f8f9fa; border: 1px solid #aaa; max-width: 650px; padding: 0.3em; margin: 0.5em 0; 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="background: #DF5829; color: white; text-align: center; font-weight: bold; padding: 2px;">{{#if:{{{crime|}}}|{{{crime}}}|Murder}} </div>
  <div style="overflow: auto; padding-top: 4px; font-size: 90%; display: flex;">
+
  <div style="overflow: auto; padding-top: 4px; font-size: 90%; display: flex; justify-content: space-between;">
 
   {{#if: {{{image|}}} |
 
   {{#if: {{{image|}}} |
 
     <div> [[Image:{{{image}}}|290px]]}} </div>
 
     <div> [[Image:{{{image}}}|290px]]}} </div>

Revision as of 21:25, 13 April 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)
}}