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;" | ''' | + | | style="vertical-align: top;" | '''League type''' |
− | | {{{ | + | | {{{type}}} |
|- | |- | ||
− | | | + | | {{#if:{{{firstseason|}}}|'''First season'''| }} |
− | | {{{ | + | | {{#if:{{{firstseason|}}}|{{{firstseason}}}| }} |
|- | |- | ||
− | | | + | | {{#if:{{{seasons|}}}|'''Seasons'''| }} |
− | | {{{ | + | | {{#if:{{{seasons|}}}|{{{seasons}}} seasons| }} |
|- | |- | ||
− | | | + | | {{#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. | + | 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 | ||
− | |||
* '''admins:''' list of the admins. Format: StrictAdmin1, KindAdmin2, AFKAdmin3 | * '''admins:''' list of the admins. Format: StrictAdmin1, KindAdmin2, AFKAdmin3 | ||
− | |||
=== 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 = }}