Dota 2 Wiki
(Added #declare)
mNo edit summary
(25 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox"
+
<includeonly>{{#invoke:Infobox|main
  +
| title = {{{id|{{PAGENAME}}}}}
|-
 
 
| image = {{{image|}}}
| colspan="2" style="text-align:center; font-size: large; ;color:white; background-color:#b44335" | <!--'''{{{id|}}}'''--> {{PAGENAME}}
 
  +
| heading1 = Background Information
|-
 
  +
| trait1 = Name
| colspan="2" style="text-align:center;"| {{#if:{{{image|}}}|[[image:{{{image}}}|center|256px]]|}}
 
 
| value1 = {{{name|}}}
|-
 
 
| trait2 = Romanized name
| colspan="2" style="text-align:center; font-size: 120%; ;color:white; background-color:#b44335" | '''Background Information'''
 
 
| value2 = {{{romanized name|}}}
{{!}}-valign="top"
 
  +
| trait3 = Birthdate
{{#if:{{{name|}}}|
 
 
| value3 = {{#if:{{{birth date|}}}|{{Birth date and age|{{{birth date|}}}}}}}
{{!}}-
 
 
| trait4 = Country
! valign="top"{{!}} Name:
 
  +
| value4 = {{#if:{{{country|}}}|{{Flag|{{{country}}}}} {{{country}}}}}
{{!}}{{{name|}}}
 
  +
| trait5 = Language
{{!}}-valign="top"}}
 
  +
| value5 = {{#if:{{{lang|}}}|{{Flag|{{{lang}}}}} {{{lang}}}}}
{{#if:{{{romanized name|}}}|
 
 
| trait6 = Organization
! Romanized name:
 
 
| value6 = {{{organization|}}}
{{!}}{{{romanized name|}}}
 
  +
| heading7 = Links
{{!}}-valign="top"}}
 
 
| trait7 = Website
{{#if:{{{birth date|}}}|
 
 
| value7 = {{#if:{{{site|}}}|[{{{site}}} Link]}}
! Date of birth:
 
 
| trait8 = Facebook
{{!}}{{Birth date and age|{{{birth date|}}}}}
 
 
| value8 = {{#if:{{{facebook|}}}|[http://facebook.com/{{{facebook}}} {{{facebook}}}]}}
{{!}}-valign="top"}}
 
 
| trait9 = Twitter
{{#if:{{{country|}}}|
 
 
| value9 = {{#if:{{{twitter|}}}|[http://twitter.com/{{{twitter}}} {{{twitter}}}]}}
! Country:
 
  +
| trait10 = Weibo
{{!}}{{{country|}}}
 
  +
| value10 = {{#if:{{{weibo|}}}|[http://weibo.com/{{{weibo}}} {{{weibo}}}]}}
{{!}}-valign="top"}}
 
  +
| trait11 = VK
{{#if:{{{lang|}}}|
 
 
| value11 = {{#if:{{{vk|}}}|[http://vk.com/{{{vk}}} {{{vk}}}]}}
! Commentating language:
 
  +
| trait12 = Twitch
{{!}}{{{lang|}}}
 
 
| value12 = {{#if:{{{twitch|}}}|[http://www.twitch.tv/{{{twitch}}} {{{twitch}}}]}}
{{!}}-valign="top"}}
 
  +
| trait13 = YouTube
{{#if:{{{organization|}}}|
 
 
| value13 = {{#if:{{{youtube|}}}|[http://youtube.com/c/{{{youtube}}} {{{youtube|}}}]}}
! Organization:
 
  +
}}<!--
{{!}}{{{organization|}}}
 
  +
{{!}}-valign="top"}}
 
  +
Semantic Mediawiki code follows.
| colspan="2" style="text-align:center; font-size: 120%; ;color:white; background-color:#b44335" | '''Links'''
 
  +
{{!}}-valign="top"
 
{{#if:{{{site|}}}|
+
-->{{#switch:{{{structure|main}}}
! Website:
 
{{!}} [http://www.{{{site}}} {{{site}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{twitch|}}}|
 
! Twitch:
 
{{!}} [http://www.twitch.tv/{{{twitch}}} {{{twitch}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{facebook|}}}|
 
! Facebook:
 
{{!}} [https://facebook.com/{{{facebook}}} {{{facebook}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{twitter|}}}|
 
! Twitter:
 
{{!}} [https://twitter.com/{{{twitter}}} {{{twitter}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{vk|}}}|
 
! VK:
 
{{!}} [https://vk.com/{{{vk}}} {{{vk}}}]|}}
 
{{!}}-valign="top"}}
 
{{#if:{{{youtube|}}}|
 
! YouTube:
 
{{!}} [https://youtube.com/user/{{{youtube}}} {{{youtube}}}]|}}
 
|}
 
{{#switch:{{{structure|main}}}
 
 
|main=
 
|main=
  +
{{DISPLAYTITLE:{{{id|}}}|noreplace}}
{{#declare:id=id
 
  +
{{#cargo_store:
| image=image
 
  +
_table = professional_commentators
| name=name
 
  +
| image = {{{image|}}}
| romanized name=romanized name
 
  +
| id = {{{id|}}}
| birth date=birth date
 
 
| name = {{{name|}}}
| country=country
 
 
| romanized_name = {{{romanized name|}}}
| language=lang
 
 
| birth_date = {{{birth date|}}}
| organization=organization
 
 
| country = {{{country|}}}
| site=site
 
 
| language = {{{lang|}}}
|twitch=twitch
 
|facebook=facebook
 
|twitter=twitter
 
|vk=vk
 
|youtube=youtube
 
 
}}
 
}}
[[Category:Casters]]
+
[[Category:Professional commentators]]
[[Category:Commentators]]
 
 
|hidden=
 
|hidden=
 
}}
 
}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
  +
{{#cargo_declare:
{{Doc}}
 
  +
_table = professional_commentators
[[Category:Infobox templates]]
 
  +
| image = File
</noinclude>
 
  +
| id = String
  +
| name = String
  +
| romanized_name = String
  +
| birth_date = Date
 
| country = String
 
| language = String
 
}}
  +
{{Doc}} [[Category:Infobox templates]] [[zh:Template:Commentator infobox]]</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