Jump to content

Template:Team: Difference between revisions

From Spike Wiki
Created page with "<noinclude> {{#cargo_declare: _table=Teams |Name=String |Player1=Page |Player2=Page |Country=String |ActiveYears=String |Notes=Text }} </noinclude> <includeonly> {{#cargo_store: _table=Teams |Name={{{Name|}}} |Player1={{{Player1|}}} |Player2={{{Player2|}}} |Country={{{Country|}}} |ActiveYears={{{ActiveYears|}}} |Notes={{{Notes|}}} }} {| class="wikitable" ! colspan="2" style="text-align:center;" | {{PAGENAME}} |- ! Country | {{{Country|}}} |- ! Players | [..."
 
>Kypho
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:
{{#cargo_declare:_table=Teams
  _table=Teams
|Name=String
|Name=String
|PlayerA=Page (mandatory)
|Player1=Page
|PlayerB=Page (mandatory)
|Player2=Page
|ActiveFrom=Date
|Country=String
|ActiveTo=Date
|ActiveYears=String
|Logo=File
|Notes=Text
}}
}}
</noinclude>
</noinclude><includeonly>
<includeonly>
{{#default_form:Team}}
{{#cargo_store:
<templatestyles src="Template:Infobox/styles.css" />
  _table=Teams
 
|Name={{{Name|}}}
{{#cargo_store:_table=Teams
|Player1={{{Player1|}}}
|Name={{{Name|}}}
|Player2={{{Player2|}}}
|PlayerA={{{PlayerA|}}}
|Country={{{Country|}}}
|PlayerB={{{PlayerB|}}}
|ActiveYears={{{ActiveYears|}}}
|ActiveFrom={{{ActiveFrom|}}}
|Notes={{{Notes|}}}
|ActiveTo={{{ActiveTo|}}}
|Logo={{{Logo|}}}
}}
}}
{| class="wikitable"
 
! colspan="2" style="text-align:center;" | {{PAGENAME}}
<div class="infobox">
|-
  <div class="ib-title">{{#if:{{{Name|}}}|{{{Name}}}|{{{PlayerA}}} &amp; {{{PlayerB}}}}}</div>
! Country
  <div class="ib-img">{{#if:{{{Logo|}}}|[[File:{{{Logo}}}|340px]]}}</div>
| {{{Country|}}}
  <div class="ib-row"><span class="ib-label">Players</span><span>[[{{{PlayerA}}}]] · [[{{{PlayerB}}}]]</span></div>
|-
  {{#if:{{{ActiveFrom|}}}|<div class="ib-row"><span class="ib-label">Active</span><span>{{{ActiveFrom}}}{{#if:{{{ActiveTo|}}}|{{{ActiveTo}}}|–present}}</span></div>}}
! Players
</div>
| [[{{{Player1|}}}]] [[{{{Player2|}}}]]
 
|-
! Active years
| {{{ActiveYears|}}}
|-
! Notes
| {{{Notes|}}}
|}
[[Category:Teams]]
[[Category:Teams]]
</includeonly>
</includeonly>

Revision as of 22:34, 14 September 2025

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