Difference between revisions of "Template:PlayerInfoTableRow"
Jump to navigation
Jump to search
37thchamber (talk | contribs) m (forgot butchers in team list. oops) |
37thchamber (talk | contribs) m (auto remove the "S" from draft class; allows it to be linked directly to the player's NSFL draft using Template:Nsfly) |
||
Line 19: | Line 19: | ||
| #default = bgcolor="#ffffff"{{!}} | | #default = bgcolor="#ffffff"{{!}} | ||
}} | }} | ||
− | | {{#if:{{{draftClass|}}}|{{{draftClass}}}}} | + | | {{#if:{{{draftClass|}}}|{{nsfly|{{#replace:{{lc:{{{draftClass}}}}}|s|}}|d}}}} |
| {{PlayerPage|player_name={{{playerName}}}|player_id={{{playerId}}}}} | | {{PlayerPage|player_name={{{playerName}}}|player_id={{{playerId}}}}} | ||
| {{#if:{{{position|}}}|{{Template:AmFootball positions|{{{position}}}}}{{#if:{{{position2|}}}|/{{Template:AmFootball positions|{{{position2}}}}}}}| }} | | {{#if:{{{position|}}}|{{Template:AmFootball positions|{{{position}}}}}{{#if:{{{position2|}}}|/{{Template:AmFootball positions|{{{position2}}}}}}}| }} |
Latest revision as of 11:54, 14 November 2019
|-
| bgcolor="#ffffff"|
|
| [[{{{playerName}}}]]
|
|
|
Created especially for parsing external data
Example
{{PlayerInfoTableHeader}} {{PlayerInfoTableRow|draftClass=S11|playerName=Lennox Garnett|position=S|teamName=PHILADELPHIA_LIBERTY|currentTPE=969}} {{PlayerInfoTableFooter}}
Will display:
Draft Class | Player Name | Position | Team | TPE | |
---|---|---|---|---|---|
2026 | Lennox Garnett | S | Philadelphia Liberty | 969 |