Difference between revisions of "User:AvidConanContributor/sandbox"

From Detective Conan Wiki
(Back to making the new InfoBox Staff)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#ifexpr: {{#time:U|{{{2}}} }} - {{#time:U|{{{1}}} }} < 0
+
{| class="infobox" style="width: 285px; text-align: left; font-size: 90%;" cellpadding="2"
  | '''Error:''' DateTime2 is earlier than DateTime1
 
  | {{#expr:
 
    <!-- Basic year subtraction -->
 
      {{#time: Y|{{{2}}} }} - {{#time: Y|{{{1}}} }} -
 
      <!-- Comparing the months -->
 
      {{#ifexpr: {{#time: n|{{{2}}} }} = {{#time: n|{{{1}}} }}
 
        | <!-- Comparing the days -->
 
          {{#ifexpr: {{#time: j|{{{2}}} }} = {{#time: j|{{{1}}} }}
 
            | <!-- Comparing the time -->
 
              {{#ifexpr: {{#time:U|{{#time: H:i:s|{{{2}}} }} }} >= {{#time:U|{{#time: H:i:s|{{{1}}} }} }}
 
                | 0
 
                | 1
 
              }} <!-- End of time comparison -->
 
            | {{#ifexpr: {{#time: j|{{{2}}} }} > {{#time: j|{{{1}}} }}
 
                | 0
 
                | 1
 
              }}
 
          }} <!-- End of day comparison -->
 
        | {{#ifexpr: {{#time: n|{{{2}}} }} > {{#time: n|{{{1}}} }}
 
            | 0
 
            | 1
 
          }}
 
      }} <!-- End of month comparison -->
 
    }}
 
}}</includeonly><noinclude> <!-- {| class="infobox" style="width: 285px; text-align: left; font-size: 90%;" cellpadding="2"
 
 
|-
 
|-
 
| colspan="2" style="color: #ffffff; text-align:center; vertical-align:middle; height:28px; font-size: medium; background-color: #2e51a2;" |  '''{{{name}}}'''  
 
| colspan="2" style="color: #ffffff; text-align:center; vertical-align:middle; height:28px; font-size: medium; background-color: #2e51a2;" |  '''{{{name}}}'''  
Line 42: Line 17:
 
{{!}} {{{date-of-death}}} {{{date-of-death-ref}}} ''<small>()</small>''
 
{{!}} {{{date-of-death}}} {{{date-of-death-ref}}} ''<small>()</small>''
 
{{!}}-  }}
 
{{!}}-  }}
|} char Appearances Test: <div style="margin: 5px 3px; border: 1px solid #c8ccd1; border-radius: .25rem; width: min-content; height: min-content; overflow: hidden;">[[Image:{{{2|{{{1}}}}}}.jpg|{{{3|100}}}px{{#if:{{{nolink|}}}||{{!}}link={{{1}}}{{!}}alt={{{1}}}|[[{{{1}}}|{{{display|{{{1}}}}}}]]}}]]<br>{{#if:{{{nolink|}}}|{{{display|{{{1}}}}}}|[[{{{1}}}|{{{display|{{{1}}}}}}]]}}</div>
+
|}
 +
}}</includeonly><noinclude> <!-- char Appearances Test: <div style="margin: 5px 3px; border: 1px solid #c8ccd1; border-radius: .25rem; width: min-content; height: min-content; overflow: hidden;">[[Image:{{{2|{{{1}}}}}}.jpg|{{{3|100}}}px{{#if:{{{nolink|}}}||{{!}}link={{{1}}}{{!}}alt={{{1}}}|[[{{{1}}}|{{{display|{{{1}}}}}}]]}}]]<br>{{#if:{{{nolink|}}}|{{{display|{{{1}}}}}}|[[{{{1}}}|{{{display|{{{1}}}}}}]]}}</div>
  
 
== My Character Box ==
 
== My Character Box ==
Line 98: Line 74:
 
}}
 
}}
  
== Differences ==  
+
== Differences == -->
 
== Age Display of [[Template:InfoBox Staff|InfoBox Staff]] ==
 
== Age Display of [[Template:InfoBox Staff|InfoBox Staff]] ==
 
{{User:AvidConanContributor/sandbox
 
{{User:AvidConanContributor/sandbox
Line 106: Line 82:
 
| date-of-death    = 1890
 
| date-of-death    = 1890
 
| date-of-death-ref =  
 
| date-of-death-ref =  
}} -->
+
}}
== YearsBetween ==
 
{{User:AvidConanContributor/sandbox | 4/19/2005 | April 19, 2025}}
 
 
</noinclude>
 
</noinclude>

Revision as of 04:20, 20 April 2025

Age Display of InfoBox Staff

[[Image:{{{1}}}.jpg|100px|link={{{1}}}|alt={{{1}}}]]
[[{{{1}}}|{{{1}}}]]