Jump to content

Template:Player: Difference between revisions

From Spike Wiki
>Kypho
No edit summary
>Kypho
No edit summary
Line 26: Line 26:
}
}
</templatedata>
</templatedata>
</noinclude><includeonly>
</noinclude>
{{#default_form:Player}}
<includeonly>
{{#default_form:Player}} <!-- remove this line if you don't want PF form auto -->
<templatestyles src="Template:Infobox/styles.css" />
<templatestyles src="Template:Infobox/styles.css" />
<templatestyles src="Template:Player/styles.css" />


{{#cargo_store:_table=Players
{{#cargo_store:_table=Players
Line 39: Line 41:
|ActiveToYear={{{ActiveToYear|}}}
|ActiveToYear={{{ActiveToYear|}}}
|Photo={{{Photo|}}}
|Photo={{{Photo|}}}
|Team={{{Team|}}}
|PlayerID={{{PlayerID|}}}
|Social={{{Social|}}}
|Social={{{Social|}}}
}}
}}


<div class="infobox">
<table class="infobox">
   <div class="ib-title">{{{Name|{{PAGENAME}}}}}{{#if:{{{Nickname|}}}| · “{{{Nickname}}}”}}</div>
   <tr><th class="infobox-title" colspan="2">
   <div class="ib-img">{{#if:{{{Photo|}}}|[[File:{{{Photo}}}|340px]]}}</div>
    {{{Name|{{PAGENAME}}}}}{{#if:{{{Nickname|}}}| · “{{{Nickname}}}”}}
   {{#if:{{{Hometown|}}}|<div class="ib-row"><span class="ib-label">Hometown</span><span>{{{Hometown}}}</span></div>}}
  </th></tr>
   {{#if:{{{HeightFeet|}}}{{{HeightInches|}}}|<div class="ib-row"><span class="ib-label">Height</span><span>{{{HeightFeet}}}′{{{HeightInches|0}}}″</span></div>}}
 
   {{#if:{{{ActiveFromYear|}}}|<div class="ib-row"><span class="ib-label">Active</span>
   {{#if:{{{Photo|}}}|
    <span>{{{ActiveFromYear}}}{{#if:{{{ActiveToYear|}}}|–{{{ActiveToYear}}}|–present}}</span></div>}}
    <tr><td class="infobox-image" colspan="2">[[File:{{{Photo}}}|frameless|upright=1.15]]</td></tr>
</div>
  }}
 
   {{#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>{{{Social}}}</td></tr>
  }}
 
  {{#if:{{{PlayerID|}}}|<tr><th>ID</th><td>{{{PlayerID}}}</td></tr>}}
</table>


[[Category:Players]]
[[Category:Players]]
</includeonly>
</includeonly>

Revision as of 00:11, 12 November 2025

This template defines the table "Players". View table.

Player infobox (stores to Cargo).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
NameName

no description

Stringrequired
NicknameNickname

no description

Stringoptional
HometownHometown

no description

Stringoptional
Height (feet)HeightFeet

no description

Numberoptional
Height (inches)HeightInches

no description

Numberoptional
Active from (year)ActiveFromYear

no description

Numberoptional
Active to (year)ActiveToYear

no description

Numberoptional
Photo filePhoto

no description

Fileoptional
Social (comma-separated URLs)Social

Comma-separated list of profile URLs

Stringoptional