Template:Awards table sorting
This template can be useful when making a sortable table involving awards received or competition placement, through the automatic generation of a hidden sortkey.
This is helpful because the default alphabetical sorting does not make sense:
| Markup | Renders as | |||||
|---|---|---|---|---|---|---|
{| class="wikitable sortable"
|+ Incorrect
! Sort me!
|-
| Semifinalist
|-
| Quarterfinalist
|-
| Champion
|-
| Runner-up
|}
|
| |||||
{| class="wikitable sortable"
|+ Fixed!
! Sort me!
|-
| {{Awards table sorting|Semifinalist}}
|-
| {{Awards table sorting|Quarterfinalist}}
|-
| {{Awards table sorting|Champion}}
|-
| {{Awards table sorting|Runner-up}}
|}
|
|
NOTE: This template adds the pipe character | between the custom data-sort-value and the cell contents.
Usage
{{Awards table sorting|Quarterfinalist}} → Quarterfinalist
{{Awards table sorting|b=y|Gold}} → Gold
{{Awards table sorting|i=y|Bronze| award|nowrap=y}} → Bronze award
style="background:gold" {{Awards table sorting|b=y|Champions| (2)|addkey=2}} <small>(2001, 2004)</small> → Champions (2) (2001, 2004)
The template can be used together with other cell styling markup, and does not need to encompass entire contents of table cell
Parameter descriptions
- Award/placement
- First positional argument, or
|1= - (Required) The award received or placement in a competition. Accepted values:
Gold, Champion, Champions, C, Winner, Winners, W, First, 1st, 1Silver, Runner-up, Runners-up, RU, Second, 2nd, 2Bronze, Third, 3rd, 3Semi Finals, Semi-finals, Semifinals, Semi-finalist, Semi-finalists, Semifinalist, Semifinalists, SF, Round of 4, Ro4, Fourth, 4th, 4Fifth, 5th, 5Round of 6, Ro6, Sixth, 6th, 6, Super 6Quarter Finals, Quarter-finals, Quarterfinals, Quarter-finalist, Quarter-finalists, Quarterfinalist, Quarterfinalists, QF, Round of 8, Ro8, Super 8Inter-zone finals, IZF;Inter-zone semi-finals, IZSF;Zonal finals, ZF;Zonal semi-finals, ZSF(AFC Cup)Round of 16, Ro16Round of 24, Ro24(e.g. UEFA Europa League knockout round play-offs)Round of 32, Ro32Round of 64, Ro64Group Winner, Group Winners, Group winner, Group winners;Group Runner-up, Group Runners-up, Group runner-up, Group runners-up(UEFA Intertoto Cup, 1967–1994)Group Stage 2, Group stage 2, GS2Group Stage 1, Group stage 1, GS1Group Stage, Group stage, GS, Pool Stage, Pool stage, Pool Play, Pool playPlay-off Round, Play-off round, POFifth Round, Fifth round, Round 5, R5Fourth Round, Fourth round, Round 4, R4Third Round, Third round, Round 3, R3Second Round, Second round, Round 2, R2First Round, First round, Round 1, R1Qualifying Round 5, QR5Qualifying Round 4, QR4Qualifying Round 3, QR3Qualifying Round 2, QR2Qualifying Round 1, QR1Qualifying Round, QR, Qualifying Stage, QS, Qualifying, Q, Qualifier, Qualifiers, QualifiedPreliminary Round 3, PR3Preliminary Round 2, PR2Preliminary Round 1, PR1Preliminary Round, PR, Preliminary Stage, PSWithdraw, Withdrew, WithdrawnCancelled
- Additional sort key
- (Optional) Adds another sort key to impose further ordering between rows with the same award or position. For example, if some teams have won a championship multiple times, this can be indicated e.g.
|addkey=3to sort according to number of times they have won. Accepts numbers from 0 to 9999.
- Bold/Italic text
- (Optional) renders the text in bold
|b=yor italic|i=y. Both may be used; accepts any of the following:Y, y, Yes, yes, True, true, 1.
- Additional text
- Second positional argument, or
|2= - (Optional) additional text to be formatted as bold and/or italic, if those options are used. It is not necessary to use this parameter if neither bold not italic text is utilized —— just put the text after the template.
- Wrapping
- (Optional) Word wrapping within the table cell can be suppressed with the parameter
|nowrap=yAccepts any of the following:Y, y, Yes, yes, True, true, 1.
Examples
| Year | Award | Category | Beer |
|---|---|---|---|
| 1996 | Gold | American Style Malt Liquor | Olde English 800 |
| 1996 | Silver | American Style Malt Liquor | Schlitz Malt Liquor |
| 1996 | Bronze | American Style Malt Liquor | Country Club Malt Liquor |
| 1996 | Bronze | American Style Ice Lager | Schlitz Ice |
| 1998 | Gold | American Style Malt Liquor | Schlitz Malt Liquor |
| 2006 | Gold | American Style Premium Lager | Pabst Blue Ribbon |
| 2006 | Gold | American Cream Ale or Lager | Old Style |
| 2008 | Gold | American-Style Cream Ale or Lager | Special Export |
| 2008 | Gold | American-Style Light Lager | Old Milwaukee Light |
| 2008 | Silver | American-Style Cream Ale or Lager | Lone Star |
| 2008 | Silver | American-Style Light Lager | Lone Star Light |
| 2010 | Gold | American-Style Lager | Olympia |
| 2010 | Silver | American-Style Cream Ale or Lager | Old Style |
| 2010 | Silver | American-Style Lager | National Bohemian |
| 2010 | Bronze | American-Style Cream Ale or Lager | Lone Star |
| 2010 | Bronze | American-Style Specialty Lager | Colt 45 |
| Club | Arab Club Champions Cup | Arab Cup Winners' Cup | Arab Super Cup |
|---|---|---|---|
| ES Tunis | Winner (3) 1993, 2008–09, 2017 |
— | Winner 1996 |
| CS Sfaxien | Winner (2) 2000, 2003–04 |
— | Fourth place 2001 |
| Club Africain | Winner 1997 |
Winner 1995 |
Runners-up 1998 |
| Stade Tunisien | Fourth 2002 |
Winner (2) 1989, 2001 |
— |
| ES Sahel | Winner 2018–19 |
Runners-up 1995 |
— |
| CA Bizertin | Semi-finalist 1994 |
— | — |
| AS Marsa | — | Semi-finalist (2) 1992, 1994 |
— |
| Olympique Béja | Group stage 1999 |
— | — |
| US Monastir | Quarter-finalist 2008–09 |
— | — |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.