Difference between revisions of "Template:Infobox shogi professional"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(adding a reference param for the win/loss)
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Infobox
+
<onlyinclude>{{Infobox
 
| bodyclass    = vcard
 
| bodyclass    = vcard
 +
| headerstyle = background-color: #b0c4de;
 
| above        = {{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}
 
| above        = {{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}
 
| aboveclass  = fn
 
| aboveclass  = fn
 +
 +
| child = {{lc:{{{child|{{{embed}}}}}}}}
  
 
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|250px}}}|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}}
 
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|250px}}}|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}}
 
| caption      = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
 
| caption      = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
  
| label1 = Maiden name
+
| label1 = Native name
| data1  = {{{maiden_name|}}}  
+
| data1  = {{#if:{{{native_name|}}}|{{nowrap|{{{native_name}}}}}}}
  
| label2 = Born
+
| label2 = Maiden name
| data2  = {{{born|}}}
+
| data2  = {{{maiden_name|}}}  
  
| label3 = Home town
+
| label3 = Born
| data3  = {{{hometown|}}}
+
| data3  = {{{born|}}}
  
| label4 = Nationality
+
| label4 = Hometown
| data4  = {{{nationality|}}}
+
| data4  = {{{hometown|}}}
  
| label5 = Died
+
| label5 = Nationality
| data5  = {{{died|}}}
+
| data5  = {{{nationality|}}}
  
| header10 = Career
+
| label6 = Died
 +
| data6  = {{{died|}}}
 +
 
 +
| header10 = {{#if:{{{pro_date|}}}{{{badge_no|}}}{{{rank|}}}{{{sponsor|}}}{{{teacher|}}}{{{title|}}}{{{lifetime_titles|}}}{{{titles|}}}{{{tournaments|}}}{{{wins|}}}{{{ryuoclass|}}}{{{meijinclass|}}}|Career}}
 
| label11  = Achieved professional status
 
| label11  = Achieved professional status
 
| data11  = {{{pro_date|}}}
 
| data11  = {{{pro_date|}}}
Line 32: Line 38:
 
| data13  = {{{rank|}}}
 
| data13  = {{{rank|}}}
  
 +
| label14  = Retired
 +
| data14  = {{{retirementdate|}}}
  
| label14 = {{#if:{{{sponsor|}}}|Sponsor|Teacher}}
+
| label15 = {{#if:{{{sponsor|}}}|Sponsor|Teacher}}
| data14   = {{#if:{{{sponsor|}}}|{{{sponsor}}}|{{{teacher|}}}}}
+
| data15   = {{#if:{{{sponsor|}}}|{{nowrap|{{{sponsor}}}}}|{{#if:{{{teacher|}}}|{{nowrap|{{{teacher}}}}}}}}}{{#if:{{{teacher_rank|}}}|&nbsp;({{{teacher_rank}}})}}
 
 
| label15  = Current titles held
 
| data15  = {{{title|}}}
 
  
| label16  = Lifetime titles
+
| label16  = Current titles held
| data16  = {{{lifetime_titles|}}}
+
| data16  = {{{title|}}}
  
| label17  = Current major titles
+
| label17  = Lifetime titles
| data17  = {{{titles|}}}
+
| data17  = {{{lifetime_titles|}}}
  
| label18  = Major titles won
+
| label18  = Current major titles
| data18 = {{{no_titles|}}}
+
| data18   = {{{titles|}}}
  
| label19  = Tournaments won
+
| label19  = Major titles won
| data19   = {{{tournaments|}}}
+
| data19 = {{{no_titles|}}}
  
| label20  = Career record
+
| label20  = Tournaments won
| data20  = {{#if:{{{wins|}}}|'''{{{wins|}}}'''-{{{losses|}}}}}
+
| data20  = {{{tournaments|}}}
  
| label21  = [[Ryu-oh|Ryu-Oh]] class
+
| label21  = Career record
| data21  = {{{ryuoclass|}}}
+
| data21  = {{#if:{{{wins|}}}|{{Winning percentage|{{{wins|}}}|{{{losses|}}}|record=y}}}}{{{winloss_ref|}}}
  
 
| label22  = [[Meijin (shogi)|Meijin]] class
 
| label22  = [[Meijin (shogi)|Meijin]] class
 
| data22  = {{{meijinclass|}}}
 
| data22  = {{{meijinclass|}}}
}}<noinclude>
+
 
{{Template draft}}
+
| label23  = [[Ryūō]] class
{{documentation|content=
+
| data23  = {{{ryuoclass|}}}
==Syntax==
+
 
{{Draft:Template:Infobox shogi professional
+
| label24  = Notable student{{#if:{{{notable_students|}}}|s}}
| name            = {{{name}}}
+
| data24  = {{{notable_student|{{{notable_students|}}}}}}
| maiden_name      = {{{maiden_name}}}    
+
 
| image            = {{{image}}}
+
| header30 = {{#if:{{{jsa|}}}{{{lpsa|}}}{{{website|}}}{{{url|}}}{{{othersite|}}}|Websites}}
| image_size      =
+
| data31 = {{#if:{{{jsa|}}}|[https://www.shogi.or.jp/player/{{#if:{{{female|}}}|lady|pro}}/{{{jsa}}}.html JSA profile page]}}
| caption          = {{{caption}}}
+
| data32  = {{#if:{{{lpsa|}}}|[http://joshi-shogi.com/lpsa/prof/{{{lpsa}}}.html LPSA profile page]}}
| born            = {{{born}}}
+
| data33  = {{#if:{{{website|{{{url|}}}}}}|{{official|{{{website|{{{url|}}}}}}}}}}
| hometown        = {{{hometown}}}        
+
| data34  = {{{othersite|}}}
| nationality      = {{{nationality}}}    
+
}}</onlyinclude><noinclude>
| died            = {{{died}}}            
+
{{documentation}}
| pro_date        = {{{pro_date}}}        
+
[[Category:Shogi templates]]
| badge_no        = {{{badge_no}}}        
 
| teacher          = {{{teacher}}}        
 
| rank            = {{{rank}}}
 
| lifetime_titles = {{{lifetime_titles}}}  
 
| current_titles  = {{{title}}}                    
 
| no_titles        = {{{no_titles}}}      
 
| tournaments      = {{{tournaments}}}  
 
| wins            = {{{wins}}}            
 
| losses          = {{{losses}}}         
 
| ryuoclass        = {{{ryuoclass}}}       
 
| meijinclass      = {{{meijinclass}}}        
 
}}
 
<pre>
 
{{Infobox shogi professional
 
| name            =
 
| maiden_name      = <!--Only applicable to female professionals who married after turning pro-->
 
| image            =
 
| image_size      =
 
| caption          =
 
| born            = <!--use {{birth date and age|yyyy|mm|dd|mf=yes}}-->
 
| hometown        =
 
| nationality      =
 
| died            = <!-- {{Death date and age|yyyy|mm|dd|mf=yes}}-->
 
| pro_date        = <!--use {{date|yyyy|mm|dd|myd}} ((<!--use {{Age|yyyy|mm|dd}} for age when became a professional-->)
 
| badge_no        = <!-- For women professionals use "W-#" format -->
 
| teacher          = <!-- can also use "sponsor" -->
 
| lifetime_titles  = <!--List lifetime titles qualified for-->
 
| title            = <!--List major tiles currently held-->
 
| rank            = <!-- Use # [[dan (rank)#Modern usage in shogi|dan]]; for women professionals use "Women-# [[dan (rank)#Modern usage in shogi|dan]]" or "W-# [[kyū]|])
 
| no_titles        = <!--total number of major titles won-->
 
| tournaments      = <!--number of official tournaments won; excludes major titles-->
 
| wins            = <!-- should be primarily used for retired professional so as to not require frequent uploading -->
 
| losses          = <!-- should be primarily used for retired professional so as to not require frequent uploading -->
 
| ryuoclass        = <!--not needed for retired professionals-->
 
| meijinclass      = <!--not needed for retired professionals-->
 
}}
 
</pre>
 
}}
 
}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 15:00, 26 July 2018

{{{name}}}

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

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

Usage

Template:T is meant to be used for professional shogi players.

Syntax

{{{name}}}
[[File:{{{image}}}|frameless|upright=1]]
{{{caption}}}
Native name{{{native_name}}}
Maiden name{{{maiden_name}}}
Born{{{born}}}
Hometown{{{hometown}}}
Nationality{{{nationality}}}
Died{{{died}}}
Career
Achieved professional status{{{pro_date}}}
Badge Number{{{badge_no}}}
Rank{{{rank}}}
Retired{{{retirementdate}}}
Teacher{{{teacher}}} ({{{teacher_rank}}})
Lifetime titles{{{lifetime_titles}}}
Major titles won{{{no_titles}}}
Tournaments won{{{tournaments}}}
Career recordTemplate:Winning percentage{{{winloss_ref}}}
Meijin class{{{meijinclass}}}
Ryūō class{{{ryuoclass}}}
Notable students{{{notable_students}}}
Websites
JSA profile page
LPSA profile page
Template:Official
{{{othersite}}}
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox shogi professional
| name             =
| native_name      = 
| maiden_name      = <!--Only applicable to female professionals who married after turning pro-->
| image            = 
| image_size       =
| caption          = 
| born             = <!--use {{birth date and age|yyyy|mm|dd|mf=yes}}--> 
| hometown         = 
| nationality      =
| died             = <!-- {{Death date and age|yyyy|mm|dd|mf=yes}}--> 
| pro_date         = <!--use {{event date and age|yyyy|mm|dd |yyyy|mm|dd}} for age when became a professional-->
| badge_no         = <!-- For women professionals use "W-#" format -->
| retirementdate   = <!-- use {{event date and age|yyyy|mm|dd |yyyy|mm|dd}} for age when retired as a professional-->
| teacher          = <!-- can also use "sponsor" -->
| teacher_rank     = <!-- Rank of the teacher-->
| lifetime_titles  = <!--List lifetime titles qualified for-->
| title            = <!--List major tiles currently held-->
| rank             = <!-- Use # [[dan (rank)#Modern usage in shogi|dan]]; for women professionals use "Women-# [[dan (rank)#Modern usage in shogi|dan]]" or "W-# [[kyū]|])
| no_titles        = <!--total number of major titles won-->
| tournaments      = <!--number of official tournaments won; excludes major titles--> 
| wins             = <!-- should be primarily used for retired professionals so as to not require frequent updating -->
| losses           = <!-- should be primarily used for retired professionals so as to not require frequent updating -->
| winloss_ref      = 
| ryuoclass        = <!--not needed for retired professionals-->
| meijinclass      = <!--not needed for retired professionals-->
| notable_student  = <!--can also use notable_students, which will change the label to "Notable students"-->
| jsa              = <!--Japan Shogi Association profile (see below)-->
| female           = <!--Set to "yes" if the player is female and has a JSA number-->
| lpsa             = <!--Ladies Professional Shogi-players' Association profile (see below)-->
| website          = <!--Official website - MUST be a bare URL -->
| othersite        = <!--Other website, can be used with things like {{twitter}} or non-bare URLs -->
}}

JSA/LPSA profiles

The JSA and LPSA URLs have been hard-coded into the template, so all that is needed is the unique identifier for the player being represented. In the links below, these are the parts in bold.

NOTE: Female players have a different URL syntax on the JSA website. To enter a female player's profile number, you must also include |female=yes .

  • Yasuharu Ōyama
    • JSA profile: https://www.shogi.or.jp/player/pro/26.html
    • Parameter will be |jsa=26
  • Rieko Yauchi
    • JSA profile: https://www.shogi.or.jp/player/lady/16.html
    • Parameters will be |jsa=16 and |female=yes
  • Hiroe Nakai
    • LPSA profile: http://joshi-shogi.com/lpsa/prof/nakai.html
    • Input will be |lpsa=nakai