Dota 2 Wiki
No edit summary
mNo edit summary
(41 intermediate revisions by 6 users not shown)
Line 1: Line 1:
  +
<includeonly>{{#invoke:Infobox|main
<includeonly>{| style="border-collapse:collapse; border:solid #aaa 1px; margin:12px; font-size:90%; width:27em; padding:0.1em; text-align:left; float:right; clear:right;"
 
  +
| title = {{{id|{{PAGENAME}}}}}
|-
 
  +
| image = {{{image|}}}
| colspan="2" style="text-align:center; font-size: large; ;color:white; background-color:#b44335" | '''{{{id|}}}''' {{Infobox-help-button|Infobox Commentator}} {{Infobox-edit-button}}
 
 
| heading1 = Background Information
|-
 
  +
| trait1 = Name
| colspan="2" style="text-align:center;"| {{#if:{{{image|}}}|[[image:{{{image}}}|center|250px]]|}}
 
 
| value1 = {{{name|}}}
|-
 
 
| trait2 = Romanized name
| colspan="2" style="text-align:center; font-size: 120%; ;color:white; background-color:#b44335" | {{lang
 
 
| value2 = {{{romanized name|}}}
| en = '''Background Information'''
 
  +
| trait3 = Birthdate
| ru = '''Общая информация'''
 
  +
| value3 = {{#if:{{{birth date|}}}|{{Birth date and age|{{{birth date|}}}}}}}
}}
 
 
| trait4 = Country
{{!}}-valign="top"
 
  +
| value4 = {{#if:{{{country|}}}|{{Flag|{{{country}}}}} {{{country}}}}}
{{#if:{{{name|}}}|
 
  +
| trait5 = Language
{{!}}-
 
  +
| value5 = {{#if:{{{lang|}}}|{{Flag|{{{lang}}}}} {{{lang}}}}}
! valign="top"{{!}} {{lang
 
 
| trait6 = Organization
| en = Name:
 
 
| value6 = {{{organization|}}}
| ru = Имя:
 
  +
| heading7 = Links
}}
 
 
| trait7 = Website
{{!}}{{{name|}}}
 
 
| value7 = {{#if:{{{site|}}}|[{{{site}}} Link]}}
{{!}}-valign="top"}}
 
 
| trait8 = Facebook
{{#if:{{{romanized name|}}}|
 
 
| value8 = {{#if:{{{facebook|}}}|[http://facebook.com/{{{facebook}}} {{{facebook}}}]}}
! {{lang
 
 
| trait9 = Twitter
| en = Romanized name:
 
 
| value9 = {{#if:{{{twitter|}}}|[http://twitter.com/{{{twitter}}} {{{twitter}}}]}}
| ru = Романизированное имя:
 
  +
| trait10 = Weibo
}}
 
  +
| value10 = {{#if:{{{weibo|}}}|[http://weibo.com/{{{weibo}}} {{{weibo}}}]}}
{{!}}{{{romanized name|}}}
 
  +
| trait11 = VK
{{!}}-valign="top"}}
 
 
| value11 = {{#if:{{{vk|}}}|[http://vk.com/{{{vk}}} {{{vk}}}]}}
{{#if:{{{birth date|}}}|
 
 
| trait12 = Twitch
! {{lang
 
 
| value12 = {{#if:{{{twitch|}}}|[http://www.twitch.tv/{{{twitch}}} {{{twitch}}}]}}
| en = Date of birth:
 
 
| trait13 = YouTube
| ru = День рождения:
 
 
| value13 = {{#if:{{{youtube|}}}|[http://youtube.com/c/{{{youtube}}} {{{youtube|}}}]}}
}}
 
  +
}}<!--
{{!}}{{{birth date|}}}
 
  +
{{!}}-valign="top"}}
 
  +
Semantic Mediawiki code follows.
{{#if:{{{country|}}}|
 
  +
! {{lang
 
  +
-->{{#switch:{{{structure|main}}}
| en = Country:
 
  +
|main=
| ru = Страна:
 
  +
{{DISPLAYTITLE:{{{id|}}}|noreplace}}
}}
 
  +
{{#cargo_store:
{{!}}{{{country|}}}
 
  +
_table = professional_commentators
{{!}}-valign="top"}}
 
{{#if:{{{lang|}}}|
+
| image = {{{image|}}}
  +
| id = {{{id|}}}
! {{lang
 
 
| name = {{{name|}}}
| en = Commentating language:
 
 
| romanized_name = {{{romanized name|}}}
| ru = Язык комментирования:
 
}}
+
| birth_date = {{{birth date|}}}
{{!}}{{{lang|}}}
+
| country = {{{country|}}}
  +
| language = {{{lang|}}}
{{!}}-valign="top"}}
 
  +
}}
{{#if:{{{organization|}}}|
 
  +
[[Category:Professional commentators]]
! {{lang
 
  +
|hidden=
| en = Organization:
 
 
}}
| ru = Организация:
 
  +
</includeonly><noinclude>
}}
 
  +
{{#cargo_declare:
{{!}}{{{organization|}}}
 
  +
_table = professional_commentators
{{!}}-valign="top"}}
 
  +
| image = File
| colspan="2" style="text-align:center; font-size: 120%; ;color:white; background-color:#b44335" | {{lang
 
| en = '''Links'''
+
| id = String
  +
| name = String
| ru = '''Ссылки'''
 
  +
| romanized_name = String
}}
 
  +
| birth_date = Date
{{!}}-valign="top"
 
  +
| country = String
{{#if:{{{site|}}}|
 
  +
| language = String
! {{lang
 
  +
}}
| en = Website:
 
 
{{Doc}} [[Category:Infobox templates]] [[zh:Template:Commentator infobox]]</noinclude>
| ru = Сайт:
 
}}
 
{{!}} [http://www.{{{site}}} {{{site}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{twitch|}}}|
 
! {{lang
 
| en = Twitch:
 
}}
 
{{!}} [http://www.twitch.tv/{{{twitch}}} {{{twitch}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{facebook|}}}|
 
! {{lang
 
| en = Facebook:
 
}}
 
{{!}} [https://facebook.com/{{{facebook}}} {{{facebook}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{twitter|}}}|
 
! {{lang
 
| en = Twitter:
 
}}
 
{{!}} [https://twitter.com/{{{twitter}}} {{{twitter}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{vk|}}}|
 
! {{lang
 
| en = VK:
 
| ru = ВКонтакте:
 
}}
 
{{!}} [https://vk.com/{{{vk}}} {{{vk}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{youtube|}}}|
 
! {{lang
 
| en = YouTube:
 
}}
 
{{!}} [https://youtube.com/user/{{{youtube}}} {{{youtube}}}]|}}
 
|}
 
[[Category:Casters{{if lang}}]]
 
[[Category:Commentators{{if lang}}]]</includeonly>
 
<noinclude>{{Documentation}}[[Category:Infobox templates]]</noinclude>
 

Revision as of 00:11, 10 October 2020

This template defines the table "professional_commentators". View table.

Documentation for Template:Commentator infobox [ Usage | View | Edit | Purge | Subpages ]

This template produces an Infobox on a player page.

Usage

{{Commentator infobox
| id = 
| image = 
| name = 
| romanized name = 
| birth date = YYYY-MM-DD
| country = 
| lang = 
| organization = 
| site = 
| twitch = 
| facebook = 
| twitter = 
| vk = 
| youtube = 
}}

Example

Unknown commentator
Unknown
Background Information
Name:Test Commentator
Birthdate:1999-12-12 (age 24)
Links