Template:Team: Difference between revisions
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 | ||
|Name=String | |||
|PlayerA=Page (mandatory) | |||
|PlayerB=Page (mandatory) | |||
|ActiveFrom=Date | |||
|ActiveTo=Date | |||
|Logo=File | |||
}} | }} | ||
</noinclude> | </noinclude><includeonly> | ||
< | {{#default_form:Team}} | ||
{{#cargo_store: | <templatestyles src="Template:Infobox/styles.css" /> | ||
{{#cargo_store:_table=Teams | |||
|Name={{{Name|}}} | |||
|PlayerA={{{PlayerA|}}} | |||
|PlayerB={{{PlayerB|}}} | |||
|ActiveFrom={{{ActiveFrom|}}} | |||
|ActiveTo={{{ActiveTo|}}} | |||
|Logo={{{Logo|}}} | |||
}} | }} | ||
<div class="infobox"> | |||
<div class="ib-title">{{#if:{{{Name|}}}|{{{Name}}}|{{{PlayerA}}} & {{{PlayerB}}}}}</div> | |||
<div class="ib-img">{{#if:{{{Logo|}}}|[[File:{{{Logo}}}|340px]]}}</div> | |||
| {{{ | <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>}} | |||
</div> | |||
|- | |||
| {{{ | |||
[[Category:Teams]] | [[Category:Teams]] | ||
</includeonly> | </includeonly> | ||