Difference between revisions of "Template:Infobox sports rivalry/sandbox"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Frietjes |
||
| Line 8: | Line 8: | ||
| image2 = {{#if:{{{team1logo|}}}{{{team2logo|}}}{{{team3logo|}}}{{{team4logo|}}}|<div style="border-bottom: 1px solid #aaa; padding-bottom: 3px; font-weight: bold;">{{multiple image | | image2 = {{#if:{{{team1logo|}}}{{{team2logo|}}}{{{team3logo|}}}{{{team4logo|}}}|<div style="border-bottom: 1px solid #aaa; padding-bottom: 3px; font-weight: bold;">{{multiple image | ||
| − | | align = center | + | | align = center |
| − | | | + | | total_width = {{#expr:120*({{#if:{{{team1logo|}}}|1|0}}+{{#if:{{{team2logo|}}}|1|0}})}} |
| background color = transparent; border:none | | background color = transparent; border:none | ||
| image_style = border:none; background:transparent | | image_style = border:none; background:transparent | ||
| Line 16: | Line 16: | ||
| image1 = {{{team1logo|}}} | caption1 = {{{team1|}}} | | image1 = {{{team1logo|}}} | caption1 = {{{team1|}}} | ||
| image2 = {{{team2logo|}}} | caption2 = {{{team2|}}} | | image2 = {{{team2logo|}}} | caption2 = {{{team2|}}} | ||
| + | }}{{#if:{{{team3logo|}}}{{{team4logo|}}}|{{multiple image | ||
| + | | align = center | ||
| + | | total_width = {{#expr:120*({{#if:{{{team3logo|}}}|1|0}}+{{#if:{{{team4logo|}}}|1|0}})}} | ||
| + | | background color = transparent; border:none | ||
| + | | image_style = border:none; background:transparent | ||
| + | | caption_align = center; | ||
| + | |||
| image3 = {{{team3logo|}}} | caption3 = {{{team3|}}} | | image3 = {{{team3logo|}}} | caption3 = {{{team3|}}} | ||
| image4 = {{{team4logo|}}} | caption4 = {{{team4|}}} | | image4 = {{{team4logo|}}} | caption4 = {{{team4|}}} | ||
| − | }}</div>}} | + | }}}}</div>}} |
| headerstyle = border-top: #aaa 1px solid; | | headerstyle = border-top: #aaa 1px solid; | ||
Revision as of 16:18, 12 February 2018
| 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. |