Template:Infobox-poker-player: Difference between revisions

No edit summary
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 11: Line 11:
<tr>
<tr>
<td colspan="2" style="text-align:center;">
<td colspan="2" style="text-align:center;">
[[File:{{{image|}}}|250px|{{{name|}}} image]]
[[File:{{{image|}}}|250px|link=|{{{name|}}} image]]
</td>
</td>
</tr>
</tr>
Line 22: Line 22:
</tr>
</tr>
}}
}}


<tr>
<tr>
Line 34: Line 33:
</tr>
</tr>
}}
}}


{{#if:{{{residence|}}}|
{{#if:{{{residence|}}}|
Line 43: Line 41:
}}
}}


{{#if:{{{age|}}}|
{{#if:{{{birthplace|}}}|
<tr>
<tr>
<th>Age</th>
<th>Birthplace</th>
<td>{{{age}}}</td>
<td>{{{birthplace}}}</td>
</tr>
</tr>
}}
}}


{{#if:{{{birth-date|}}}|
{{#if:{{{birth-date|}}}|
<tr>
  {{#if:{{{died|}}}|
  <th>Age</th>
    <tr>
  <td>
      <th>Born</th>
    {{#vardefine:birth|{{{birth-date}}}}}
      <td>{{#time:F j, Y|{{{birth-date}}}}}</td>
     {{#vardefine:age|
     </tr>
      {{#expr:
  |
        {{#time:Y}} - {{#time:Y|{{#var:birth}}}}
    <tr>
        - {{#ifexpr:
      <th>Age</th>
            {{#time:md}} < {{#time:md|{{#var:birth}}}}
      <td>{{#time:F j, Y|{{{birth-date}}}}} (age {{#expr: {{#time:Y}} - {{#time:Y|{{{birth-date}}}}}
            | 1 | 0
          - {{#ifexpr: {{#time:md}} < {{#time:md|{{{birth-date}}}}} | 1 | 0 }}}})
          }}
</td>
      }}
    </tr>
    }}
  }}
    {{#time:F j, Y|{{#var:birth}}}} (age {{#var:age}})
  </td>
</tr>
}}
 
{{#if:{{{birthplace|}}}|
<tr>
<th>Birthplace</th>
<td>{{{birthplace}}}</td>
</tr>
}}
}}


Line 79: Line 67:
<tr>
<tr>
<th>Died</th>
<th>Died</th>
<td>{{{died}}}</td>
<td>{{#time:F j, Y|{{{died}}}}} (age {{#expr: {{#time:Y|{{{died}}}}} - {{#time:Y|{{{birth-date}}}}} - {{#ifexpr: {{#time:md|{{{died}}}}} < {{#time:md|{{{birth-date}}}}} | 1 | 0  }}}})
</td>
</tr>
</tr>
}}
}}
Line 89: Line 78:
<tr>
<tr>
<th>Profession</th>
<th>Profession</th>
<td>Poker player</td>
<td>[[poker/players|Poker player]]</td>
</tr>
</tr>


Line 120: Line 109:
}}
}}


{{#if: {{{wsop-wins|}}} {{{wsop-cashes|}}} {{{wsop-bracelets|}}} {{{wsop-tables|}}} {{{wsop-highest|}}} |
<tr>
<tr>
<th colspan="2" style="text-align:center; font-size:125%;">WSOP</th>
<th colspan="2" style="text-align:center; font-size:125%;">WSOP</th>
Line 157: Line 147:
<td>{{{wsop-highest}}}</td>
<td>{{{wsop-highest}}}</td>
</tr>
</tr>
}}
}}
}}


{{#if: {{{wpt-titles|}}} {{{wpt-tables|}}} {{{wpt-money-finishes|}}} |
<tr>
<tr>
<th colspan="2" style="text-align:center; font-size:125%;">WPT</th>
<th colspan="2" style="text-align:center; font-size:125%;">WPT</th>
Line 182: Line 174:
<td>{{{wpt-money-finishes}}}</td>
<td>{{{wpt-money-finishes}}}</td>
</tr>
</tr>
}}
}}
}}


{{#if: {{{ept-titles|}}} {{{ept-tables|}}} {{{ept-money-finishes|}}} |
<tr>
<tr>
<th colspan="2" style="text-align:center; font-size:125%;">EPT</th>
<th colspan="2" style="text-align:center; font-size:125%;">EPT</th>
Line 208: Line 202:
</tr>
</tr>
}}
}}
}}
<tr>
<td colspan="2" style="border-top: 1px solid #aaa; padding: 0;"></td>
</tr>


<tr>
<tr>