Difference between revisions of "Template:Infobox chess biography"

From blackwiki
Jump to navigation Jump to search
imported>Sun Creator
(Undid revision 249636044 by Dr. Blofeld (talk) Reverted colour back.)
imported>Hariboneagle927
(adding medal template)
 
(57 intermediate revisions by 32 users not shown)
Line 1: Line 1:
<noinclude>{{start infobox page}}</noinclude><!--
+
{{Infobox
--> {{Infobox
+
| bodyclass    = vcard
|bodyclass    = vcard
+
| above        = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
|bodystyle    = width:25em; text-align:left; font-size:90%;
+
| aboveclass   = fn
|above        = {{{playername<includeonly>|PAGENAME</includeonly>}}}
 
|aboveclass  = fn
 
|abovestyle  = padding:0.35em; background:#bfe0bf; font-size:120%;
 
|image        = {{{image<includeonly>|</includeonly>}}}
 
|imageclass  = photo
 
|caption      = {{{caption<includeonly>|</includeonly>}}}
 
|captionstyle = padding-top:0.25em; line-height:1.2em; font-size:90%;
 
|labelstyle   = padding:0.25em 0.5em 0.25em 0; background:transparent; line-height:1.1em;
 
|datastyle    = padding:0.25em 0; line-height:1.2em; vertical-align:middle;
 
  
|label1 = Full name
+
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}}
|data1   = {{{birthname<includeonly>|</includeonly>}}}
+
| caption      = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
|label2 = Country
+
 
|class2 = adr
+
| label1       = Full name
|data2   = {{{country<includeonly>|</includeonly>}}}
+
| data1       = {{{full_name|{{{birth_name|{{{birthname|}}}}}}}}}
|label3 = Born
+
| label2       = Country
|data3   = <div style="line-height:1.3em;"><!--
+
| class2       = adr
            -->{{{datebirth<includeonly>|</includeonly>}}}<br/><!--
+
| data2       = {{{country|}}}
            -->{{{placebirth<includeonly>|</includeonly>}}}<!--
+
| label3       = Born
        --></div>
+
| data3       = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}}}}
|label4 = Died
+
| label4       = Died
|data4   = {{#if:{{{datedeath<includeonly>|</includeonly>}}}{{{placedeath|}}}
+
| data4       = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}}
            | <div style="line-height:1.3em;">{{{datedeath}}}<br/>{{{placedeath}}}</div>}}
+
| label5       = Title
|label5 = Title
+
| class5       = note
|class5 = note
+
| data5       = {{{title|}}}
|data5   = {{{title<includeonly>|</includeonly>}}}
+
| label6       = [[World Chess Championship|World Champion]]
|label6 = [[World Chess Championship|World Champion]]
+
| class6       = note
|class6 = note
+
| data6       = {{{worldchampion|}}}
|data6   = {{{worldchampion<includeonly>|</includeonly>}}}
+
| label7       = [[Women's World Chess Championship|Women's World Champion]]
|label7 = [[Women's World Chess Championship|Women's World Champion]]
+
| class7       = note
|class7 = note
+
| data7       = {{{womensworldchampion|}}}
|data7   = {{{womensworldchampion<includeonly>|</includeonly>}}}
+
| label8       = [[World Correspondence Chess Championship|ICCF World Champion]]
|label8  = [[Fédération Internationale des Échecs|FIDE]] [[Elo rating system|rating]]
+
| class8      = note
|data8  = {{{rating<includeonly>|</includeonly>}}}
+
| data8        = {{{ICCFworldchampion|}}}  
|label9  = [[Elo rating system|Peak rating]]
+
| label9      = [[FIDE]] [[Elo rating system|rating]]
|data9  = {{{peakrating<includeonly>|</includeonly>}}}
+
| data9        = {{#if:{{Elo rating|ID={{{FideID|}}}}}|[https://ratings.fide.com/card.phtml?event={{{FideID|}}} {{Elo rating|ID={{{FideID}}}}}] {{Elo rating|ID=timestamp}} {{{rating|}}}|{{{rating|}}}}}
 +
| label10      = [[Elo rating system|Peak rating]]
 +
| data10      = {{{peakrating|}}}
 +
| label11      = [http://ratings.fide.com/toplist.phtml Ranking]
 +
| data11      = {{{ranking|}}}
 +
| label12      = Peak ranking
 +
| data12      = {{{peakranking|}}}
 +
| header20  = {{Infobox medal templates
 +
| title  = {{{medaltemplates-title|}}}
 +
| medals = {{{medaltemplates|}}}
 +
| expand = {{#ifeq:{{lc:{{{show-medals}}}}}|no||yes}}
 +
}}
 +
| header21    = {{{embedded|{{{module|}}}}}}
 
}}<noinclude>
 
}}<noinclude>
{{end infobox page}}
+
{{documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>
 
 
[[Category:Chess templates| ]]
 
[[Category:People infobox templates|Chess player]]
 
 
 
 
 
<!------- Interwiki--------->
 
[[ar:قالب:معلومات لاعب شطرنج]]
 
[[bg:Шаблон:Шахматист]]
 
[[de:Vorlage:Infobox_Schachspieler]]
 
[[id:Templat:Infobox_chess_player]]
 
[[mk:Шаблон:Инфокутија Шахист]]
 
[[pl:Szablon:Szachista_infobox]]
 
[[ro:Template:Infobox chess player]]
 
[[ru:Шаблон:Шахматист]]
 
[[simple:Template:Infobox Chess player]]
 
[[tl:template:infobox chess player]]
 
</noinclude>
 

Latest revision as of 09:31, 18 June 2020

Script error: No such module "Wikidata".
Script error: No such module "Wikidata".

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

Blank syntax

{{Infobox chess biography
| name        = 
| image       = 
| image_size  = 
| caption     = 
| full_name   = 
| country     = 
| birth_date  = 
| birth_place = 
| death_date  = 
| death_place = 
| title       = 
| worldchampion = 
| womensworldchampion = 
| ICCFworldchampion =
| yearsactive =
| rating      = 
| peakrating  = 
| ranking     = 
| peakranking = 
| FideID      =
<!-- Medal record -->
| show-medals      = 
| medaltemplates   = 
| medaltemplates-title = 
| module3          = 
}}

Example usage

Alexander Morozevich
Alexander Morozevich grandmaster.jpg
Full nameAlexander Sergeyevich Morozevich
CountryRussia
Born (1977-07-18) July 18, 1977 (age 48)
Moscow, Russia
TitleGrandmaster
FIDE rating2758
Peak rating2788 (July 2008)
RankingNo. 10 (September 2012)
Peak rankingNo. 2 (July 2008)
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox chess biography
| name        = Alexander Morozevich
| image       = Alexander_Morozevich_grandmaster.jpg
| caption     = 
| birthname   = Alexander Sergeyevich Morozevich
| country     = [[Russia]]
| birth_date  = {{birth date and age|1977|7|18}}
| birth_place = [[Moscow]], Russia
| death_date  = 
| death_place = 
| title       = [[Grandmaster (chess)|Grandmaster]]
| worldchampion = 
| womensworldchampion =
| ICCFworldchampion = 
| yearsactive = 
| rating      = 2758
| peakrating  = 2788 (July 2008)
| ranking     = No. 12 (September 2012)
| peakranking = No. 2 (July 2008)
}}

or alternatively by using the 'FideID' parameter (which uses automatically updated 'rating' data for players rated over 2400):

Alexander Morozevich
Alexander Morozevich grandmaster.jpg
Full nameAlexander Sergeyevich Morozevich
CountryRussia
Born (1977-07-18) July 18, 1977 (age 48)
Moscow, Russia
TitleGrandmaster
FIDE rating2659 (April 2026)
(No. 4 on the April 2007 FIDE ratings list)
Peak rating2762 (April 2007)
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox chess biography
| name        = Alexander Morozevich
| image       = Alexander_Morozevich_grandmaster.jpg
| caption     = 
| birthname   = Alexander Sergeyevich Morozevich
| country     = [[Russia]]
| birth_date  = {{birth date and age|1977|7|18}}
| birth_place = [[Moscow]], Russia
| death_date  = 
| death_place = 
| title       = [[Grandmaster (chess)|Grandmaster]]
| worldchampion = 
| womensworldchampion = 
| ICCFworldchampion = 
| rating      = <br /><small>(No. 4 on the April 2007 FIDE ratings list)</small>
| peakrating  = 2762 (April 2007)
| FideID      = 4116992
}}

Microformat

Template:UF-hcard-person