Template:League-season-infobox

From SABR Encyclopedia

(Difference between revisions)
Jump to: navigation, search
m (Removing poorly-placed <includeonly> tags)
 
(12 intermediate revisions not shown)
Line 1: Line 1:
-
{| class="ext-infobox" style="width: 25em; text-align: left; font-size: 90%;" align="right"
+
<includeonly>
 +
{| class="infobox league-season-infobox" style="width: 25em; text-align: left; font-size: 90%;" align="right"
 +
{{#if: {{{logo|}}} |
 +
{{!}} 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" | '''[[league-season::{{{year}}}]] [[league-name::{{{name}}}]]'''
+
! colspan="2" | '''[[{{{year}}}]] {{{name_full|}}}'''
|-
|-
! Classification:
! Classification:
-
| {{{class}}}
+
| {{{classification|}}}
 +
|-
 +
! President:
 +
| {{#ask: [[person-league-president::{{PAGENAME}}]] }}
 +
|-
 +
! Vice President:
 +
| {{#ask: [[person-league-vicepresident::{{PAGENAME}}]] }}
|-
|-
! Secretary:
! Secretary:
-
| {{#ask: [[person-Secretary-league::{{PAGENAME}}]] }}
+
| {{#ask: [[person-league-secretary::{{PAGENAME}}]] }}
 +
|-
 +
! Treasurer:
 +
| {{#ask: [[person-league-treasurer::{{PAGENAME}}]] }}
|-
|-
-
{{#if: {{{kjokID|}}} | ! ID:  
+
|}<!--
-
{{!}} [[league-kjokID::{{{kjokID}}}]]
+
-->{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | {{#if: {{{year|}}} | {{#set:league-season-year={{{year|}}}}} | }} }}<!--
-
{{!}}- | }}
+
-->{{#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.

Personal tools