Template:Team: Difference between revisions
Add TournamentCount to Team Cargo schema and infobox |
Restore encyclopedia team infobox styling |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 22: | Line 22: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude><includeonly>{{#default_form:Team}}<templatestyles src="Template:Infobox/styles.css" /><templatestyles src="Template:Team/styles.css" /><!-- -->{{#cargo_store:_table=Teams | ||
<includeonly> | |||
{{#default_form:Team}} | |||
<templatestyles src="Template:Infobox/styles.css" /> | |||
<templatestyles src="Template:Team/styles.css" /> | |||
{{#cargo_store:_table=Teams | |||
|Name={{{Name|}}} | |Name={{{Name|}}} | ||
|PlayerA={{{PlayerA|}}} | |PlayerA={{{PlayerA|}}} | ||
| Line 37: | Line 30: | ||
|ActiveToYear={{{ActiveToYear|}}} | |ActiveToYear={{{ActiveToYear|}}} | ||
|Logo={{{Logo|}}} | |Logo={{{Logo|}}} | ||
}} | }}<!-- --><table class="infobox infobox-team"> | ||
<tr><th class="infobox-title" colspan="2">{{#if:{{{Name|}}}|{{{Name}}}|{{{PlayerA}}} & {{{PlayerB}}}}}</th></tr> | |||
<table class="infobox"> | {{#if:{{{Logo|}}}|<tr><td class="infobox-image" colspan="2">[[File:{{{Logo}}}|frameless|250px]]</td></tr>}} | ||
<tr><th>Players</th><td>[[{{{PlayerA}}}]] · [[{{{PlayerB}}}]]</td></tr> | |||
{{#if:{{{TournamentCount|}}}|<tr><th>Tournaments</th><td>{{{TournamentCount}}}</td></tr>}} | |||
{{#if:{{{ActiveFromYear|}}}|<tr><th>Active</th><td>{{{ActiveFromYear}}}{{#if:{{{ActiveToYear|}}}|–{{{ActiveToYear}}}|–present}}</td></tr>}} | |||
</table>[[Category:Teams]]</includeonly> | |||
</table> | |||
[[Category:Teams]] | |||
</includeonly> | |||