Difference between revisions of "Template:Infobox sports rivalry"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Frietjes (improve embedding) |
imported>Frietjes (add Category:Pages using infobox sports rivalry with conflicting parameters before fixing nesting syntax) |
||
Line 23: | Line 23: | ||
| data1 = {{{native name|{{{native_name|}}}}}} | | data1 = {{{native name|{{{native_name|}}}}}} | ||
| label2 = Other names | | label2 = Other names | ||
− | | data2 = {{{other names|}}} | + | | data2 = {{{other names|{{{other_names|}}}}}} |
| label3 = Sport | | label3 = Sport | ||
| data3 = {{{sport|}}} | | data3 = {{{sport|}}} | ||
Line 29: | Line 29: | ||
| data4 = {{{type|}}} | | data4 = {{{type|}}} | ||
| label5 = Locale | | label5 = Locale | ||
− | | data5 = {{{city or region|}}} | + | | 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|}}}}}}|{{{teams involved|{{{teams}}}}}}|{{#if:{{{team1logo|}}}||{{Unbulleted list|{{{team1|}}}|{{{team2|}}}|{{{team3|}}}|{{{team4|}}}}}}}}} | ||
Line 45: | Line 45: | ||
| data12 = {{{trophy|}}} | | data12 = {{{trophy|}}} | ||
− | | header13 = {{#if:{{{total|}}}{{{most wins|}}}{{{most player appearances|}}}{{{top scorer|}}}{{{alltimerecord|}}}{{{series|}}}{{{regularseason|}}}{{{postseason|}}}{{{largestvictory|}}}{{{largestscoring|}}}{{{longeststreak|}}}{{{longestunbeatenstreak|}}}{{{currentstreak|}}}{{{currentunbeatenstreak|}}}|{{#ifeq:{{{embed|}}}|yes||Statistics}}}} | + | | header13 = {{#if:{{{total|}}}{{{most wins|}}}{{{most_wins|}}}{{{most player appearances|}}}{{{most_player_appearances|}}}{{{top scorer|}}}{{{top_scorer|}}}{{{alltimerecord|}}}{{{series|}}}{{{regularseason|}}}{{{postseason|}}}{{{largestvictory|}}}{{{largestscoring|}}}{{{longeststreak|}}}{{{longestunbeatenstreak|}}}{{{currentstreak|}}}{{{currentunbeatenstreak|}}}|{{#ifeq:{{{embed|}}}|yes||Statistics}}}} |
| label14 = Meetings total | | label14 = Meetings total | ||
| data14 = {{{total|}}} | | data14 = {{{total|}}} | ||
| label15 = Most wins | | label15 = Most wins | ||
− | | data15 = {{{most wins|}}} | + | | data15 = {{{most wins|{{{most_wins|}}}}}} |
| label16 = Most player appearances | | label16 = Most player appearances | ||
− | | data16 = {{{most player appearances|}}} | + | | data16 = {{{most player appearances|{{{most_player_appearances|}}}}}} |
| label17 = Top scorer | | label17 = Top scorer | ||
− | | data17 = {{{top scorer|}}} | + | | data17 = {{{top scorer|{{{top_scorer|}}}}}} |
| label18 = All-time record | | label18 = All-time record | ||
| data18 = {{{alltimerecord|}}} | | data18 = {{{alltimerecord|}}} | ||
Line 61: | Line 61: | ||
| data20 = {{{regularseason|}}} | | data20 = {{{regularseason|}}} | ||
| label21 = Trophy series | | label21 = Trophy series | ||
− | | data21 = {{{trophy series|}}} | + | | data21 = {{{trophy series|{{{trophy_series|}}}}}} |
| label22 = Postseason results | | label22 = Postseason results | ||
| data22 = {{{postseason|}}} | | data22 = {{{postseason|}}} | ||
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 | coordinates | coordinates1 | coordinates2 | coordinates3 | coordinates4 | currentstreak | currentunbeatenstreak | embed | first contested | firstmeeting | image | image_size | image_upright | largestscoring | largestvictory | league | 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 | mostrecent | name | native name | native_name | nextmeeting | 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 | total | trophy | trophy series | type | wide }}<noinclude> | + | }}{{#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 |
+ | | nested = 1 | ||
+ | | template = Infobox example | ||
+ | | cat = Category:Pages using infobox sports rivalry with conflicting parameters | ||
+ | | name; title | ||
+ | | native name; native_name | ||
+ | | other names; other_names | ||
+ | | city or region; city_or_region; locale | ||
+ | | teams involved; teams | ||
+ | | first contested; firstmeeting | ||
+ | | coordinates1; coordinates | ||
+ | }}<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:19, 18 May 2020
[[Category:Infobox templates|Template:Remove first word]]
![]() | This template uses Lua: |
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
Other names | Friendly Derby, Liverpool Derby |
---|---|
Locale | Liverpool, England |
Teams | Everton, Liverpool |
First meeting | 13 October 1894 |
{{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
- Category:Pages using infobox sports rivalry with unknown parameters (0)
- Category:Pages using infobox sports rivalry with conflicting parameters (0)
The above documentation is transcluded from Template:Infobox sports rivalry/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |