Difference between revisions of "Template:Cyclingteamlist/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>BaldBoris
imported>BaldBoris
 
Line 3: Line 3:
 
</div>
 
</div>
 
<div style="width:{{#if: {{{width|}}}|{{{width}}}|100%}};">  
 
<div style="width:{{#if: {{{width|}}}|{{{width}}}|100%}};">  
{{div col|colwidth=20em}}
+
{{div col|colwidth={{#if: {{{colwidth|}}}|{{{colwidth}}}|20em}}}}
 
{{#if: {{{1|}}} |* {{Ct|{{{1|}}}|{{#if: {{{year|}}}|{{{year}}}|}}}}| }}{{#if: {{{2|}}} |
 
{{#if: {{{1|}}} |* {{Ct|{{{1|}}}|{{#if: {{{year|}}}|{{{year}}}|}}}}| }}{{#if: {{{2|}}} |
 
* {{Ct|{{{2|}}}|{{#if: {{{year|}}}|{{{year}}}|}}}}| }}{{#if: {{{3|}}} |
 
* {{Ct|{{{2|}}}|{{#if: {{{year|}}}|{{{year}}}|}}}}| }}{{#if: {{{3|}}} |

Latest revision as of 14:27, 15 July 2015

Participating teams
Template documentation[view] [edit] [history] [purge]

Usage

{{Cyclingteamlist}} is a template for making a list of cycling teams. Teams can be added with the 3 letter code of the team (see Template:Ct), up to 25 teams.

{{Cyclingteamlist|SLU|DLT|SKY|SLU|DLT|SKY|SLU|DLT|SKY|SLU|DLT|SKY|SLU|DLT|SKY}} gives:

Participating teams

Parameters

  • title = Changing the name of the table. The standard title for the table is Participating teams.
  • year = Adding the year for the teams (has to be done only once), works the same as used in ct template.
  • team1 = Adding a team that has no ct template. You can make it a wikilink.
  • team2, team3 etc. = Adding more teams with no ct template (up to 25 teams).
  • width = Width of the table in % or px. Default is: 100%.
  • colwidth = Width of columns. Default is: 20em.

Examples

{{Cyclingteamlist|title=Other title|year=2013|SLU|DLT|SKY|SLU|DLT|SKY|SLU|DLT|SKY|SLU|team1=[[Team name
with no tri-code]]|team2=Team name with no tri-code and wikilink}} gives:

Other title


{{Cyclingteamlist|title=UCI WorldTeams|year=2015|AST|ALM|FDJ|SKY|TTS|MOV|BMC|LTS|GIA|KAT|OGE|EQS|TLJ|TFR|LAM|TCG|IAM|colwidth=15em}} gives:

UCI WorldTeams


{{Cyclingteamlist|title=UCI WorldTeams|year=2015|AST|ALM|FDJ|SKY|TTS|MOV|BMC|LTS|GIA|KAT|OGE|EQS|TLJ|TFR|LAM|TCG|IAM}}
{{Cyclingteamlist|title=UCI Professional Continental teams|year=2015|EUC|COF|TNE|BSE|MTN}} gives:

UCI WorldTeams

UCI Professional Continental teams



{{Cyclingteamlist|year=2015|title=UCI WorldTeams|AST|ALM|FDJ|SKY|TTS|MOV|BMC|LTS|GIA|KAT|OGE|EQS|TLJ|TFR|LAM|TCG|IAM|style=margin-right:20%;}} gives:

UCI WorldTeams