Jump to content

Template:Player: Difference between revisions

From Spike Wiki
>Kypho
No edit summary
Remove player ID from visible infobox
 
(5 intermediate revisions by 2 users not shown)
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}} <!-- remove this line if you don't want PF form auto -->
<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">
 
<tr><th class="infobox-title" colspan="2">{{{Name|{{PAGENAME}}}}}{{#if:{{{Nickname|}}}| · "{{{Nickname}}}"}}</th></tr>
<table class="infobox">
{{#if:{{{Photo|}}}|<tr><td class="infobox-image" colspan="2">[[File:{{{Photo}}}|frameless|250px]]</td></tr>}}
  <tr><th class="infobox-title" colspan="2">{{{Name|{{PAGENAME}}}}}{{#if:{{{Nickname|}}}| · {{{Nickname}}}}}</th></tr>
{{#if:{{{Hometown|}}}|<tr><th>Hometown</th><td>{{{Hometown}}}</td></tr>}}
 
{{#if:{{{Team|}}}|<tr><th>Team</th><td>[[{{{Team}}}]]</td></tr>}}
  {{#if:{{{Photo|}}}|
{{#if:{{{HeightFeet|}}}{{{HeightInches|}}}|<tr><th>Height</th><td>{{{HeightFeet}}}′{{#if:{{{HeightInches|}}}|{{{HeightInches}}}″|}}</td></tr>}}
    <tr><td class="infobox-image" colspan="2">[[File:{{{Photo}}}|frameless|upright=1.15]]</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>
  {{#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}}}|,|@@|
      <div class="player-social">[{{#trim:@@}} {{#trim:@@}}]</div>
    |<!-- -->}}
  </td>
</tr>
}}
 
  {{#if:{{{PlayerID|}}}|<tr><th>ID</th><td>{{{PlayerID}}}</td></tr>}}
</table>
 
[[Category:Players]]
</includeonly>

Latest revision as of 01:43, 17 April 2026

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