Difference between revisions of "Template:InfoBox Crime"

From Detective Conan Wiki
m (Made "Location" field permanent and leaving crime type to the frame's header only (i.e. all that to optimize space))
(Modifying the template for an eventually "cleaner" presentation (less color noise). Just a test for now though.)
Line 8: Line 8:
 
{| class="infobox crime" width="100%" style="border: 0px; margin: 0px; padding: 0px 0px 0px 2px; font-size: 100%; border-collapse: separate; border-spacing: 1px" cellpadding="0" cellspacing="0"
 
{| class="infobox crime" width="100%" style="border: 0px; margin: 0px; padding: 0px 0px 0px 2px; font-size: 100%; border-collapse: separate; border-spacing: 1px" cellpadding="0" cellspacing="0"
 
|-
 
|-
! width="102"|Location:
+
! width="102" style="border-bottom: 1px dotted #cccccc;"||Location:
| {{#if:{{{location|}}}|{{{location}}}|N/A}}
+
| style="border-bottom: 1px dotted #cccccc;"|{{#if:{{{location|}}}|{{{location}}}|N/A}}
 
|-
 
|-
 
{{#if: {{{victim|}}} |
 
{{#if: {{{victim|}}} |
! style="border-top: 1px dotted #cccccc;" {{!}} Victim:
+
! style="border-bottom: 1px dotted #cccccc;" {{!}} Victim:
{{!}} style="border-top: 1px dotted #cccccc;" {{!}} {{{victim}}} {{!}}{{!}} style="width: 1px"{{!}} 
+
{{!}} style="border-bottom: 1px dotted #cccccc;" {{!}} {{{victim}}} {{!}}{{!}} style="width: 1px"{{!}} 
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{age|}}} |
 
{{#if: {{{age|}}} |
! style="border-top: 1px dotted #cccccc;" {{!}} Age:
+
! style="border-bottom: 1px dotted #cccccc;" {{!}} Age:
{{!}} style="border-top: 1px dotted #cccccc;" {{!}} {{{age}}} {{!}}{{!}} style="width: 1px"{{!}} 
+
{{!}} style="border-bottom: 1px dotted #cccccc;" {{!}} {{{age}}} {{!}}{{!}} style="width: 1px"{{!}} 
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{time|}}} |
 
{{#if: {{{time|}}} |
! style="border-top: 1px dotted #cccccc;" {{!}} Time:
+
! style="border-bottom: 1px dotted #cccccc;" {{!}} Time:
{{!}} style="border-top: 1px dotted #cccccc;" {{!}} {{{time}}} {{!}}{{!}} style="width: 1px"{{!}} 
+
{{!}} style="border-bottom: 1px dotted #cccccc;" {{!}} {{{time}}} {{!}}{{!}} style="width: 1px"{{!}} 
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{cause-death|}}} |
 
{{#if: {{{cause-death|}}} |
! style="border-top: 1px dotted #cccccc;" {{!}}  Cause of death:
+
! style="border-bottom: 1px dotted #cccccc;" {{!}}  Cause of death:
{{!}} style="border-top: 1px dotted #cccccc;" {{!}} {{{cause-death}}} {{!}}{{!}} style="width: 1px"{{!}} 
+
{{!}} style="border-bottom: 1px dotted #cccccc;" {{!}} {{{cause-death}}} {{!}}{{!}} style="width: 1px"{{!}} 
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{suspects|}}} |
 
{{#if: {{{suspects|}}} |
! style="border-top: 1px dotted #cccccc;" {{!}}  Suspects:
+
! style="border-bottom: 1px dotted #cccccc;" {{!}}  Suspects:
{{!}} style="border-top: 1px dotted #cccccc;" {{!}} {{{suspects}}} {{!}}{{!}} style="width: 1px"{{!}} 
+
{{!}} style="border-bottom: 1px dotted #cccccc;" {{!}} {{{suspects}}} {{!}}{{!}} style="width: 1px"{{!}} 
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{description|}}} |
 
{{#if: {{{description|}}} |
{{!}} colspan="3" style="color: #ffffff; text-align:center; vertical-align:middle; font-size: small; background-color: #DF5829; padding: 1px;" {{!}}  '''Description'''
+
{{!}} colspan="2" style="padding: 3px;" {{!}} {{{description}}}
{{!}}-
 
{{!}} colspan="3" style="padding: 3px;" {{!}} {{{description}}}
 
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{footnotes|}}} |
 
{{#if: {{{footnotes|}}} |
{{!}} colspan="3" style="font-size: smaller; border-top: 1px dotted #aaaaaa" {{!}} {{{footnotes|}}}  }}
+
{{!}} colspan="2" style="font-size: smaller; border-top: 1px dotted #aaaaaa" {{!}} {{{footnotes|}}}  }}
 
|}
 
|}
 
|}<noinclude>
 
|}<noinclude>

Revision as of 05:30, 18 November 2009

Murder
width="102" style="border-bottom: 1px dotted #cccccc;" Location: N/A

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            = 
| victim              =    (Optional)
| age                 =    (Optional)
| time                =    (Optional)
| cause-death         =    (Optional)
| suspects            =    (Optional)
| description         =    (Optional)
| footnotes           =    (Optional: will not show the row if omitted)
}}