Jump to content

Template:Infobox-poker-player: Difference between revisions

From Gamblezoid
No edit summary
No edit summary
Line 49: Line 49:


{{#if:{{{birth-date|}}}|
{{#if:{{{birth-date|}}}|
<tr class="infobox-row-age">
<tr>
   <th>Age</th>
   <th>Age</th>
   <td class="infobox-value-age">
   <td>
     {{#vardefine:birth|{{{birth-date}}}}}
     {{#time:F j, Y|{{{birth-date}}}}}
     {{#vardefine:age|
     (age
      {{#expr:
    {{#expr:
        {{#time:Y}} - {{#time:Y|{{#var:birth}}}}
      {{#time:Y}} - {{#time:Y|{{{birth-date}}}}
        - {{#ifexpr:
      - {{#ifexpr:
            {{#time:md}} < {{#time:md|{{#var:birth}}}}
          {{#time:md}} < {{#time:md|{{{birth-date}}}}
            | 1 | 0
          | 1 | 0
          }}
        }}
      }}
     }})
     }}
    {{#time:F j, Y|{{#var:birth}}}} (age {{#var:age}})
   </td>
   </td>
</tr>
</tr>

Revision as of 15:24, 27 January 2026