Difference between revisions of "Template:MLB standings"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
(add parameter passed by template to module containing the name of the page using the template) |
Aeverinezinn (talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{# | + | {{navbar|{{{year|}}} {{{division|}}} standings|mini=1}} |
− | {{documentation}} | + | {| class="wikitable" width="60%" style="text-align:center;" |
+ | ! width="38%" | {{{division|}}} | ||
+ | ! width="7%" | [[Win (baseball)|W]] | ||
+ | ! width="7%" | [[Loss (baseball)|L]] | ||
+ | ! width="9%" | [[Winning percentage|Pct.]] | ||
+ | ! width="7%" | [[Games behind|GB]] | ||
+ | ! width="9%" | [[Home (sports)|Home]] | ||
+ | ! width="9%" | [[Road (sports)|Road]] | ||
+ | |- | ||
+ | | [[{{{year|}}} {{{team1|}}} season|{{{team1|}}}]] || {{{W1|}}} || {{{L1|}}} || {{Winning percentage|{{{W1}}}|{{{L1}}}|}}} || {{{GB1|}}} || {{{Home1|}}} || {{{Road1|}}} | ||
+ | |- | ||
+ | | [[{{{year|}}} {{{team2|}}} season|{{{team2|}}}]] || {{{W2|}}} || {{{L2|}}} || {{Winning percentage|{{{W2}}}|{{{L2}}}|}}} || {{{GB2|}}} || {{{Home2|}}} || {{{Road2|}}} | ||
+ | |- | ||
+ | | [[{{{year|}}} {{{team3|}}} season|{{{team3|}}}]] || {{{W3|}}} || {{{L3|}}} || {{Winning percentage|{{{W3}}}|{{{L3}}}|}}} || {{{GB3|}}} || {{{Home3|}}} || {{{Road3|}}} | ||
+ | |- | ||
+ | | [[{{{year|}}} {{{team4|}}} season|{{{team4|}}}]] || {{{W4|}}} || {{{L4|}}} || {{Winning percentage|{{{W4}}}|{{{L4}}}|}}} || {{{GB4|}}} || {{{Home4|}}} || {{{Road4|}}} | ||
+ | |- {{#if: {{{team5|}}} | ||
+ | | [[{{{year|}}} {{{team5|}}} season|{{{team5|}}}]] || {{{W5|}}} || {{{L5|}}} || {{Winning percentage|{{{W5}}}|{{{L5}}}|}}} || {{{GB5|}}} || {{{Home5|}}} || {{{Road5|}}} }} | ||
+ | |- {{#if: {{{team6|}}} | ||
+ | | [[{{{year|}}} {{{team6|}}} season|{{{team6|}}}]] || {{{W6|}}} || {{{L6|}}} || {{Winning percentage|{{{W6}}}|{{{L6}}}|}}} || {{{GB6|}}} || {{{Home6|}}} || {{{Road6|}}} }} | ||
+ | |- {{#if: {{{team7|}}} | ||
+ | | [[{{{year|}}} {{{team7|}}} season|{{{team7|}}}]] || {{{W7|}}} || {{{L7|}}} || {{Winning percentage|{{{W7}}}|{{{L7}}}|}}} || {{{GB7|}}} || {{{Home7|}}} || {{{Road7|}}} }} | ||
+ | |- {{#if: {{{team8|}}} | ||
+ | | [[{{{year|}}} {{{team8|}}} season|{{{team8|}}}]] || {{{W8|}}} || {{{L8|}}} || {{Winning percentage|{{{W8}}}|{{{L8}}}|}}} || {{{GB8|}}} || {{{Home8|}}} || {{{Road8|}}} }} | ||
+ | |- {{#if: {{{team9|}}} | ||
+ | | [[{{{year|}}} {{{team9|}}} season|{{{team9|}}}]] || {{{W9|}}} || {{{L9|}}} || {{Winning percentage|{{{W9}}}|{{{L9}}}}|}} || {{{GB9|}}} || {{{Home9|}}} || {{{Road9|}}} }} | ||
+ | |- {{#if: {{{team10|}}} | ||
+ | | [[{{{year|}}} {{{team10|}}} season|{{{team10|}}}]] || {{{W10|}}} || {{{L10|}}} || {{Winning percentage|{{{W10}}}|{{{L10}}}|}}} || {{{GB10|}}} || {{{Home10|}}} || {{{Road10|}}} }} | ||
+ | |- {{#if: {{{team11|}}} | ||
+ | | [[{{{year|}}} {{{team11|}}} season|{{{team11|}}}]] || {{{W11|}}} || {{{L11|}}} || {{Winning percentage|{{{W11}}}|{{{L11}}}|}}} || {{{GB11|}}} || {{{Home11|}}} || {{{Road11|}}} }} | ||
+ | |- {{#if: {{{team12|}}} | ||
+ | | [[{{{year|}}} {{{team12|}}} season|{{{team12|}}}]] || {{{W12|}}} || {{{L12|}}} || {{Winning percentage|{{{W12}}}|{{{L12}}}|}}} || {{{GB12|}}} || {{{Home12|}}} || {{{Road12|}}} }} | ||
+ | |- {{#if: {{{team13|}}} | ||
+ | | [[{{{year|}}} {{{team13|}}} season|{{{team13|}}}]] || {{{W13|}}} || {{{L13|}}} || {{Winning percentage|{{{W13}}}|{{{L13}}}|}}} || {{{GB13|}}} || {{{Home13|}}} || {{{Road13|}}} }} | ||
+ | |- {{#if: {{{team14|}}} | ||
+ | | [[{{{year|}}} {{{team14|}}} season|{{{team14|}}}]] || {{{W14|}}} || {{{L14|}}} || {{Winning percentage|{{{W14}}}|{{{L14}}}|}}} || {{{GB14|}}} || {{{Home14|}}} || {{{Road14|}}} }} | ||
+ | |- {{#if: {{{team15|}}} | ||
+ | | [[{{{year|}}} {{{team15|}}} season|{{{team15|}}}]] || {{{W15|}}} || {{{L15|}}} || {{Winning percentage|{{{W15}}}|{{{L15}}}|}}} || {{{GB15|}}} || {{{Home15|}}} || {{{Road15|}}} }} | ||
+ | |- {{#if: {{{team16|}}} | ||
+ | | [[{{{year|}}} {{{team16|}}} season|{{{team16|}}}]] || {{{W16|}}} || {{{L16|}}} || {{Winning percentage|{{{W16}}}|{{{L16}}}|}}} || {{{GB16|}}} || {{{Home16|}}} || {{{Road16|}}} }} | ||
+ | |} | ||
+ | <noinclude>{{documentation}} | ||
+ | [[Category:Baseball standings templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 08:31, 8 March 2016
W | L | Pct. | GB | Home | Road | |
---|---|---|---|---|---|---|
[[season|]] | Expression error: Unrecognized punctuation character "{".} | |||||
[[season|]] | Expression error: Unrecognized punctuation character "{".} | |||||
[[season|]] | Expression error: Unrecognized punctuation character "{".} | |||||
[[season|]] | Expression error: Unrecognized punctuation character "{".} |
Usage[edit]
{{MLB standings |division=American League East |year=2012 |team1=New York Yankees |W1=95 |L1=67 |GB1=— |Home1=51–30 |Road1=44–37 |team2=Baltimore Orioles |W2=93 |L2=69 |GB2=2 |Home2=47–34 |Road2=46–35 |team3=Tampa Bay Rays |W3=90 |L3=72 |GB3=5 |Home3=46–35 |Road3=44–37 |team4=Toronto Blue Jays |W4=73 |L4=89 |GB4=22 |Home4=41–40 |Road4=32–49 |team5=Boston Red Sox |W5=69 |L5=93 |GB5=26 |Home5=34–47 |Road5=35–46 }}
This can produce...
American League East | W | L | Pct. | GB | Home | Road |
---|---|---|---|---|---|---|
New York Yankees | 95 | 67 | Expression error: Unrecognized punctuation character "{".} | — | 51–30 | 44–37 |
Baltimore Orioles | 93 | 69 | Expression error: Unrecognized punctuation character "{".} | 2 | 47–34 | 46–35 |
Tampa Bay Rays | 90 | 72 | Expression error: Unrecognized punctuation character "{".} | 5 | 46–35 | 44–37 |
Toronto Blue Jays | 73 | 89 | Expression error: Unrecognized punctuation character "{".} | 22 | 41–40 | 32–49 |
The template can produce standings with up to 16 teams.
The above documentation is transcluded from Template:MLB standings/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |