Template:Infobox sumo wrestler/doc: Difference between revisions

From RTYWiki
Jump to navigation Jump to search
en>WOSlinker
m (syntaxhighlight lang="wikitext")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata}}
{{Uses Wikidata|P18}}
== Usage ==
== Usage ==
{{Parameter names example | name | native_name | native_name_lang | image | image_size | alt | caption | birth_name | birth_date | birth_place | death_date | death_place | height | weight | blogurl | weburl | heya | university | rank | record | debut | highestrank | retireddate | eldername | yushos | prizes | goldstars | update }}
{{Parameter names example | name | native_name | native_name_lang | image | image_size | alt | caption | birth_name | birth_date | birth_place | death_date | death_place | nationality | gender | height | weight | blogurl | weburl | shusshin | heya | university | rank | record | debut | highestrank | retireddate | eldername | yushos | prizes | goldstars | update }}


You can insert the box into an article by copying the text below and filling in the applicable values.
You can insert the box into an article by copying the text below and filling in the applicable values.
Line 22: Line 17:
| death_date  = <!-- {{death date and age|death year|death month|death day|birth year|birth month|birth day}} -->
| death_date  = <!-- {{death date and age|death year|death month|death day|birth year|birth month|birth day}} -->
| death_place  =  
| death_place  =  
| nationality  = <!-- demonym1<br/> demonym2<br/> ... -->
| gender      =
| height      = <!-- "X cm" (automatic conversion) -->
| height      = <!-- "X cm" (automatic conversion) -->
| weight      = <!-- "X kg" (automatic conversion) -->
| weight      = <!-- "X kg" (automatic conversion) -->
| blogurl      =  
| blogurl      =  
| weburl      =  
| weburl      =  
| shusshin    =
| heya        =  
| heya        =  
| university  =  
| university  =  
Line 49: Line 47:
* birth_date — <nowiki>{{</nowiki>[[Template:birth date and age|birth date and age]]|yyyy|mm|dd<nowiki>}}</nowiki> if living, or <nowiki>{{</nowiki>[[Template:birth date|birth date]]|yyyy|mm|dd<nowiki>}}</nowiki> if not
* birth_date — <nowiki>{{</nowiki>[[Template:birth date and age|birth date and age]]|yyyy|mm|dd<nowiki>}}</nowiki> if living, or <nowiki>{{</nowiki>[[Template:birth date|birth date]]|yyyy|mm|dd<nowiki>}}</nowiki> if not
* birth_place — City (, State/Prefecture), Country
* birth_place — City (, State/Prefecture), Country
* shusshin — The wrestler's official place of origin, which can be different from birthplace (Hokuseiho is a real-life example)
* heya — The wrestler's [[heya (sumo)|heya]]
* heya — The wrestler's [[heya (sumo)|heya]]
* update — Date of last update to the information in this box (use <nowiki>{{subst:Date}}</nowiki> or <nowiki>{{subst:Date|2=mdy}}</nowiki> for the current date). Should be done every basho the wrestler is active.
* update — Date of last update to the information in this box (use <nowiki>{{subst:Date}}</nowiki> or <nowiki>{{subst:Date|2=mdy}}</nowiki> for the current date). Should be done every basho the wrestler is active.
Line 60: Line 59:
* caption —  
* caption —  
* death_date — <nowiki>{{</nowiki>[[Template:Death date and age|Death date and age]] | yyyy|mm|dd|yyyy|mm|dd<nowiki>}}</nowiki>
* death_date — <nowiki>{{</nowiki>[[Template:Death date and age|Death date and age]] | yyyy|mm|dd|yyyy|mm|dd<nowiki>}}</nowiki>
* nationality — One of several demonyms. Note that Japanese citizenship excludes bi-nationality
* gender — RTY-specific. The server is proud to be inclusive and you are free to put whatever you like
* death_place — City (, State/Prefecture), Country
* death_place — City (, State/Prefecture), Country
* height — [[human height|height]] in [[centimetre]]s, with [[imperial units]] following in parentheses. Use <code>X cm</code> and the infobox will automatically display the conversion. The {{tl|convert}} template may also be used: <code><nowiki>{{convert|192|cm|ftin|frac=2|abbr=on}}</nowiki></code> displays {{convert|192|cm|ftin|frac=2|abbr=on}}.
* height — [[human height|height]] in [[centimetre]]s, with [[imperial units]] following in parentheses. Use <code>X cm</code> and the infobox will automatically display the conversion. The {{tl|convert}} template may also be used: <code><nowiki>{{convert|192|cm|ftin|frac=2|abbr=on}}</nowiki></code> displays {{convert|192|cm|ftin|frac=2|abbr=on}}.

Latest revision as of 22:05, 12 August 2023

Usage

Usage

Template loop detected: Template:Parameter names example

You can insert the box into an article by copying the text below and filling in the applicable values.

{{Infobox sumo wrestler
| name         = 
| native_name  = 
| native_name_lang = 
| image        = 
| image_size   = 
| alt          = 
| caption      = 
| birth_name   = 
| birth_date   = <!-- {{Birth date and age|YYYY|MM|DD}} -->
| birth_place  = 
| death_date   = <!-- {{death date and age|death year|death month|death day|birth year|birth month|birth day}} -->
| death_place  = 
| nationality  = <!-- demonym1<br/> demonym2<br/> ... -->
| gender       = 
| height       = <!-- "X cm" (automatic conversion) -->
| weight       = <!-- "X kg" (automatic conversion) -->
| blogurl      = 
| weburl       = 
| shusshin     = 
| heya         = 
| university   = 
| rank         = 
| record       = 
| debut        = 
| highestrank  = 
| retireddate  = 
| eldername    = 
| yushos       = 
| prizes       = 
| goldstars    = 
| update       = 
}}

Parameters

Required

  • name — The wrestler's ring name
  • birth_name — The wrestler's birth name
  • birth_date — {{birth date and age|yyyy|mm|dd}} if living, or {{birth date|yyyy|mm|dd}} if not
  • birth_place — City (, State/Prefecture), Country
  • shusshin — The wrestler's official place of origin, which can be different from birthplace (Hokuseiho is a real-life example)
  • heya — The wrestler's heya
  • update — Date of last update to the information in this box (use {{subst:Date}} or {{subst:Date|2=mdy}} for the current date). Should be done every basho the wrestler is active.

Optional

  • native_name —
  • native_name_lang —
  • image — Use standard image syntax, but give size only. Example: [[File:SumoAsashoryu.jpg|200px]]
  • image_size —
  • alt —
  • caption —
  • death_date — {{Death date and age | yyyy|mm|dd|yyyy|mm|dd}}
  • nationality — One of several demonyms. Note that Japanese citizenship excludes bi-nationality
  • gender — RTY-specific. The server is proud to be inclusive and you are free to put whatever you like
  • death_place — City (, State/Prefecture), Country
  • height — height in centimetres, with imperial units following in parentheses. Use X cm and the infobox will automatically display the conversion. The {{convert}} template may also be used: {{convert|192|cm|ftin|frac=2|abbr=on}} displays 192 cm (6 ft 3+12 in).
  • weight — weight in kilograms with imperial units following in parentheses. Use X kg and the infobox will automatically display the conversion. The {{convert}} template may also be used: {{convert|110|kg|lb stlb|frac=2|abbr=on}} displays 110 kg (242+12 lb; 17 st 4+12 lb) and {{convert|110|kg|lb stlb|0|abbr=on}} displays 110 kg (243 lb; 17 st 5 lb). The highlighted zero in the second example is necessary to prevent unwanted rounding of values ending in zero, otherwise it would display as 110 kg (240 lb; 17 st 5 lb).
  • blogurl — fully qualified url of wrestler's personal blog
  • weburl — fully qualified url of wrestler's personal website
  • university —
  • rank — Current rank, see professional sumo divisions
  • record — as win-loss-absent
  • debut — Day Month Year of ring debut
  • highestrank — Highest career rank achieved (date of first basho at rank)
  • retireddate — Day Month Year of retirement ceremony
  • eldername — see toshiyori
  • yushos — Number (division), number (division), ... (see yūshō)
  • prizes — Special prizes and number of times awarded (see sanshō)
  • goldstars — number of kinboshi

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.

To include a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.

You can insert the box into an article by copying the text below and filling in the applicable values.

{{Infobox sumo wrestler
| name         = 
| native_name  = 
| native_name_lang = 
| image        = 
| image_size   = 
| alt          = 
| caption      = 
| birth_name   = 
| birth_date   = <!-- {{Birth date and age|YYYY|MM|DD}} -->
| birth_place  = 
| death_date   = <!-- {{death date and age|death year|death month|death day|birth year|birth month|birth day}} -->
| death_place  = 
| nationality  = <!-- demonym1<br/> demonym2<br/> ... -->
| gender       = 
| height       = <!-- "X cm" (automatic conversion) -->
| weight       = <!-- "X kg" (automatic conversion) -->
| blogurl      = 
| weburl       = 
| shusshin     = 
| heya         = 
| university   = 
| rank         = 
| record       = 
| debut        = 
| highestrank  = 
| retireddate  = 
| eldername    = 
| yushos       = 
| prizes       = 
| goldstars    = 
| update       = 
}}

Parameters

Required

  • name — The wrestler's ring name
  • birth_name — The wrestler's birth name
  • birth_date — {{birth date and age|yyyy|mm|dd}} if living, or {{birth date|yyyy|mm|dd}} if not
  • birth_place — City (, State/Prefecture), Country
  • shusshin — The wrestler's official place of origin, which can be different from birthplace (Hokuseiho is a real-life example)
  • heya — The wrestler's heya
  • update — Date of last update to the information in this box (use {{subst:Date}} or {{subst:Date|2=mdy}} for the current date). Should be done every basho the wrestler is active.

Optional

  • native_name —
  • native_name_lang —
  • image — Use standard image syntax, but give size only. Example: [[File:SumoAsashoryu.jpg|200px]]
  • image_size —
  • alt —
  • caption —
  • death_date — {{Death date and age | yyyy|mm|dd|yyyy|mm|dd}}
  • nationality — One of several demonyms. Note that Japanese citizenship excludes bi-nationality
  • gender — RTY-specific. The server is proud to be inclusive and you are free to put whatever you like
  • death_place — City (, State/Prefecture), Country
  • height — height in centimetres, with imperial units following in parentheses. Use X cm and the infobox will automatically display the conversion. The {{convert}} template may also be used: {{convert|192|cm|ftin|frac=2|abbr=on}} displays 192 cm (6 ft 3+12 in).
  • weight — weight in kilograms with imperial units following in parentheses. Use X kg and the infobox will automatically display the conversion. The {{convert}} template may also be used: {{convert|110|kg|lb stlb|frac=2|abbr=on}} displays 110 kg (242+12 lb; 17 st 4+12 lb) and {{convert|110|kg|lb stlb|0|abbr=on}} displays 110 kg (243 lb; 17 st 5 lb). The highlighted zero in the second example is necessary to prevent unwanted rounding of values ending in zero, otherwise it would display as 110 kg (240 lb; 17 st 5 lb).
  • blogurl — fully qualified url of wrestler's personal blog
  • weburl — fully qualified url of wrestler's personal website
  • university —
  • rank — Current rank, see professional sumo divisions
  • record — as win-loss-absent
  • debut — Day Month Year of ring debut
  • highestrank — Highest career rank achieved (date of first basho at rank)
  • retireddate — Day Month Year of retirement ceremony
  • eldername — see toshiyori
  • yushos — Number (division), number (division), ... (see yūshō)
  • prizes — Special prizes and number of times awarded (see sanshō)
  • goldstars — number of kinboshi

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.

To include a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.