Template:Person-infobox

From SABR Encyclopedia

(Difference between revisions)
Jump to: navigation, search
(remove edit link from person pages)
 
(18 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>{{#ifeq: {{#ask: [[page-indexterm::{{#if: {{{nameFirst|}}}{{{name_first|}}} | {{{nameFirst|}}}{{{name_first|}}} | Unknown}} {{{nameLast|}}}{{{name_last|}}}]] | format=count}} | 1 | | :''See [[Special:Index/{{#if: {{{nameFirst|}}}{{{name_first|}}} | {{{nameFirst|}}}{{{name_first|}}} | Unknown}}_{{{nameLast|}}}{{{name_last|}}}|{{#if: {{{nameFirst|}}}{{{name_first|}}} | {{{nameFirst|}}}{{{name_first|}}} | Unknown}} {{{nameLast|}}}{{{name_last|}}}]] in the index for other people with this or a similar name.'' }}
+
<includeonly>{{#ifeq: {{#ask: [[page-indexterm::{{lc:{{#if: {{{name_first|}}} | {{{name_first|}}} | Unknown}} {{{name_last|}}}}}]] | format=count}} | 1 | | :''See [[Special:Index/{{#if: {{{name_first|}}} | {{{name_first|}}} | Unknown}}_{{{name_last|}}}|{{#if: {{{name_first|}}} | {{{name_first|}}} | Unknown}} {{{name_last|}}}]] in the index for other people with this or a similar name.'' }}
{| class="infobox person-infobox" style="width: 25em; text-align: left; font-size: 90%; float:right; clear:right;"
{| class="infobox person-infobox" style="width: 25em; text-align: left; font-size: 90%; float:right; clear:right;"
{{!}}- class="infobox-header"
{{!}}- class="infobox-header"
{{!}} colspan="2" class="infobox-name-cell" {{!}} '''{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} |  
{{!}} colspan="2" class="infobox-name-cell" {{!}} '''{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} |  
-
{{#if: {{{nameFirst|}}}{{{name_first|}}} | [[person-name-first::{{{nameFirst|}}}{{{name_first|}}}]] | [[person-name-first::Unknown]] }} [[person-name-last::{{{nameLast|}}}{{{name_last|}}}]]
+
{{#if: {{{name_first|}}} | {{{name_first|}}} | Unknown }} {{{name_last|}}}  
-
| {{{nameFirst|}}}{{{name_first|}}} {{{nameLast|}}}{{{name_last|}}}  
+
| {{{name_first|}}} {{{name_last|}}} }}'''
-
}}''' {{#ifeq: {{{is_biocomm|N}}} | Y | | [{{fullurl:{{PAGENAME}}/infobox|action=edit}}<span title="Edit infobox" font="-2" style="{{{fontstyle|}}};">edit</span>] }}
+
{{!}}-  
{{!}}-  
-
{{!}} colspan="2" class="infobox-name-cell" | {{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | {{#if: {{{nameGiven|}}}{{{name_given|}}} | '''[[person-name-given::{{{nameGiven|}}}{{{name_given|}}}]] {{#if: {{{nameNick|}}}{{{name_nick|}}} | ({{{nameNick|}}}{{{name_nick|}}}) | }} }}''' | {{{nameGiven|}}}{{{name_given|}}} ({{{nameNick|}}}{{{name_nick|}}})}}
+
{{#ifeq: {{#if: {{{name_first|}}} | {{{name_first|}}} | Unknown }} {{{name_last|}}} | {{{name_given|}}} {{{name_last|}}} {{{name_matrilineal|}}} {{{name_suffix|}}} | | {{!}} colspan="2" class="infobox-name-cell" {{!}} '''{{{name_given|}}} {{{name_last|}}} {{{name_matrilineal|}}} {{{name_suffix|}}}'''
 +
{{!}}- }}
 +
{{#if: {{{name_nick|}}} | {{!}} colspan="2" class="infobox-name-cell" {{!}} '''"{{{name_nick|}}}"'''
 +
{{!}}- | }}
{{#if: {{#show: {{PAGENAME}} | ?person-infobox-image}} |  
{{#if: {{#show: {{PAGENAME}} | ?person-infobox-image}} |  
-
{{!}}-
+
{{!}} colspan=2 {{!}} [[{{#sabr-prefix-ns:{{#show: {{PAGENAME}} | ?person-infobox-image}}}}|border|center|240px]]
-
{{!}} colspan=2 {{!}} [[{{#show: {{PAGENAME}} | ?person-infobox-image}}|border|center|240px]]| }}
+
{{!}}- | }}
-
{{!}}-
+
{{#if: {{{bats|}}}{{{throws|}}} | ! Bat/Throw:  
-
! Bat/Throw:  
+
{{!}} {{#if: {{{bats|}}} | {{{bats}}} | ? }}/{{#if: {{{throws|}}} | {{{throws}}} | ? }}
{{!}} {{#if: {{{bats|}}} | {{{bats}}} | ? }}/{{#if: {{{throws|}}} | {{{throws}}} | ? }}
-
{{!}}-
+
{{!}}- | }}
{{#if: {{{height|}}} | ! Height:  
{{#if: {{{height|}}} | ! Height:  
{{!}} {{height-ft-in | {{{height}}} }}
{{!}} {{height-ft-in | {{{height}}} }}
Line 21: Line 22:
{{!}} {{{weight}}}
{{!}} {{{weight}}}
{{!}}- | }}
{{!}}- | }}
-
{{#if: {{{birthYear|}}}{{{birth_year|}}} {{{birthMonth|}}}{{{birth_month|}}} {{{birthDay|}}}{{{birth_day|}}} {{{birthCity|}}}{{{birth_city|}}} {{{birthState|}}}{{{birth_state|}}} {{{birthCountry|}}}{{{birth_country|}}} | ! Born:  
+
{{#if: {{{birth_year|}}} {{{birth_month|}}} {{{birth_day|}}} {{{birth_city|}}} {{{birth_state|}}} {{{birth_country|}}} | ! Born:  
-
{{!}} {{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | {{#if: {{{birthYear|}}}{{{birth_year|}}} | [[person-birth-year::{{{birthYear|}}}{{{birth_year|}}}]] | ?}}-{{#if: {{{birthMonth|}}}{{{birth_month|}}} | [[person-birth-month::{{{birthMonth|}}}{{{birth_month|}}}]] | ?}}-{{#if: {{{birthDay|}}}{{{birth_day|}}} | [[person-birth-day::{{{birthDay|}}}{{{birth_day|}}}]] | ?}} at {{#if: {{{birthCity|}}}{{{birth_city|}}} | {{{birthCity|}}}{{{birth_city|}}} | }}{{#if: {{{birthState|}}}{{{birth_state|}}} | , {{{birthState|}}}{{{birth_state|}}} | }} {{#if: {{{birthCountry|}}}{{{birth_country|}}} | ({{{birthCountry|}}}{{{birth_country|}}}) | }} | {{{birthYear|}}}{{{birth_year|}}}-{{{birthMonth|}}}{{{birth_month|}}}-{{{birthDay|}}}{{{birth_day|}}} {{{birthCity|}}}{{{birth_city|}}}, {{{birthState|}}}{{{birth_state|}}}, {{{birthCountry|}}}{{{birth_country|}}} }}
+
{{!}} {{#if: {{{birth_year|}}} | {{{birth_year|}}} | ?}}-{{#if: {{{birth_month|}}} | {{{birth_month|}}} | ?}}-{{#if: {{{birth_day|}}} | {{{birth_day|}}} | ?}} {{#if: {{{birth_city|}}} {{{birth_state|}}} {{{birth_country|}}} | at | }} {{#if: {{{birth_city|}}} | {{{birth_city|}}}{{#if: {{{birth_state|}}} |, | }} | }} {{#if: {{{birth_state|}}} | {{{birth_state|}}} | }} {{#if: {{{birth_country|}}} | ({{{birth_country|}}}) | }}
{{!}}- | }}
{{!}}- | }}
-
{{#if: {{{deathYear|}}}{{{death_year|}}} {{{deathMonth|}}}{{{death_month|}}} {{{deathDay|}}}{{{death_day|}}} {{{deathCity|}}}{{{death_city|}}} {{{deathState|}}}{{{death_state|}}} {{{deathCountry|}}}{{{death_country|}}} | ! Died:  
+
{{#if: {{{death_year|}}} {{{death_month|}}} {{{death_day|}}} {{{death_city|}}} {{{death_state|}}} {{{death_country|}}} | ! Died:  
-
{{!}} {{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | {{#if: {{{deathYear|}}}{{{death_year|}}} | [[person-death-year::{{{deathYear|}}}{{{death_year|}}}]] | ?}}-{{#if: {{{deathMonth|}}}{{{death_month|}}} | [[person-death-month::{{{deathMonth|}}}{{{death_month|}}}]] | ?}}-{{#if: {{{deathDay|}}}{{{death_day|}}} | [[person-death-day::{{{deathDay|}}}{{{death_day|}}}]] | ?}} at {{#if: {{{deathCity|}}}{{{death_city|}}} | {{{deathCity|}}}{{{death_city|}}} | }}{{#if: {{{deathState|}}}{{{death_state|}}} | , {{{deathState|}}}{{{death_state|}}} | }} {{#if: {{{deathCountry|}}}{{{death_country|}}} | ({{{deathCountry|}}}{{{death_country|}}}) | }} | {{{deathYear|}}}{{{death_year|}}}-{{{deathMonth|}}}{{{death_month|}}}-{{{deathDay|}}}{{{death_day|}}} {{{deathCity|}}}{{{death_city|}}},{{{deathState|}}}{{{death_state|}}},{{{deathCountry|}}}{{{death_country|}}} }}
+
{{!}} {{#if: {{{death_year|}}} | {{{death_year|}}} | ?}}-{{#if: {{{death_month|}}} | {{{death_month|}}} | ?}}-{{#if: {{{death_day|}}} | {{{death_day|}}} | ?}} {{#if: {{{death_city|}}} {{{death_state|}}} {{{death_country|}}} | at | }} {{#if: {{{death_city|}}} | {{{death_city|}}}{{#if: {{{death_state|}}} |, | }} | }} {{#if: {{{death_state|}}} | {{{death_state|}}} | }} {{#if: {{{death_country|}}} | ({{{death_country|}}}) | }}
{{!}}- | }}
{{!}}- | }}
-
{{#if: {{{cemeteryName|}}}{{{cemetery_name|}}} {{{cemeteryCity|}}}{{{cemetery_city|}}} {{{cemeteryState|}}}{{{cemetery_state|}}} {{{cemeteryCountry|}}}{{{cemetery_country|}}} | ! Interred:
+
{{#if: {{{cemetery_name|}}} {{{cemetery_city|}}} {{{cemetery_state|}}} {{{cemetery_country|}}} | ! Interred:
-
{{!}} {{{cemeteryName|}}}{{{cemetery_name|}}} in {{{cemeteryCity|}}}{{{cemetery_city|}}}, {{{cemeteryState|}}}{{{cemetery_state|}}} ({{{cemeteryCountry|}}}{{{cemetery_country|}}})
+
{{!}} {{#if: {{{cemetery_name|}}} | {{{cemetery_name|}}} {{#if: {{{cemetery_city|}}} {{{cemetery_state|}}} {{{cemetery_country|}}} | in }} }} {{#if:{{{cemetery_city|}}}| {{{cemetery_city|}}}{{#if:{{{cemetery_state|}}}|, | }} }} {{{cemetery_state|}}} {{#if: {{{cemetery_country|}}} | ({{{cemetery_country|}}}) | }}
{{!}}- | }}
{{!}}- | }}
-
{{#ifeq: {{{is_biocomm|N}}} | Y | {{!}} class="infobox-caption-cell" colspan="2" {{!}} SABR Biographical Research Committee | }}
+
|}
-
|}<!--
+
{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} |  {{#if: {{{name_first|}}} | {{#set:person-name-first={{{name_first|}}} }} | {{#set:person-name-first=Unknown }} }} {{#set:person-name-last={{{name_last|}}} }} {{#if: {{{name_nick|}}} | {{#set:person-name-nick={{{name_nick|}}}}} | }} {{#if: {{{name_given|}}} | {{#set:person-name-given={{{name_given|}}}}} | }} {{#if: {{{name_suffix|}}} | {{#set:person-name-suffix={{{name_suffix|}}}}} | }} {{#if: {{{name_matrilineal|}}} | {{#set:person-name-matrilineal={{{name_matrilineal|}}}}} | }}  {{#if: {{{bats|}}} | {{#set:person-bats={{{bats|}}}}} | }}{{#if: {{{throws|}}} | {{#set:person-throws={{{throws|}}}}} | }} {{#if: {{{height|}}} | {{#set:person-height={{{height|}}}}} | }} {{#if: {{{weight|}}} | {{#set:person-weight={{{weight|}}}}} | }} {{#if: {{{birth_city|}}} | {{#set:person-birth-city={{{birth_city|}}}}} | }} {{#if: {{{birth_state|}}} | {{#set:person-birth-state={{{birth_state|}}}}} | }} {{#if: {{{birth_country|}}} | {{#set:person-birth-country={{{birth_country|}}}}} | }} {{#if: {{{birth_year|}}} | {{#set:person-birth-year={{{birth_year|}}}}} | }} {{#if: {{{birth_month|}}} | {{#set:person-birth-month={{{birth_month|}}}}} | }} {{#if: {{{birth_day|}}} | {{#set:person-birth-day={{{birth_day|}}}}} | }} {{#if: {{{death_city|}}} | {{#set:person-death-city={{{death_city|}}}}} | }} {{#if: {{{death_state|}}} | {{#set:person-death-state={{{death_state|}}}}} | }} {{#if: {{{death_country|}}} | {{#set:person-death-country={{{death_country|}}}}} | }} {{#if: {{{death_year|}}} | {{#set:person-death-year={{{death_year|}}}}} | }} {{#if: {{{death_month|}}} | {{#set:person-death-month={{{death_month|}}}}} | }} {{#if: {{{death_day|}}} | {{#set:person-death-day={{{death_day|}}}}} | }} {{#if: {{{cemetery_name|}}} | {{#set:person-cemetery-name={{{cemetery_name|}}}}} | }} {{#if: {{{cemetery_city|}}} | {{#set:person-cemetery-city={{{cemetery_city|}}}}} | }} {{#if: {{{cemetery_state|}}} | {{#set:person-cemetery-state={{{cemetery_state|}}}}} | }} {{#if: {{{cemetery_country|}}} | {{#set:person-cemetery-country={{{cemetery_country|}}}}} | }} {{#if: {{{bioproj_url|}}} | {{#set:person-bioproj-url={{{bioproj_url|}}}}} | }} {{#if: {{{bioproj_author|}}} | {{#set:person-bioproj-author={{{bioproj_author|}}}}} | }} {{page-indexterm | {{#if: {{{name_first|}}} | {{{name_first|}}} | Unknown}} {{{name_last|}}} }} {{page-indexterm | {{#if: {{{name_given|}}} | {{{name_given|}}} | Unknown}} {{{name_last|}}} }} {{page-indexterm | {{{name_last|}}} }} {{#if: {{{indexterms|}}} | {{page-indexterm|{{{indexterms|}}} }} | }} | }}<!--
-
-->{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | {{#if: {{{summary|}}} | {{#set:Person-summary={{{summary|}}}}} | }} }}<!--
+
--> {{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | [[Category:People|{{{name_last|}}}, {{{name_first|}}}]] | [[Category:Person-infobox]] }}
-
-->{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | {{page-indexterm | {{#if: {{{nameFirst|}}}{{{name_first|}}} | {{{nameFirst|}}}{{{name_first|}}} | Unknown}} {{{nameLast|}}}{{{name_last|}}} }} {{page-indexterm | {{#if: {{{nameGiven|}}}{{{name_given|}}} | {{{nameGiven|}}}{{{name_given|}}} | Unknown}} {{{nameLast|}}}{{{name_last|}}} }} {{page-indexterm | {{{nameLast|}}}{{{name_last|}}} }} }}
+
-
{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | [[Category:People|{{{nameLast|}}}{{{name_last|}}}, {{{nameFirst|}}}{{{name_first|}}}]] | [[Category:Person-infobox]] }}
+
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{Person-infobox/doc}}
{{Person-infobox/doc}}
</noinclude>
</noinclude>

Latest revision as of 14:04, 11 March 2011


{{person-infobox
 | name_last        =
 | name_first       =
 | name_given       =
 | name_suffix       =
 | name_matrilineal =
 | name_nick        =
 | bats             =
 | throws           =
 | height           =
 | weight           =
 | birth_month      =
 | birth_day        =
 | birth_year       =
 | birth_city       =
 | birth_state      =
 | birth_country    =
 | death_month      =
 | death_day        =
 | death_year       =
 | death_city       =
 | death_state      =
 | death_country    =
 | cemetery_name    =
 | cemetery_city    =
 | cemetery_state   =
 | cemetery_country =
 | bioproj_url      =
 | bioproj_author   =
 | indexterms       =
}}

The person infobox summarizes basic biographical and demographic information about a person. The information in infoboxes is synchronized against a master database of people. As such, editing these infoboxes is a primary way of submitting new and revised information about people. Following the conventions described below is very helpful in keeping the database clean and standardized.

The infobox implements the following parameters.

  • name_last: The last (family) name of a person. Where a person plays under an assumed or Anglicized name, indicate the name he played under here. Be sure to indicate his legal name in the article.
  • name_first: The name by which the person was commonly addressed. This may be a diminutive, his middle name, or a common nickname. For instance, the "nameFirst" for George Herman Ruth would be "Babe."
  • name_given: The full given name of the person. Excludes the family name, any disambiguating suffixes, or matrilineal names for Latin players.
  • name_suffix: A disambiguating suffix to distinguish sons from their (grand)fathers, such as "Jr.", "Sr.", "III", or "IV". Include the period in "Jr." or "Sr.". Do not precede with a comma.
  • name_matrilineal: For people of Latin descent, the mother's last name is often kept as part of the child's name. This is often rendered in baseball sources in parentheses.
  • name_nick: Any nicknames associated with the person. For our purposes, these would be names used to refer to a person, for example, in print, but he would not typically be addressed by. "The Sultan of Swat" would be a name_nick for Babe Ruth. Some sources, including team and league media guides, include as "nicknames" variations on the player's last name which are used primarily by his teammates. These should not be included in this field, unless they also see wide use in published materials. For instance, a John Smith might be called "Smitty" in the clubhouse; that is only a name_nick if the local papers also routinely call him "Smitty."
  • bats, throws: The player's preferred batting and throwing hand; use 'R', 'L', or 'S'. Indicate the hand used most often; if the player experimented with switch-hitting, for instance, indicate that as a note in his page.
  • height: The person's height in inches.
  • weight: The person's playing weight in pounds.
  • birth_year, birth_month, birth_day: The person's date of birth. Use four digits for the year.
  • birth_city, birth_state, birth_country: The person's place of birth. Use the two-letter postal codes for US states and Canadian provinces. The two-letter ISO code for countries is preferred (e.g., the United States is US).
  • death_year, death_month, death_day, death_city, death_state, death_country: The person's date and place of death, following the same conventions as the date and place of birth.
  • cemetery_name, cemetery_city, cemetery_state, cemetery_country: The burial place of the person.
  • bioproj_url, bioproj_url: The full URL and name of the author for the person's Bioproject bio, if it exists.
  • indexterms: A semicolon-separated list of terms that should bring a visitor to the page if typed into the search box.
Personal tools