Difference between revisions of "Template:League infobox"

From LFS Manual
Jump to navigationJump to search
(Made some parameters optional - more work to follow)
Line 5: Line 5:
 
| colspan="2" align="center" | [[Image:{{{logo}}}|235px]]
 
| colspan="2" align="center" | [[Image:{{{logo}}}|235px]]
 
|-  
 
|-  
| style="vertical-align: top;" | '''First season'''
+
| style="vertical-align: top;" | '''League type'''
| {{{firstseason}}}
+
| {{{type}}}
 
|-  
 
|-  
| style="vertical-align: top;" | '''Seasons'''
+
| {{#if:{{{firstseason|}}}|'''First season'''| }}
| {{{seasons}}} seasons
+
| {{#if:{{{firstseason|}}}|{{{firstseason}}}| }}
 
|-  
 
|-  
| style="vertical-align: top;" | '''League type'''
+
| {{#if:{{{seasons|}}}|'''Seasons'''| }}
| {{{type}}}
+
| {{#if:{{{seasons|}}}|{{{seasons}}} seasons| }}
 
|-
 
|-
| style="vertical-align: top;" | '''Administrators'''
+
| {{#if:{{{admins|}}}|'''Administrators'''| }}
| {{{admins}}}
+
| {{#if:{{{admins|}}}|{{{admins}}}| }}
 
|-
 
|-
 
! colspan="2" style="background-color: #DFDFDF;" | <div style="text-align: center; position: relative;">[{{{website}}} Official website]</div>
 
! colspan="2" style="background-color: #DFDFDF;" | <div style="text-align: center; position: relative;">[{{{website}}} Official website]</div>
 
|}<noinclude>
 
|}<noinclude>
This template is used on pages of LFS leagues. At the moment, '''all parameters are REQUIRED''' (to avoid showing odd things in the infobox).
+
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 ==
 
== Template documentation ==
 
=== Required parameters ===
 
=== Required parameters ===
 
* '''name:''' name of the league
 
* '''name:''' name of the league
 
* '''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)
 +
* '''website:''' website of the league. Format: http://bestleague.org
 +
=== Optional parameters ===
 
* '''firstseason:''' a year, when the first season of the league was concluded
 
* '''firstseason:''' a year, when the first season of the league was concluded
 
* '''seasons:''' a number of seasons
 
* '''seasons:''' a number of seasons
* '''type:''' the type of the league (for example Endurance League, Single Seater League, Mixed Classes League, GTR League, Drift League, 24h Race, Single Event)
 
 
* '''admins:''' list of the admins. Format: StrictAdmin1, KindAdmin2, AFKAdmin3
 
* '''admins:''' list of the admins. Format: StrictAdmin1, KindAdmin2, AFKAdmin3
* '''website:''' website of the league. Format: http://bestleague.org
 
 
=== Copy-paste format ===
 
=== Copy-paste format ===
 
<pre>
 
<pre>
Line 35: Line 36:
 
| logo        =  
 
| logo        =  
 
| firstseason =  
 
| firstseason =  
| seasons    =
+
| seasons    =  
 
| type        =  
 
| type        =  
 
| admins      =  
 
| admins      =  

Revision as of 21:16, 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        = 
| firstseason = 
| seasons     = 
| type        = 
| admins      = 
| website     = 
}}