Template:League-season-infobox
From SABR Encyclopedia
(Difference between revisions)
m (Removing poorly-placed <includeonly> tags) |
|||
(2 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
+ | <includeonly> | ||
{| class="infobox league-season-infobox" style="width: 25em; text-align: left; font-size: 90%;" align="right" | {| class="infobox league-season-infobox" style="width: 25em; text-align: left; font-size: 90%;" align="right" | ||
- | {{#if: {{{logo | + | {{#if: {{{logo|}}} | |
{{!}} colspan="2" style="text-align: center; border-top:solid 1px #ccd2d9; border-bottom:solid 1px #ccd2d9;" {{!}} [[Image:{{{logo}}}|{{{pixels|200px}}}|{{{caption|{{PAGENAME}}}}}]] | {{!}} colspan="2" style="text-align: center; border-top:solid 1px #ccd2d9; border-bottom:solid 1px #ccd2d9;" {{!}} [[Image:{{{logo}}}|{{{pixels|200px}}}|{{{caption|{{PAGENAME}}}}}]] | ||
}} | }} | ||
|- class="infobox-header" | |- class="infobox-header" | ||
- | ! colspan="2" | '''[[ | + | ! colspan="2" | '''[[{{{year}}}]] {{{name_full|}}}''' |
|- | |- | ||
! Classification: | ! Classification: | ||
Line 10: | Line 11: | ||
|- | |- | ||
! President: | ! President: | ||
- | + | | {{#ask: [[person-league-president::{{PAGENAME}}]] }} | |
|- | |- | ||
! Vice President: | ! Vice President: | ||
Line 21: | Line 22: | ||
| {{#ask: [[person-league-treasurer::{{PAGENAME}}]] }} | | {{#ask: [[person-league-treasurer::{{PAGENAME}}]] }} | ||
|- | |- | ||
- | |} | + | |}<!-- |
- | <!-- | + | -->{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | {{#if: {{{year|}}} | {{#set:league-season-year={{{year|}}}}} | }} }}<!-- |
- | {{#if: {{{ | + | -->{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | {{#if: {{{name_full|}}} | {{#set:league-season-name-full={{{name_full|}}}}} | }} }}<!-- |
+ | -->{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | {{#if: {{{name_short|}}} | {{#set:league-season-name-short={{{name_short|}}}}} | }} }}<!-- | ||
+ | --></includeonly><noinclude>{{League-season-infobox/doc}}</noinclude> |
Latest revision as of 21:39, 24 March 2010
This template displays an infobox with basic information about a given season of a league. This template is typically used and populated by automated tools, and will rarely need to be used or edited manually by users.
The following parameters are required:
- year: The year in which the league operated. For winter or Southern Hemisphere leagues with seasons which cross the new year, the year is the year in which the season opened.
- name_full: The full name of the league. This will almost always match the page name.
The following parameters are optional:
- classification: For professional leagues in the National Agreement/Minor League Baseball, the classification to which the league was assigned. Independent may be specified for professional leagues not operating under the NA/MiLB.
The template queries the semantic properties Property:person-league-president, Property:person-league-vicepresident, Property:person-league-secretary, and Person-league-treasurer to display links to the pages for league officers, if present. See Template:person-league-executive for a career entry template to indicate a person's service in one of these roles.