Template:Infobox-poker-player: Difference between revisions

No edit summary
No edit summary
Line 43: Line 43:
{{#if:{{{birth-date|}}}|
{{#if:{{{birth-date|}}}|
   {{#if:{{{died|}}}|
   {{#if:{{{died|}}}|
    <!-- Помер: показуємо тільки дату народження -->
     <tr>
     <tr>
       <th>Age</th>
       <th>Age</th>
Line 49: Line 48:
     </tr>
     </tr>
   |
   |
    <!-- Живий: показуємо дату + вік -->
     <tr>
     <tr>
       <th>Age</th>
       <th>Age</th>
       <td>
       <td>{{#time:F j, Y|{{{birth-date}}}}} (age {{#expr: {{#time:Y}} - {{#time:Y|{{{birth-date}}}}}
        {{#time:F j, Y|{{{birth-date}}}}}
           - {{#ifexpr: {{#time:md}} < {{#time:md|{{{birth-date}}}}} | 1 | 0 }}}})
        (age {{#expr:
</td>
          {{#time:Y}} - {{#time:Y|{{{birth-date}}}}}
           - {{#ifexpr:
              {{#time:md}} < {{#time:md|{{{birth-date}}}}}
            | 1 | 0 }}
        }})
      </td>
     </tr>
     </tr>
   }}
   }}