Template:Player: Difference between revisions
>Kypho No edit summary |
Remove player ID from visible infobox |
||
| (16 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
|HeightFeet=Integer | |HeightFeet=Integer | ||
|HeightInches=Integer | |HeightInches=Integer | ||
| | |ActiveFromYear=Integer | ||
| | |ActiveToYear=Integer | ||
|Photo=File | |Photo=File | ||
|Social=List (,) of URL | |Social=List (,) of URL | ||
}} | }} | ||
</noinclude><includeonly> | <templatedata>{ | ||
{{#default_form:Player}} < | "description": "Player infobox (stores to Cargo).", | ||
<templatestyles src="Template: | "params": { | ||
"Name": {"label":"Name","type":"string","required":true,"suggested":true}, | |||
<!-- | "Nickname": {"label":"Nickname","type":"string"}, | ||
{{#cargo_store:_table=Players | "Hometown": {"label":"Hometown","type":"string"}, | ||
"HeightFeet": {"label":"Height (feet)","type":"number"}, | |||
"HeightInches": {"label":"Height (inches)","type":"number"}, | |||
"ActiveFromYear": {"label":"Active from (year)","type":"number"}, | |||
"ActiveToYear": {"label":"Active to (year)","type":"number"}, | |||
"Photo": {"label":"Photo file","type":"wiki-file-name"}, | |||
"Social": {"label":"Social (comma-separated URLs)","type":"string","description":"Comma-separated list of profile URLs"} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude><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 22: | Line 32: | ||
|HeightFeet={{{HeightFeet|}}} | |HeightFeet={{{HeightFeet|}}} | ||
|HeightInches={{{HeightInches|}}} | |HeightInches={{{HeightInches|}}} | ||
| | |ActiveFromYear={{{ActiveFromYear|}}} | ||
| | |ActiveToYear={{{ActiveToYear|}}} | ||
|Photo={{{Photo|}}} | |Photo={{{Photo|}}} | ||
|Team={{{Team|}}} | |||
|PlayerID={{{PlayerID|}}} | |||
|Social={{{Social|}}} | |Social={{{Social|}}} | ||
}} | }}<!-- --><table class="infobox infobox-player"> | ||
<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|250px]]</td></tr>}} | ||
< | {{#if:{{{Hometown|}}}|<tr><th>Hometown</th><td>{{{Hometown}}}</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:{{{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>}} | |||
</table>[[Category:Players]]</includeonly> | |||
</div> | |||
[[Category:Players]] | |||
</includeonly> | |||