Difference between revisions of "Template:Infobox recurring sailing competition"

From blackwiki
Jump to navigation Jump to search
imported>Smartskaft
imported>Jay D. Easy
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
| subheader = {{#if: {{{current_edition|}}} | '''Current edition:'''<br />[[File:{{#switch: {{lc: {{{sport}}}}} | amfootball | american football | americanfootball = AmericanFootball | australian rules football | aussie rules | australian football = AFL | basketball = Basketball | baseball = Baseball | cricket = Cricket | cycling = Cycling | field hockey = Field hockey | Skating | figure Skating = Figure Skating | golf = Golf  | gymnastics = Gymnastics | handball = Handball | ice hockey | hockey = Hockey | motorsport | motorsports = Motorsport | netball = Netball | olympic | olympic games | olympics = Olympics | rugby league | rugby union | rugby sevens | rugby = Rugby football | boxing = Boxing | curling = Curling | swimming = Swimming | athletics = Athletics | lacrosse = Lacrosse | team tennis | tennis = Tennisball | beach volleyball | volleyball = Volleyball | squash = Squash | association football | soccer = Soccerball | table tennis | ping pong | ping-pong = TableTennis | poker | texas hold 'em | omaha hold 'em = Poker | Sports}} current event.svg|31px|link=|alt=]] ''{{#iferror:{{#expr:{{{current_edition}}}}}|[[{{{current_edition}}}]]|{{{current_edition}}}}}'' | {{#if: {{{last_edition|}}} | '''Most recent edition or competition:'''<br />''{{#iferror:{{#expr:{{{last_edition}}}}}|[[{{{last_edition}}}]]|{{{last_edition}}}}}'' | {{#if: {{{upcoming_edition|}}} | '''Upcoming edition or competition:'''<br />[[File:{{#switch: {{lc: {{{sport}}}}} | amfootball | american football | americanfootball = AmericanFootball | australian rules football | aussie rules | australian football = AFL | basketball = Basketball | baseball = Baseball | cricket = Cricket | cycling = Cycling | field hockey = Field hockey | Skating | figure Skating = Figure Skating | golf = Golf | gymnastics = Gymnastics | handball = Handball | ice hockey | hockey = Hockey | motorsport | motorsports = Motorsport | netball = Netball | olympic| olympic games | olympics = Olympics | rugby league | rugby union | rugby sevens | rugby = Rugby football | boxing = Boxing | curling = Curling | swimming = Swimming | athletics = Athletics | lacrosse = Lacrosse | tennis = Tennisball | beach volleyball | volleyball = Volleyball | squash = Squash | association football | soccer = Soccerball | table tennis | ping pong | ping-pong = TableTennis | poker | texas hold 'em | omaha hold 'em = Poker | team tennis = Tennisball | Sports}} current event.svg|31px|link=|alt=]] ''{{#iferror:{{#expr:{{{upcoming_edition}}}}}|[[{{{upcoming_edition}}}]]|{{{upcoming_edition}}}}}''}} }} }}{{#if: {{{current_edition2|}}} | <br/>''{{#iferror:{{#expr:{{{current_edition2}}}}}|[[{{{current_edition2}}}]]|{{{current_edition2}}}}}''}}
 
| subheader = {{#if: {{{current_edition|}}} | '''Current edition:'''<br />[[File:{{#switch: {{lc: {{{sport}}}}} | amfootball | american football | americanfootball = AmericanFootball | australian rules football | aussie rules | australian football = AFL | basketball = Basketball | baseball = Baseball | cricket = Cricket | cycling = Cycling | field hockey = Field hockey | Skating | figure Skating = Figure Skating | golf = Golf  | gymnastics = Gymnastics | handball = Handball | ice hockey | hockey = Hockey | motorsport | motorsports = Motorsport | netball = Netball | olympic | olympic games | olympics = Olympics | rugby league | rugby union | rugby sevens | rugby = Rugby football | boxing = Boxing | curling = Curling | swimming = Swimming | athletics = Athletics | lacrosse = Lacrosse | team tennis | tennis = Tennisball | beach volleyball | volleyball = Volleyball | squash = Squash | association football | soccer = Soccerball | table tennis | ping pong | ping-pong = TableTennis | poker | texas hold 'em | omaha hold 'em = Poker | Sports}} current event.svg|31px|link=|alt=]] ''{{#iferror:{{#expr:{{{current_edition}}}}}|[[{{{current_edition}}}]]|{{{current_edition}}}}}'' | {{#if: {{{last_edition|}}} | '''Most recent edition or competition:'''<br />''{{#iferror:{{#expr:{{{last_edition}}}}}|[[{{{last_edition}}}]]|{{{last_edition}}}}}'' | {{#if: {{{upcoming_edition|}}} | '''Upcoming edition or competition:'''<br />[[File:{{#switch: {{lc: {{{sport}}}}} | amfootball | american football | americanfootball = AmericanFootball | australian rules football | aussie rules | australian football = AFL | basketball = Basketball | baseball = Baseball | cricket = Cricket | cycling = Cycling | field hockey = Field hockey | Skating | figure Skating = Figure Skating | golf = Golf | gymnastics = Gymnastics | handball = Handball | ice hockey | hockey = Hockey | motorsport | motorsports = Motorsport | netball = Netball | olympic| olympic games | olympics = Olympics | rugby league | rugby union | rugby sevens | rugby = Rugby football | boxing = Boxing | curling = Curling | swimming = Swimming | athletics = Athletics | lacrosse = Lacrosse | tennis = Tennisball | beach volleyball | volleyball = Volleyball | squash = Squash | association football | soccer = Soccerball | table tennis | ping pong | ping-pong = TableTennis | poker | texas hold 'em | omaha hold 'em = Poker | team tennis = Tennisball | Sports}} current event.svg|31px|link=|alt=]] ''{{#iferror:{{#expr:{{{upcoming_edition}}}}}|[[{{{upcoming_edition}}}]]|{{{upcoming_edition}}}}}''}} }} }}{{#if: {{{current_edition2|}}} | <br/>''{{#iferror:{{#expr:{{{current_edition2}}}}}|[[{{{current_edition2}}}]]|{{{current_edition2}}}}}''}}
  
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|{{{logo|}}}}}} |size={{{image_size|{{{imagesize|{{{size|}}}}}}}}} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} }}
+
| image   = {{#invoke:InfoboxImage|InfoboxImage|suppressplaceholder=yes|sizedefault=frameless
| caption = {{{caption|}}}
+
| image   = {{{image|{{{logo|}}}}}}
 
+
| size   = {{{image size|{{{image_size|{{{imagesize|}}}}}}}}}
| headerstyle = border-top:#aaa 1px solid;
+
| upright = {{{image_upright|1}}}
 +
| alt    = {{{alt|}}}}}
 +
| caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
  
 
| label1 = Formerly
 
| label1 = Formerly
| data1 = {{{Formerly|{{{formerly|}}}}}}
+
| data1 = {{{Formerly|{{{formerly|}}}}}}
| label2 = Replaced by
+
| label2 = {{#if:{{{sponsors|}}}|Sponsors|Sponsor}}
| data2 = {{{Replaced|{{{replaced|}}}}}}
+
| data2 = {{if empty|{{{sponsors|}}}|{{{sponsor|}}}}}
| label3 = First held
+
| label3 = {{#if:{{{partners|}}}|Partners|Partner}}
| data3 = {{{founded|}}}{{{first|}}}
+
|  data3 = {{if empty|{{{partners|}}}|{{{partner|}}}}}
| label4 = Last held
+
| label4 = First&nbsp;held
| data4= {{{last|}}}{{{folded|}}}
+
| data4 = {{{founded|}}}{{{first|}}}
| label5 = Organizer
+
| label5 = Last&nbsp;held
| data5  = {{{organizer|}}}
+
| data5 = {{{last|}}}{{{folded|}}}
| label6 = Class(es)
+
| label6 = Replaced by
| data6  = {{{classes|}}}
+
| data6 = {{{Replaced|{{{replaced|}}}}}}
| label7 = Start
+
| label7 = {{#if:{{{organiser|}}}|Organiser|Organizer}}
| data7  = {{{start|}}}
+
| data7 = {{if empty|{{{organiser|}}}|{{{organizer|}}}}}
| label8  = Finish
+
| label8 = Type
| data8  = {{{finish|}}}
+
| data8 = {{{type|}}}
| label9  = Venue
+
| label9 = {{#if:{{{classes|}}}|Classes|Class}}
| data9  = {{{venue|}}}
+
| data9 = {{if empty|{{{classes|}}}|{{{class|}}}}}
| label0  = Type
+
| label10 = Yachts&nbsp;used
| data10 = {{{type|}}}
+
data10 = {{{yachts|}}}
| label11  = Length
+
| label11 = Start
| data11  = {{{length|}}}
+
| data11 = {{{start|}}}
| label12 = No. of competitors
+
| label12 = Finish
| data12 = {{{competitors|}}}
+
| data12 = {{{finish|}}}
| label13 = {{#if: {{{folded|}}} | Last | Most recent }} champion(s)
+
| label13 = Venue
| data13 = {{{champion|{{{champions|}}}}}}
+
| data13 = {{{venue|}}}
| label14 = Most titles
+
| label14 = Length
| data14 = {{{most_champs|{{{most successful club|}}}}}}
+
data14 = {{{length|}}}
| label15 = Qualification
+
| label15 = Competitors
| data15= {{{qualification|}}}
+
| data15 = {{{competitors|}}}
| label16= TV partner(s)
+
| label16 = Legs
| data16 = {{{TV|{{{tv|}}}}}}
+
| data16 = {{{legs|}}}
| label17 = Official website
+
| label17 = {{#if:{{{champions|}}}|Champions|Champion}}
| data17 = {{{website|}}}
+
| data17 = {{if empty|{{{champions|}}}|{{{champion|}}}}}
 +
| label18 = Most&nbsp;titles
 +
| data18 = {{{most_champs|{{{most successful club|}}}}}}
 +
| label19 = Qualification
 +
| data19 = {{{qualification|}}}
 +
| label20 = TV&nbsp;partner(s)
 +
| data20 = {{{TV|{{{tv|}}}}}}
 +
| label21 = Website
 +
|  data21 = {{{website|}}}
 +
|header22 = {{#if:{{{footnotes|}}}|<div style="text-align:center;font-weight:bold;">Notes</div>}}
 
| belowstyle = text-align:left;
 
| belowstyle = text-align:left;
| below =  
+
| below = {{{footnotes|}}}
{{#if:{{{footnotes|}}}|
 
<div style="text-align:center;background:#f5f5f5;font-weight:bold;">Notes</div>
 
}}
 
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 01:21, 10 February 2019

SponsorScript error: No such module "If empty".
PartnerScript error: No such module "If empty".
OrganizerScript error: No such module "If empty".
ClassScript error: No such module "If empty".
ChampionScript error: No such module "If empty".

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

Template documentation[view] [edit] [history] [purge]

{{Infobox recurring sailing competition}} can be used to provide at-a-glance information at the start of an article about a recurring sailing competition.

Blank template

  1. redirect Template:Parameter names example
{{Infobox recurring sailing competition
 |name          = 
 |image         = 
 |image_upright = 
 |alt           = 
 |caption       = 
 |formerly      = 
 |sponsors      = <!-- or |sponsor -->
 |partners      = <!-- or |partner -->
 |first         = <!-- use {{start date|YYYY|MM|DD|df=y}} -->
 |last          = 
 |replaced      = 
 |organizer     = <!-- or |organiser -->
 |type          = 
 |classes       = <!-- or |class -->
 |yachts        = 
 |start         = 
 |finish        = 
 |venue         = 
 |length        = 
 |competitors   = 
 |legs          = 
 |champions     = <!-- or |champion -->
 |most_champs   = 
 |qualification = 
 |website       = <!-- {{URL|example.com}} -->
 |footnotes     = 
}}