Difference between revisions of "Template:League infobox"

From LFS Manual
Jump to navigationJump to search
(Made some parameters optional - more work to follow)
(Added an example infobox)
Line 35: Line 35:
 
| name        =  
 
| name        =  
 
| logo        =  
 
| logo        =  
 +
| type        =
 
| firstseason =  
 
| firstseason =  
 
| seasons    =  
 
| seasons    =  
| type        =
 
 
| admins      =  
 
| admins      =  
 
| website    =  
 
| website    =  
 
}}
 
}}
 
</pre>
 
</pre>
 +
=== Example ===
 +
{{League infobox
 +
| name        = Example League
 +
| logo        = BL1.jpg
 +
| type        = Endurance League
 +
| firstseason = 1945
 +
| seasons    = 52
 +
| admins      = StrictAdmin1, AFKAdmin3
 +
| website    = http://lfsmanual.net
 +
}}
 
</noinclude>
 
</noinclude>

Revision as of 22:19, 30 January 2017

{{{name}}}
[[Image:{{{logo}}}|235px]]
League type {{{type}}}
[{{{website}}} Official website]

This template is used on pages of LFS leagues. Some parameters are REQUIRED (to avoid showing odd things in the infobox) and there are also optional parameters like season number and administrators of a league.

Template documentation

Required parameters

  • name: name of the league
  • logo: a picture from the shared repository. Format: BestLeagueLogo.jpg
  • type: the type of the league (for example Endurance League, Single Seater League, Mixed Classes League, GTR League, Drift League, 24h Race, Single Event)
  • website: website of the league. Format: http://bestleague.org

Optional parameters

  • firstseason: a year, when the first season of the league was concluded
  • seasons: a number of seasons
  • admins: list of the admins. Format: StrictAdmin1, KindAdmin2, AFKAdmin3

Copy-paste format

{{League infobox
| name        = 
| logo        = 
| type        = 
| firstseason = 
| seasons     = 
| admins      = 
| website     = 
}}

Example

Example League
BL1.jpg
League type Endurance League
First season 1945
Seasons 52 seasons
Administrators StrictAdmin1, AFKAdmin3