Difference between revisions of "Template:Infobox league"
From LFS Manual
Jump to navigationJump to searchm |
(+related event param) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
− | | above = {{{name|{{ | + | | above = {{{name|{{BASEPAGENAME}}}}} |
| image = {{{logo|}}} | | image = {{{logo|}}} | ||
| caption = {{{logo_caption|}}} | | caption = {{{logo_caption|}}} | ||
Line 9: | Line 9: | ||
| data1 = {{#if:{{{type|}}}|{{{type|}}}}} | | data1 = {{#if:{{{type|}}}|{{{type|}}}}} | ||
| label2 = Recurrence | | label2 = Recurrence | ||
− | | data2 = {{#switch:{{{recurrence|}}} | + | | data2 = {{#if:{{{recurrence|}}}|{{#switch:{{{recurrence|}}} |
− | |daily=daily | + | |daily=daily |
− | |weekly=weekly | + | |weekly=weekly |
− | |bi-weekly=bi-weekly | + | |bi-weekly=bi-weekly |
− | |monthly=monthly | + | |monthly=monthly |
− | |custom=custom schedule | + | |custom=custom schedule |
− | }} | + | }}}} |
| label3 = License | | label3 = License | ||
− | | data3 = {{#if:{{{license|}}}|{{{license|}}}}} | + | | data3 = {{#if:{{{license|}}}|{{#switch:{{{license|}}} |
+ | |demo=[[:Category:Demo contents|demo]] | ||
+ | |S1 | ||
+ | |s1=[[:Category:S1 contents|S1]] | ||
+ | |S2 | ||
+ | |s2=[[:Category:S2 contents|S2]] | ||
+ | |S3 | ||
+ | |s3=[[:Category:S3 contents|S3]] | ||
+ | |#default=various | ||
+ | }}}} | ||
| label4 = Prize pool | | label4 = Prize pool | ||
| data4 = {{#if:{{{prizepool|}}}|{{{prizepool|}}} {{#if:{{{prizepool|}}}|{{{prizecurrency|}}}}}}} | | data4 = {{#if:{{{prizepool|}}}|{{{prizepool|}}} {{#if:{{{prizepool|}}}|{{{prizecurrency|}}}}}}} | ||
Line 27: | Line 36: | ||
| data7 = {{#if:{{{yearsactive|}}}|{{{yearsactive|}}}}} | | data7 = {{#if:{{{yearsactive|}}}|{{{yearsactive|}}}}} | ||
| label8 = Seasons | | label8 = Seasons | ||
− | | data8 = {{#if:{{{seasons|}}}|{{{seasons|}}} seasons}} | + | | data8 = {{#if:{{{seasons|}}}|{{#ifexpr:{{{seasons|}}}>1|{{{seasons|}}} seasons|{{{seasons|}}} season}}}} |
− | | label9 = Organizers | + | | label9 = Related event |
− | | | + | | data9 = {{#if:{{{related|}}}|{{{related|}}}}} |
+ | | label10 = Organizers | ||
+ | | data10 = {{#if:{{{orgs|}}}|{{{orgs|}}}}} | ||
| belowstyle = background: #dedede; | | belowstyle = background: #dedede; | ||
| below = {{#if:{{{website|}}}|[{{{website}}} Official website]}} | | below = {{#if:{{{website|}}}|[{{{website}}} Official website]}} | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 20:22, 8 February 2024
Template documentation
Infobox league is used to create an infobox which summarizes the main information of a particular league or championship. For well-built examples, see pages Fragmaster's GTi Thursday, MRc FBM Saturday, GT2 Challenge and B2R Turbo Cup.
Usage
League name | |
---|---|
logo caption if needed |
|
Type |
endurance league GTR league |
Recurrence | weekly |
License | S2 |
Prize pool | 250 EUR |
Signup required | Yes |
First season | 2010 |
Years active |
2010–2017, 2020– |
Seasons | 5 seasons |
Related event | Other League |
Organizers | Organizer Team |
Official website |
{{Infobox league | name = | logo = | logo_caption = | type = | recurrence = | license = | prizepool = | prizecurrency = | signup = | firstseason = | yearsactive = | seasons = | related = | orgs = | website = }}
Parameters
Parameter | Explanation | Example values |
---|---|---|
name | Full name of the league/championship. | Lawnmower Racing League
|
logo | Official logo of the league. Format as if you included an image in articles, with specified width. | [[File:Mrc fbm sat.png|250px]]
|
logo_caption | A caption explaining the image. | Series logo caption
|
type | Single or multiple types which describe the league well. If you include multiple, use <br> between them. If you include a mention of a car or a class of cars, create a link through the class abbreviation (see example values). Some examples: TBO league, endurance league, multiclass league, mixed class league, single seater league, sprint league, drift league, open wheel series, single event series
|
sprint league , {{Car link|XRR}} league , endurance league<br>[[:Category:GTR cars|GTR]] league
|
recurrence | Recurrence type of the event. If it's irregular (a specific season is announced with less than 10 scheduled rounds), use custom. Choose one of the following: daily, weekly, bi-weekly, monthly, custom. | weekly
|
license | The minimum required license to participate in the league, dictated by the track/car combos used in specific rounds. If it's very diverse, choose various. Choose one of the following: demo, S1, S2, S3, various. | S2
|
prizepool | Given there is a prize pool for the event, input the amount here only. Define currency in parameter |prizecurrency= .
|
250
|
prizecurrency | Currency of the prize pool defined in parameter |prizepool= .
|
EUR
|
signup | Whether the event requires signing up to participate. Choose one of the following: yes, no. | yes
|
firstseason | Inaugural season, the year in which it's first season concluded. | 2006
|
yearsactive | A period when the league was actively running. Use an en dash (– ) between year ranges and after year if the league is still running. If there are multiple periods, use <br> between them.
|
2020– , 2022–2024 , 2010–2017,<br>2020–
|
seasons | Number of seasons. | 7
|
related | More or less organizationally related events. For example Fragmaster's Fox Friday is relevant to Fragmaster's GTi Thursday, while Kyoto 500 and Kyoto 250 are related as well. | Other League
|
orgs | League organizers. If there are multiple organizers, use <br> between them.
|
Best Team Ever , Awesome Organizer Team<br>Another One
|
website | Official website of the league. Include the link only. | https://www.lfs.net
|