Difference between revisions of "Template:League infobox"
From LFS Manual
Jump to navigationJump to search (Added an example infobox) |
|||
Line 8: | Line 8: | ||
| {{{type}}} | | {{{type}}} | ||
|- | |- | ||
− | | {{#if:{{{firstseason|}}}|'''First season'''| }} | + | | style="vertical-align: top;" | {{#if:{{{firstseason|}}}|'''First season'''|}} |
− | | {{#if:{{{firstseason|}}}|{{{firstseason}}}| }} | + | | {{#if:{{{firstseason|}}}|{{{firstseason}}}|}} |
|- | |- | ||
− | | {{#if:{{{seasons|}}}|'''Seasons'''| }} | + | | style="vertical-align: top;" | {{#if:{{{seasons|}}}|'''Seasons'''|}} |
− | | {{#if:{{{seasons|}}}|{{{seasons}}} seasons| }} | + | | {{#if:{{{seasons|}}}|{{{seasons}}} seasons|}} |
|- | |- | ||
− | | {{#if:{{{admins|}}}|'''Administrators'''| }} | + | | style="vertical-align: top;" | {{#if:{{{admins|}}}|'''Administrators'''|}} |
− | | {{#if:{{{admins|}}}|{{{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> | ||
Line 25: | Line 25: | ||
* '''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) | ||
− | * '''website:''' website of the league. Format: http://bestleague.org | + | * '''website:''' website or forum of the league. Format: http://bestleague.org |
=== Optional parameters === | === 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 | ||
Line 47: | Line 47: | ||
| logo = BL1.jpg | | logo = BL1.jpg | ||
| type = Endurance League | | type = Endurance League | ||
− | | firstseason = | + | | firstseason = 1542 |
− | | seasons = | + | | seasons = 14 |
| admins = StrictAdmin1, AFKAdmin3 | | admins = StrictAdmin1, AFKAdmin3 | ||
| website = http://lfsmanual.net | | website = http://lfsmanual.net | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 23:02, 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 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 = | firstseason = | seasons = | admins = | website = }}
Example
Example League
| |
---|---|
League type | Endurance League |
First season | 1542 |
Seasons | 14 seasons |
Administrators | StrictAdmin1, AFKAdmin3 |