Difference between revisions of "Template:Infobox sports rivalry/sandbox"
Jump to navigation
Jump to search
imported>Frietjes m |
imported>Frietjes |
||
| Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| + | | child = {{#ifeq:{{{embed|}}}|yes|yes}} | ||
| bodystyle = {{#if:{{{wide|}}}|width: 26em;}} | | bodystyle = {{#if:{{{wide|}}}|width: 26em;}} | ||
| − | | title = {{ | + | | title = {{if empty|{{{name|}}}|{{{title|}}}}}|{{#ifeq:{{{embed|}}}|yes||{{PAGENAMEBASE}}}} |
| − | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{logo| | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{if empty|{{{image|}}}|{{{logo|}}}}}|size={{{image_size|}}}|upright={{if empty|{{{image_upright|}}}|1}}|alt={{{alt|}}}}} |
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| Line 20: | Line 21: | ||
| label1 = Native name | | label1 = Native name | ||
| − | | data1 = {{{native name|{{{native_name| | + | | data1 = {{if empty|{{{native name|}}}|{{{native_name|}}}}} |
| label2 = Other names | | label2 = Other names | ||
| − | | data2 = {{{other names|}}} | + | | data2 = {{if empty|{{{other names|}}}|{{{other_names|}}}}} |
| label3 = Sport | | label3 = Sport | ||
| data3 = {{{sport|}}} | | data3 = {{{sport|}}} | ||
| Line 28: | Line 29: | ||
| data4 = {{{type|}}} | | data4 = {{{type|}}} | ||
| label5 = Locale | | label5 = Locale | ||
| − | | data5 = {{{city or region|}}} | + | | data5 = {{if empty|{{{city or region|}}}|{{{city_or_region|}}}|{{{locale|}}}}} |
| label6 = Teams | | label6 = Teams | ||
| − | | data6 = {{ | + | | data6 = {{if empty|{{{teams involved|}}}|{{{teams_involved|}}}|{{{teams|}}}|{{#if:{{{team1logo|}}}||{{Unbulleted list|{{{team1|}}}|{{{team2|}}}|{{{team3|}}}|{{{team4|}}}}}}}}} |
| label7 = First meeting | | label7 = First meeting | ||
| − | | data7 = {{{first contested|{{{firstmeeting| | + | | data7 = {{if empty|{{{first contested|}}}|{{{first_contested|}}}|{{{firstmeeting|}}}}} |
| label8 = Latest meeting | | label8 = Latest meeting | ||
| data8 = {{{mostrecent|}}} | | data8 = {{{mostrecent|}}} | ||
| Line 44: | 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|}}}|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 = {{if empty|{{{most wins|}}}|{{{most_wins|}}}}} |
| label16 = Most player appearances | | label16 = Most player appearances | ||
| − | | data16 = {{{most player appearances|}}} | + | | data16 = {{if empty|{{{most player appearances|}}}|{{{most_player_appearances|}}}}} |
| label17 = Top scorer | | label17 = Top scorer | ||
| − | | data17 = {{{top scorer|}}} | + | | data17 = {{if empty|{{{top scorer|}}}|{{{top_scorer|}}}}} |
| label18 = All-time record | | label18 = All-time record | ||
| data18 = {{{alltimerecord|}}} | | data18 = {{{alltimerecord|}}} | ||
| Line 60: | Line 61: | ||
| data20 = {{{regularseason|}}} | | data20 = {{{regularseason|}}} | ||
| label21 = Trophy series | | label21 = Trophy series | ||
| − | | data21 = {{{trophy series|}}} | + | | data21 = {{if empty|{{{trophy series|}}}|{{{trophy_series|}}}}} |
| label22 = Postseason results | | label22 = Postseason results | ||
| data22 = {{{postseason|}}} | | data22 = {{{postseason|}}} | ||
| Line 78: | Line 79: | ||
| data29 = {{{currentunbeatenstreak|}}} | | data29 = {{{currentunbeatenstreak|}}} | ||
| − | | header30 = {{#if:{{{section_info|}}}|{{ | + | | header30 = {{#if:{{{section_info|}}}|{{if empty|{{{section_header|}}}|<nowiki />}}}} |
| data31 = {{{section_info|}}} | | data31 = {{{section_info|}}} | ||
| Line 90: | Line 91: | ||
| relief = {{{map_relief|}}} | | relief = {{{map_relief|}}} | ||
| − | | label1 = {{ | + | | label1 = {{if empty|{{{map_label1|}}}|{{{team1|}}}}} |
| position1 = {{{map_label1_position|}}} | | position1 = {{{map_label1_position|}}} | ||
| mark1 = {{{map_mark1|}}} | | mark1 = {{{map_mark1|}}} | ||
| coordinates1 = {{if empty|{{{coordinates1|}}}|{{{coordinates|}}}}} | | coordinates1 = {{if empty|{{{coordinates1|}}}|{{{coordinates|}}}}} | ||
| − | | label2 = {{ | + | | label2 = {{if empty|{{{map_label2|}}}|{{{team2|}}}}} |
| position2 = {{{map_label2_position|}}} | | position2 = {{{map_label2_position|}}} | ||
| mark2 = {{{map_mark2|}}} | | mark2 = {{{map_mark2|}}} | ||
| coordinates2 = {{{coordinates2|}}} | | coordinates2 = {{{coordinates2|}}} | ||
| − | | label3 = {{ | + | | label3 = {{if empty|{{{map_label3|}}}|{{{team3|}}}}} |
| position3 = {{{map_label3_position|}}} | | position3 = {{{map_label3_position|}}} | ||
| mark3 = {{{map_mark3|}}} | | mark3 = {{{map_mark3|}}} | ||
| coordinates3 = {{{coordinates3|}}} | | coordinates3 = {{{coordinates3|}}} | ||
| − | | label4 = {{ | + | | label4 = {{if empty|{{{map_label4|}}}|{{{team4|}}}}} |
| position4 = {{{map_label4_position|}}} | | position4 = {{{map_label4_position|}}} | ||
| mark4 = {{{map_mark4|}}} | | mark4 = {{{map_mark4|}}} | ||
| 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 | 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 | 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 |
| − | {{ | + | | 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_involved; teams | ||
| + | | first contested; first_contested; firstmeeting | ||
| + | | coordinates1; coordinates | ||
| + | }}<noinclude> | ||
| + | {{documentation}}<!-- Add cats to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:28, 18 May 2020
| Script error: No such module "If empty". | |
| Native name | Script error: No such module "If empty". |
|---|---|
| Other names | Script error: No such module "If empty". |
| Locale | Script error: No such module "If empty". |
| Teams | Script error: No such module "If empty". |
| First meeting | Script error: No such module "If empty". |
| Most wins | Script error: No such module "If empty". |
| Most player appearances | Script error: No such module "If empty". |
| Top scorer | Script error: No such module "If empty". |
| Trophy series | Script error: No such module "If empty". |
| This is the template sandbox page for Template:Infobox sports rivalry (diff). See also the companion subpage for test cases. |
| 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
| Script error: No such module "If empty". | |
| Native name | Script error: No such module "If empty". |
|---|---|
| Other names | Script error: No such module "If empty". |
| Locale | Script error: No such module "If empty". |
| Teams | Script error: No such module "If empty". |
| First meeting | Script error: No such module "If empty". |
| Most wins | Script error: No such module "If empty". |
| Most player appearances | Script error: No such module "If empty". |
| Top scorer | Script error: No such module "If empty". |
| Trophy series | Script error: No such module "If empty". |
{{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. |