Difference between revisions of "Template:League infobox"

From LFS Manual
Jump to navigationJump to search
(added the License (required) parameter)
Line 8: Line 8:
 
| {{{type}}}
 
| {{{type}}}
 
|-  
 
|-  
| style="vertical-align: top;" | '''License'''
+
| style="vertical-align: top;" | {{#if:{{{license|}}}|'''License'''|}}
| {{{license}}}
+
| {{#ifeq:{{{license}}}|Demo|Demo|}}{{#ifeq:{{{license}}}|S1|S1|}}{{#ifeq:{{{license}}}|S2|S2|}}{{#ifeq:{{{license}}}|S3|S3|}}{{#ifeq:{{{license}}}|Various|Various|}}
 
|-  
 
|-  
 
| style="vertical-align: top;" | {{#if:{{{firstseason|}}}|'''First season'''|}}
 
| style="vertical-align: top;" | {{#if:{{{firstseason|}}}|'''First season'''|}}
Line 28: Line 28:
 
* '''logo:''' a picture from the shared repository. Format: BestLeagueLogo.jpg
 
* '''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)
 
* '''type:''' the type of the league (for example Endurance League, Single Seater League, Mixed Classes League, GTR League, Drift League, 24h Race, Single Event)
* '''license:''' the minimum required license to participate in the league (Demo, S1, S2, S3, Various)
+
* '''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
 
* '''website:''' website or forum of the league. Format: http://bestleague.org
 
=== Optional parameters ===
 
=== Optional parameters ===

Revision as of 22:36, 1 February 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)
  • 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

  • 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        = 
| license     =
| firstseason = 
| seasons     = 
| admins      = 
| website     = 
}}

Example

Example League
BL1.jpg
League type Endurance League
License S2
First season 1542
Seasons 14 seasons
Administrators StrictAdmin1, AFKAdmin3