Template:Player: Difference between revisions
Appearance
Refresh generated page templates and styles |
Tighten page templates and fix card render bugs |
||
| Line 26: | Line 26: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude><includeonly>{{#default_form:Player}}<templatestyles src="Template:Infobox/styles.css" /><templatestyles src="Template:Player/styles.css" />{{#cargo_store:_table=Players | ||
<includeonly> | |||
{{#default_form:Player}} | |||
<templatestyles src="Template:Infobox/styles.css" /> | |||
<templatestyles src="Template:Player/styles.css" /> | |||
{{#cargo_store:_table=Players | |||
|Name={{{Name|{{PAGENAME}}}}} | |Name={{{Name|{{PAGENAME}}}}} | ||
|Nickname={{{Nickname|}}} | |Nickname={{{Nickname|}}} | ||
| Line 44: | Line 38: | ||
|PlayerID={{{PlayerID|}}} | |PlayerID={{{PlayerID|}}} | ||
|Social={{{Social|}}} | |Social={{{Social|}}} | ||
}} | }}<table class="infobox infobox-player"> | ||
<table class="infobox infobox-player"> | |||
<tr><th class="infobox-title" colspan="2">{{{Name|{{PAGENAME}}}}}{{#if:{{{Nickname|}}}| · "{{{Nickname}}}"}}</th></tr> | <tr><th class="infobox-title" colspan="2">{{{Name|{{PAGENAME}}}}}{{#if:{{{Nickname|}}}| · "{{{Nickname}}}"}}</th></tr> | ||
{{#if:{{{Photo|}}}|<tr><td class="infobox-image" colspan="2">[[File:{{{Photo}}}|frameless|upright=1.15]]</td></tr>}} | |||
{{#if:{{{Photo|}}}| | |||
{{#if:{{{Hometown|}}}|<tr><th>Hometown</th><td>{{{Hometown}}}</td></tr>}} | {{#if:{{{Hometown|}}}|<tr><th>Hometown</th><td>{{{Hometown}}}</td></tr>}} | ||
{{#if:{{{Team|}}}|<tr><th>Team</th><td>[[{{{Team}}}]]</td></tr>}} | {{#if:{{{Team|}}}|<tr><th>Team</th><td>[[{{{Team}}}]]</td></tr>}} | ||
{{#if:{{{HeightFeet|}}}{{{HeightInches|}}}|<tr><th>Height</th><td>{{{HeightFeet}}}′{{#if:{{{HeightInches|}}}|{{{HeightInches}}}″|}}</td></tr>}} | |||
{{#if:{{{HeightFeet|}}}{{{HeightInches|}}}| | {{#if:{{{ActiveFromYear|}}}|<tr><th>Active</th><td>{{{ActiveFromYear}}}{{#if:{{{ActiveToYear|}}}|–{{{ActiveToYear}}}|–present}}</td></tr>}} | ||
{{#if:{{{Social|}}}|<tr><th>Social</th><td>{{#arraymap:{{{Social}}}|,|@@|{{#if:@@|<div class="player-social">[@@ @@]</div>}}}}</td></tr>}} | |||
{{#if:{{{ActiveFromYear|}}}| | |||
{{#if:{{{Social|}}}| | |||
<tr> | |||
</tr> | |||
}} | |||
{{#if:{{{PlayerID|}}}|<tr><th>ID</th><td>{{{PlayerID}}}</td></tr>}} | {{#if:{{{PlayerID|}}}|<tr><th>ID</th><td>{{{PlayerID}}}</td></tr>}} | ||
</table> | </table>[[Category:Players]]</includeonly> | ||
[[Category:Players]] | |||
</includeonly> | |||
Revision as of 20:39, 16 April 2026
This template defines the table "Players". View table.
Player infobox (stores to Cargo).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | Name | no description | String | required |
| Nickname | Nickname | no description | String | optional |
| Hometown | Hometown | no description | String | optional |
| Height (feet) | HeightFeet | no description | Number | optional |
| Height (inches) | HeightInches | no description | Number | optional |
| Active from (year) | ActiveFromYear | no description | Number | optional |
| Active to (year) | ActiveToYear | no description | Number | optional |
| Photo file | Photo | no description | File | optional |
| Social (comma-separated URLs) | Social | Comma-separated list of profile URLs | String | optional |