Difference between revisions of "Template:Infobox sports rivalry"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 31: Line 31:
 
|  data5      = {{{city or region|{{{city_or_region|{{{locale|}}}}}}}}}
 
|  data5      = {{{city or region|{{{city_or_region|{{{locale|}}}}}}}}}
 
| label6      = Teams
 
| label6      = Teams
|  data6      = {{#if:{{{teams involved|{{{teams|}}}}}}|{{{teams involved|{{{teams}}}}}}|{{#if:{{{team1logo|}}}||{{Unbulleted list|{{{team1|}}}|{{{team2|}}}|{{{team3|}}}|{{{team4|}}}}}}}}}
+
|  data6      = {{#if:{{{teams_involved|{{{teams involved|{{{teams|}}}}}}}}}|{{{teams_involved|{{{teams involved|{{{teams|}}}}}}}}}|{{#if:{{{team1logo|}}}||{{Unbulleted list|{{{team1|}}}|{{{team2|}}}|{{{team3|}}}|{{{team4|}}}}}}}}}
 
| label7      = First meeting
 
| label7      = First meeting
|  data7      = {{{first contested|{{{firstmeeting|}}}}}}
+
|  data7      = {{{first contested|{{{first_contested|{{{firstmeeting|}}}}}}}}}
 
| label8      = Latest meeting
 
| label8      = Latest meeting
 
|  data8      = {{{mostrecent|}}}
 
|  data8      = {{{mostrecent|}}}
Line 111: Line 111:
 
  | coordinates4 = {{{coordinates4|}}}
 
  | coordinates4 = {{{coordinates4|}}}
 
  }}}}
 
  }}}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox sports rivalry with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox sports rivalry]] with unknown parameter "_VALUE_"|ignoreblank=y| alltimerecord | alt | broadcasters | caption | city or region | city_or_region | coordinates | coordinates1 | coordinates2 | coordinates3 | coordinates4 | currentstreak | currentunbeatenstreak | embed | first contested | firstmeeting | image | image_size | image_upright | largestscoring | largestvictory | league | locale | logo | longeststreak | longestunbeatenstreak | map_alt | map_caption | map_label1 | map_label1_position | map_label2 | map_label2_position | map_label3 | map_label3_position | map_label4 | map_label4_position | map_location | map_mark1 | map_mark2 | map_mark3 | map_mark4 | map_relief | map_width | most player appearances | most wins | most_player_appearances | most_wins | mostrecent | name | native name | native_name | nextmeeting | other names | other_names | postseason | regularseason | section_header | section_info | series | smallestvictory | sport | stadiums | team1 | team1logo | team2 | team2logo | team3 | team3logo | team4 | team4logo | teams | teams involved | title | top scorer | top_scorer | total | trophy | trophy series | trophy_series | type | wide }}{{#invoke:Check for clobbered parameters|check
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox sports rivalry with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox sports rivalry]] with unknown parameter "_VALUE_"|ignoreblank=y| alltimerecord | alt | broadcasters | caption | city or region | city_or_region | coordinates | coordinates1 | coordinates2 | coordinates3 | coordinates4 | currentstreak | currentunbeatenstreak | embed | first contested | first_contested | firstmeeting | image | image_size | image_upright | largestscoring | largestvictory | league | locale | logo | longeststreak | longestunbeatenstreak | map_alt | map_caption | map_label1 | map_label1_position | map_label2 | map_label2_position | map_label3 | map_label3_position | map_label4 | map_label4_position | map_location | map_mark1 | map_mark2 | map_mark3 | map_mark4 | map_relief | map_width | most player appearances | most wins | most_player_appearances | most_wins | mostrecent | name | native name | native_name | nextmeeting | other names | other_names | postseason | regularseason | section_header | section_info | series | smallestvictory | sport | stadiums | team1 | team1logo | team2 | team2logo | team3 | team3logo | team4 | team4logo | teams | teams involved | teams_involved | title | top scorer | top_scorer | total | trophy | trophy series | trophy_series | type | wide }}{{#invoke:Check for clobbered parameters|check
 
| nested = 1
 
| nested = 1
 
| template = Infobox example
 
| template = Infobox example
Line 119: Line 119:
 
| other names; other_names
 
| other names; other_names
 
| city or region; city_or_region; locale
 
| city or region; city_or_region; locale
| teams involved; teams
+
| teams involved; teams_involved; teams
| first contested; firstmeeting
+
| first contested; first_contested; firstmeeting
 
| coordinates1; coordinates
 
| coordinates1; coordinates
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}<!-- Add cats to the /doc subpage, not here! -->
 
{{documentation}}<!-- Add cats to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 15:30, 18 May 2020

Script error: No such module "If empty".

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

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

Template:Parameter names example This template can be used to provide at-a-glance comparative information on articles describing local derby contests. This is designed to give an overview of the derby, not for individual matches.

Usage

All attributes are optional.

{{Infobox sports rivalry
| wide                    = 
| name                    = <!-- Name or reference to derby or rivalry -->
| image                   = <!-- Image filename -->
| image_size              = 
| alt                     = 
| caption                 = <!-- Caption for the image -->
| team1logo               = 
| team2logo               = 
| team3logo               = 
| team4logo               = 
| team1                   = 
| team2                   = 
| team3                   = 
| team4                   = 
| native_name             = 
| other_names             = <!-- Other names or references to derby or rivalry -->
| sport                   = 
| type                    = 
| city_or_region          = <!-- City or region where derby or rivalry is contested -->
| teams                   = 
| firstmeeting            = <!-- The year or date it was first contested -->
| mostrecent              = 
| nextmeeting             = 
| broadcasters            = 
| stadiums                = 
| trophy                  = 
| total                   = 
| most_wins               = <!-- The team with most derby or rivalry wins so far -->
| most_player_appearances = <!-- The player(s) with most derby or rivalry appearances -->
| top_scorer              = 
| alltimerecord           = 
| series                  = 
| regularseason           = 
| postseason              = 
| largestvictory          = 
| largestscoring          = 
| longeststreak           = 
| longestunbeatenstreak   = 
| currentstreak           = 
| currentunbeatenstreak   = 
| league                  = 
| trophy_series           = 
| smallestvictory         = 
| section_info            = 
| section_header          = 
| map_location            = <!-- The name of a location map as per [[Template:Location map#Available maps]] -->
| map_width               = 
| map_caption             = 
| map_alt                 = 
| map_relief              = 
<!------------------------- TEAM 1 -->
| map_label1              = <!-- If different from |team1 = -->
| map_label1_position     = 
| map_mark1               = 
| coordinates1            = 
<!------------------------- TEAM 2 -->
| map_label2              = <!-- If different from |team2 = -->
| map_label2_position     = 
| map_mark2               = 
| coordinates2            = 
<!------------------------- TEAM 3 -->
| map_label3              = <!-- If different from |team3 = -->
| map_label3_position     = 
| map_mark3               = 
| coordinates3            = 
<!------------------------- TEAM 4 -->
| map_label4              = <!-- If different from |team4 = -->
| map_label4_position     = 
| map_mark4               = 
| coordinates4            =
}}

Example

Script error: No such module "If empty".
Other namesFriendly Derby, Liverpool Derby
LocaleLiverpool, England
TeamsEverton, Liverpool
First meeting13 October 1894
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox sports rivalry
| name                     = Merseyside Derby
| other_names              = Friendly Derby, Liverpool Derby
| image                    = 
| caption                  = 
| city_or_region           = [[Liverpool, England]]
| firstmeeting             = 13 October 1894
| teams                    = [[Everton F.C.|Everton]], [[Liverpool F.C.|Liverpool]]
| most_wins                = 
| most_player_appearances  = 
}}

Tracking category