Template:Player: Difference between revisions
Appearance
Created page with "<noinclude> {{#cargo_declare: _table=Players |Name=String |Country=String |Handedness=String |ActiveYears=String |PrimaryTeam=String |NotableResults=Text |BirthDate=Date }} </noinclude> <includeonly> {{#cargo_store: _table=Players |Name={{{Name|}}} |Country={{{Country|}}} |Handedness={{{Handedness|}}} |ActiveYears={{{ActiveYears|}}} |PrimaryTeam={{{PrimaryTeam|}}} |NotableResults={{{NotableResults|}}} |BirthDate={{{BirthDate|}}} }} <!-- Simple infobox d..." |
>Kypho No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#cargo_declare: | {{#cargo_declare:_table=Players | ||
|Name=String (mandatory) | |||
|Nickname=String | |||
|Hometown=String | |||
|HeightFeet=Integer | |||
|HeightInches=Integer | |||
|ActiveFrom=Date | |||
|ActiveTo=Date | |||
|Photo=File | |||
|Social=List (,) of URL | |||
}} | }} | ||
</noinclude> | </noinclude><includeonly> | ||
< | {{#default_form:Player}} <!-- show “Edit with form” tab on every Player page --> | ||
{{#cargo_store: | <templatestyles src="Template:Infobox/styles.css" /> | ||
<!-- store --> | |||
{{#cargo_store:_table=Players | |||
|Name={{{Name|{{PAGENAME}}}}} | |||
|Nickname={{{Nickname|}}} | |||
|Hometown={{{Hometown|}}} | |||
|HeightFeet={{{HeightFeet|}}} | |||
|HeightInches={{{HeightInches|}}} | |||
|ActiveFrom={{{ActiveFrom|}}} | |||
|ActiveTo={{{ActiveTo|}}} | |||
|Photo={{{Photo|}}} | |||
|Social={{{Social|}}} | |||
}} | }} | ||
<!-- | |||
<!-- render --> | |||
<div class="infobox"> | |||
| | <div class="ib-title">{{{Name|{{PAGENAME}}}}}{{#if:{{{Nickname|}}}| · “{{{Nickname}}}”}}</div> | ||
<div class="ib-img">{{#if:{{{Photo|}}}|[[File:{{{Photo}}}|340px]]}}</div> | |||
{{#if:{{{Hometown|}}}|<div class="ib-row"><span class="ib-label">Hometown</span><span>{{{Hometown}}}</span></div>}} | |||
|- | {{#if:{{{HeightFeet|}}}{{{HeightInches|}}}|<div class="ib-row"><span class="ib-label">Height</span><span>{{{HeightFeet}}}′{{{HeightInches|0}}}″</span></div>}} | ||
{{#if:{{{ActiveFrom|}}}|<div class="ib-row"><span class="ib-label">Active</span><span>{{{ActiveFrom}}}{{#if:{{{ActiveTo|}}}|–{{{ActiveTo}}}|–present}}</span></div>}} | |||
| {{{ | </div> | ||
|- | |||
|- | |||
| {{{ | |||
[[Category:Players]] | [[Category:Players]] | ||
</includeonly> | </includeonly> | ||
Revision as of 22:32, 14 September 2025
This template defines the table "Players". View table.