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

From Detective Conan Wiki
Line 10: Line 10:
 
   </div>
 
   </div>
  
<div class="crime-details" style="flex: 2; padding-left: 10px;">
+
  <div class="crime-details" 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> }}
  {{#if: {{{people|}}} | <div><strong>People Involved:</strong> {{{people}}}</div> }}
+
  {{#if: {{{people|}}} | <div><strong>People Involved:</strong> {{{people}}}</div> }}
  {{#if: {{{victim|}}} | <div><strong>{{{victim-label|Victim}}}:</strong> {{{victim}}}</div> }}
+
  {{#if: {{{victim|}}} | <div><strong>{{{victim-label|Victim}}}:</strong> {{{victim}}}</div> }}
  {{#if: {{{age|}}} | <div><strong>Age:</strong> {{{age}}}</div> }}
+
  {{#if: {{{age|}}} | <div><strong>Age:</strong> {{{age}}}</div> }}
  {{#if: {{{time|}}} | <div><strong>Time:</strong> {{{time}}}</div> }}
+
  {{#if: {{{time|}}} | <div><strong>Time:</strong> {{{time}}}</div> }}
  {{#if: {{{cause-death|}}} | <div><strong>{{{cause-death-label|Cause of death}}}:</strong> {{{cause-death}}}</div> }}
+
  {{#if: {{{cause-death|}}} | <div><strong>{{{cause-death-label|Cause of death}}}:</strong> {{{cause-death}}}</div> }}
  {{#if: {{{suspects|}}} | <div><strong>{{{suspects-label|Suspects}}}:</strong> {{{suspects}}}</div> }}
+
  {{#if: {{{suspects|}}} | <div><strong>{{{suspects-label|Suspects}}}:</strong> {{{suspects}}}</div> }}
</div>
+
  {{#if: {{{description|}}} | <div>{{{description}}}</div> }}
 +
  {{#if: {{{footnotes|}}} | <div>{{{footnotes}}}</div> }}
 +
  </div>
 
  </div>
 
  </div>
 
{{#if: {{{description|}}} |
 
  <div class="crime-description" style="margin-top: 10px; padding: 5px; background: #eef2f7; border-radius: 3px;">
 
  {{{description}}}
 
  </div>
 
}}
 
 
{{#if: {{{footnotes|}}} |
 
  <div class="crime-footnotes" style="margin-top: 10px; font-size: smaller; border-top: 1px solid #cccccc; padding-top: 5px;">
 
  {{{footnotes}}}
 
  </div>
 
}}
 
 
</div>
 
</div>
  

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