Difference between revisions of "Template:Infobox shogi professional"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
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 = | + | | label1 = Native name |
| − | | data1 = {{{ | + | | data1 = {{#if:{{{native_name|}}}|{{nowrap|{{{native_name}}}}}}} |
| − | | label2 = | + | | label2 = Maiden name |
| − | | data2 = {{{ | + | | data2 = {{{maiden_name|}}} |
| − | | label3 = | + | | label3 = Born |
| − | | data3 = {{{ | + | | data3 = {{{born|}}} |
| − | | label4 = | + | | label4 = Hometown |
| − | | data4 = {{{ | + | | data4 = {{{hometown|}}} |
| − | | label5 = | + | | label5 = Nationality |
| − | | data5 = {{{ | + | | 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|}}} | ||
| − | | | + | | label15 = {{#if:{{{sponsor|}}}|Sponsor|Teacher}} |
| − | | | + | | data15 = {{#if:{{{sponsor|}}}|{{nowrap|{{{sponsor}}}}}|{{#if:{{{teacher|}}}|{{nowrap|{{{teacher}}}}}}}}}{{#if:{{{teacher_rank|}}}| ({{{teacher_rank}}})}} |
| − | |||
| − | | | ||
| − | | | ||
| − | | label16 = | + | | label16 = Current titles held |
| − | | data16 = {{{ | + | | data16 = {{{title|}}} |
| − | | label17 = | + | | label17 = Lifetime titles |
| − | | data17 = {{{ | + | | data17 = {{{lifetime_titles|}}} |
| − | | label18 = | + | | label18 = Current major titles |
| − | | data18 | + | | data18 = {{{titles|}}} |
| − | | label19 = | + | | label19 = Major titles won |
| − | | data19 | + | | data19 = {{{no_titles|}}} |
| − | | label20 = | + | | label20 = Tournaments won |
| − | | data20 = {{ | + | | data20 = {{{tournaments|}}} |
| − | | label21 = | + | | label21 = Career record |
| − | | data21 = {{{ | + | | 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|}}} | ||
| − | + | ||
| − | + | | label23 = [[Ryūō]] class | |
| − | + | | data23 = {{{ryuoclass|}}} | |
| − | + | ||
| − | + | | label24 = Notable student{{#if:{{{notable_students|}}}|s}} | |
| − | | | + | | data24 = {{{notable_student|{{{notable_students|}}}}}} |
| − | | | + | |
| − | | | + | | header30 = {{#if:{{{jsa|}}}{{{lpsa|}}}{{{website|}}}{{{url|}}}{{{othersite|}}}|Websites}} |
| − | | | + | | data31 = {{#if:{{{jsa|}}}|[https://www.shogi.or.jp/player/{{#if:{{{female|}}}|lady|pro}}/{{{jsa}}}.html JSA profile page]}} |
| − | + | | data32 = {{#if:{{{lpsa|}}}|[http://joshi-shogi.com/lpsa/prof/{{{lpsa}}}.html LPSA profile page]}} | |
| − | | | + | | data33 = {{#if:{{{website|{{{url|}}}}}}|{{official|{{{website|{{{url|}}}}}}}}}} |
| − | + | | data34 = {{{othersite|}}} | |
| − | | | + | }}</onlyinclude><noinclude> |
| − | + | {{documentation}} | |
| − | + | [[Category:Shogi templates]] | |
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | }} | ||
| − | |||
| − | {{ | ||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</noinclude> | </noinclude> | ||
Latest revision as of 15:00, 26 July 2018
| {{{name}}} |
|---|
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
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 record | Template:Winning percentage{{{winloss_ref}}} |
| Meijin class | {{{meijinclass}}} |
| Ryūō class | {{{ryuoclass}}} |
| Notable students | {{{notable_students}}} |
| Websites | |
| JSA profile page | |
| LPSA profile page | |
| Template:Official | |
| {{{othersite}}} | |
{{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=16and|female=yes
- Hiroe Nakai
- LPSA profile: http://joshi-shogi.com/lpsa/prof/nakai.html
- Input will be
|lpsa=nakai
| The above documentation is transcluded from Template:Infobox shogi professional/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |