Difference between revisions of "Template:League infobox"

From LFS Manual
Jump to navigationJump to search
(increased outside table margin (7px))
(yearsactive parameter)
Line 16: Line 16:
 
| style="vertical-align: top;" | {{#if:{{{firstseason|}}}|'''First season'''|}}
 
| style="vertical-align: top;" | {{#if:{{{firstseason|}}}|'''First season'''|}}
 
| {{#if:{{{firstseason|}}}|{{{firstseason}}}|}}
 
| {{#if:{{{firstseason|}}}|{{{firstseason}}}|}}
 +
|-
 +
| style="vertical-align: top;" | {{#if:{{{yearsactive|}}}|'''Years active'''|}}
 +
| {{#if:{{{yearsactive|}}}|{{{yearsactive}}}|}}
 
|-  
 
|-  
 
| style="vertical-align: top;" | {{#if:{{{seasons|}}}|'''Seasons'''|}}
 
| style="vertical-align: top;" | {{#if:{{{seasons|}}}|'''Seasons'''|}}
Line 38: Line 41:
 
* '''logosize:''' the width of the displayed logo, in pixels. You shouldn't need to use this, as if it's not given, the default value will be used (235). Format: 220
 
* '''logosize:''' the width of the displayed logo, in pixels. You shouldn't need to use this, as if it's not given, the default value will be used (235). Format: 220
 
* '''firstseason:''' a year, when the first season of the league was concluded. Format: 2010
 
* '''firstseason:''' a year, when the first season of the league was concluded. Format: 2010
 +
* '''yearsactive:''' a period when the league was active. Format: 2001–2006
 
* '''seasons:''' a number of seasons. Format: 4
 
* '''seasons:''' a number of seasons. Format: 4
 
* '''orgs:''' list of the organizers. Format: StrictOrganizer1, KindAdmin2, AFKAdmin3
 
* '''orgs:''' list of the organizers. Format: StrictOrganizer1, KindAdmin2, AFKAdmin3
Line 50: Line 54:
 
| license    =  
 
| license    =  
 
| firstseason =  
 
| firstseason =  
 +
| yearsactive =
 
| seasons    =  
 
| seasons    =  
 
| orgs        =  
 
| orgs        =  
Line 64: Line 69:
 
| license    = S2
 
| license    = S2
 
| firstseason = 1542
 
| firstseason = 1542
 +
| yearsactive = 1542–1583
 
| seasons    = 14
 
| seasons    = 14
 
| orgs        = StrictAdmin1, AFKAdmin3
 
| orgs        = StrictAdmin1, AFKAdmin3

Revision as of 23:29, 19 June 2017

{{{name}}}
[[Image:{{{logo}}}|235px]]
League type {{{type}}}
Signup
[{{{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 series)
  • signup: is there a signup requirement or not? You have to input one of the following: yes / no
  • license: the minimum required license to participate in the league, you have to input one of the following: Demo / S1 / S2 / S3 / Various
  • website: website or forum of the league. Format: http://bestleague.org

Optional parameters

  • logosize: the width of the displayed logo, in pixels. You shouldn't need to use this, as if it's not given, the default value will be used (235). Format: 220
  • firstseason: a year, when the first season of the league was concluded. Format: 2010
  • yearsactive: a period when the league was active. Format: 2001–2006
  • seasons: a number of seasons. Format: 4
  • orgs: list of the organizers. Format: StrictOrganizer1, KindAdmin2, AFKAdmin3

Copy-paste format

{{League infobox
| name        = 
| logo        = 
| logosize    = 
| type        = 
| signup      = 
| license     = 
| firstseason = 
| yearsactive =
| seasons     = 
| orgs        = 
| website     = 
}}

Example

Example League
BL1.jpg
League type Endurance League
Signup Required
License S2
First season 1542
Years active 1542–1583
Seasons 14 seasons
Organizers StrictAdmin1, AFKAdmin3