Difference between revisions of "Template:Infobox sailing competition"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
m
imported>Yachty4000
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
 
| title  = {{if empty|{{{name|}}}|{{{year|}}} {{{type|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
 
| title  = {{if empty|{{{name|}}}|{{{year|}}} {{{type|}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
| image   = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|alt={{{alt|}}}}}
+
 
| caption = {{{caption|}}}
+
|image1    = {{#invoke:InfoboxImage|InfoboxImage|image={{{logoimage|}}}|size={{{logosize|{{{Size|}}}}}}|sizedefault=275x275px|alt={{{logoalt|}}}}}
 +
|caption1  = {{{caption|}}}
 +
 
 +
|image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|{{{Size|}}}}}}|sizedefault=275x275px|alt={{{imagealt|}}}}}
 +
|caption2  = {{{caption|}}}
  
 
| headerstyle = border-top:#aaa 1px solid;
 
| headerstyle = border-top:#aaa 1px solid;
  
| label1 = Edition
+
| header100= {{#if:{{{name|}}}{{{formername|}}}{{{edition|}}}|Event Title}}
| data1  = {{{edition|}}}
+
 
| label2 = Venue
+
| label101 = Name
| data2  = {{{venue|}}}
+
| data101 = {{{name|}}}
| label3 = Dates
+
| label102 = Former Name
| data3  = {{{dates|}}}
+
| data102 = {{{formername|}}}
| label4 = Host
+
| label103 = Edition
| data4  = {{{host|}}}
+
| data104 = {{{edition|}}}
| label5 = Opening ceremony
+
 
| data5  = {{{opening|}}}
+
| label111 = {{#if:{{{sponsors|}}}|Sponsors|Sponsor}}
| label6  = Opened by
+
data111 = {{if empty|{{{sponsors|}}}|{{{sponsor|}}}}}
| data6  = {{{opened_by|}}}
+
| label112 = {{#if:{{{partners|}}}|Partners|Partner}}
| label7  = Titles
+
data112 = {{if empty|{{{partners|}}}|{{{partner|}}}}}
| data7  = {{{titles|}}}
+
| label114 = Host
| label8  = Competitors
+
| data114 = {{{host|}}}
| data8  = {{{competitors|{{{sailors|}}}}}}
+
 
| label9  = Yachts
+
| header200= {{#if:{{{name|}}}{{{formername|}}}{{{edition|}}}|Event Details}}
| data9  = {{{yachts|}}}
+
 
| label10 = Competing nations
+
| label201 = Venue
| data10 = {{{nations|}}}
+
data201 = {{{venue|}}}
| label11 = Qualification(s)
+
| label202 = Host Club
| data11 = {{{qualify|}}}
+
| data202 = {{{club|}}}
| header13= {{#if:{{{key_people|}}}|Key people}}
+
| label203 = Start Location
| data14 = {{#if:{{{key_people|}}}|<div style="text-align:left; width:100%; margin:0">
+
| data203 = {{{start|}}}
{{{key_people|}}}</div>}}
+
| label204 = Finish Location
| header15= {{#if:{{{gold|}}}{{{silver|}}}{{{bronze|}}}{{{winner|}}}{{{linehonours|}}}{{{handicapwinner|}}}{{{leader|}}}{{{award1|}}}|Results}}
+
| data204 = {{{finish|}}}
| label16 = {{nowrap|{{gold1}} Gold}}
+
 
| data16 = {{{gold|}}}
+
| label210 = Course
| label17 = {{nowrap|{{silver2}} Silver}}
+
| data210 = {{{dates|}}}
| data17 = {{{silver|}}}
+
 
| label18 = {{nowrap|{{bronze3}} Bronze}}
+
| label220 = Dates
| data18 = {{{bronze|}}}
+
| data220 = {{{dates|}}}
| label19 = Winner
+
| label221 = Start Date
| data19 = {{{winner|}}}
+
|  data221 = {{{startdate|}}}
| label20 = Line honours
+
| label222 = Finish Date
| data20 = {{{linehonours|}}}
+
| data222 = {{{startdate|}}}
| label21 = Handicap winner
+
 
| data21  = {{{handicapwinner|}}}
+
| label230 = Classes
| label22 = Current leader
+
data230 = {{{classes|}}}
| data22 = {{{leader|}}}
+
| label231 = Yachts
| label23 = {{if empty|{{{award1_title|}}}|Winner}}
+
data232 = {{{yachts|}}}
| data23 = {{{award1|}}}
+
 
| header24= {{#if:{{{class1|}}}{{{class2|}}}{{{class3|}}}|Classes}}
+
| label233 = {{#if:{{{key_people|}}}|Key people}}
| label25 = {{if empty|{{{class1_type|}}}|Class 1}}
+
data234 = {{#if:{{{key_people|}}}|<div style="text-align:left; width:100%; margin:0">{{{key_people|}}}</div>}}
| data25 = {{{class1|}}}
+
| label235 = Titles
| label26 = {{if empty|{{{class2_type|}}}|Class 2}}
+
|  data236 = {{{titles|}}}
| data26 = {{{class2|}}}
+
| label236 = Opened by
| label27 = {{if empty|{{{class3_type|}}}|Class 3}}
+
|  data237 = {{{opened_by|}}}
| data27 = {{{class3|}}}
+
| label237 = Opening ceremony
| label28 = {{if empty|{{{class4_type|}}}|Class 4}}
+
|  data237 = {{{opening|}}}
| data28 = {{{class4|}}}
+
 
 +
 
 +
| header300  = {{#if:{{{competitor|}}}{{{nations|}}}{{{qualify|}}}|Competitors}}
 +
 
 +
| label301 = Competitors
 +
|  data301 = {{{competitors|{{{sailors|}}}}}}
 +
| label302 = Competing nations
 +
| data1302 = {{{nations|}}}
 +
| label303 = Qualification(s)
 +
| data1304 = {{{qualify|}}}
 +
 
 +
| header400 = {{#if:{{{gold|}}}{{{silver|}}}{{{bronze|}}}{{{winner|}}}{{{linehonours|}}}{{{handicapwinner|}}}{{{leader|}}}{{{award1|}}}|Results}}
 +
| label401 = Winner
 +
|  data401 = {{{winner|}}}
 +
| label402 = {{nowrap|{{gold1}} Gold}}
 +
data402 = {{{gold|}}}
 +
| label403 = {{nowrap|{{silver2}} Silver}}
 +
data403 = {{{silver|}}}
 +
| label404 = {{nowrap|{{bronze3}} Bronze}}
 +
data404 = {{{bronze|}}}
 +
 
 +
| label410 = Line honours
 +
| data410 = {{{linehonours|}}}
 +
| label411 = Handicap winner
 +
| data411 = {{{handicapwinner|}}}
 +
 
 +
| label420 = {{if empty|{{{award1_title|}}}|Winner}}
 +
| data420 = {{{award1|}}}
 +
| label421 = {{if empty|{{{award2_title|}}}|Winner}}
 +
| data421 = {{{award2|}}}
 +
 
 +
| header430 = {{#if:{{{class0|}}}{{{class1|}}}{{{class2|}}}{{{class3|}}}|Classes}}
 +
 
 +
| label431 = {{if empty|{{{class1_type|}}}|Class 0}}
 +
|  data431 = {{{class0|}}}
 +
| label432 = {{if empty|{{{class1_type|}}}|Class 1}}
 +
data432 = {{{class1|}}}
 +
| label433 = {{if empty|{{{class2_type|}}}|Class 2}}
 +
data433 = {{{class2|}}}
 +
| label434 = {{if empty|{{{class3_type|}}}|Class 3}}
 +
data434 = {{{class3|}}}
 +
| label435 = {{if empty|{{{class4_type|}}}|Class 4}}
 +
data435 = {{{class4|}}}
 +
 
 +
| label440 = {{if empty|{{{leader|}}}|Current leader}}
 +
|  data440 = {{{leader|}}}
 +
 
  
 
| below  = {{#if:{{{prev|}}}|{{align|left|&larr;&nbsp;{{{prev}}}}}}}{{#if:{{{next|}}}|{{align|right|{{{next}}}&nbsp;&rarr;}}}}
 
| below  = {{#if:{{{prev|}}}|{{align|left|&larr;&nbsp;{{{prev}}}}}}}{{#if:{{{next|}}}|{{align|right|{{{next}}}&nbsp;&rarr;}}}}

Revision as of 22:17, 13 January 2021

Script error: No such module "If empty".

[[Category:Infobox templates|Template:Remove first word]]

Template documentation

Usage

Template:Parameter names example

{{Infobox sailing competition
| year =
| type =
| image =
| alt =
| caption =
| edition =
| venue = 
| host =
| dates =
| opening = 
| opened_by =
| key_people =
| titles =
| competitors =
| yachts =
| nations =
| qualify =
| gold =
| silver =
| bronze =
| winner =
| linehonours =
| handicapwinner =
| leader =
| award1_title =
| award1 =
| class1_type =
| class1 =
| class2_type =
| class2 =
| class3_type =
| class3 =
| prev =
| next =
}}