Difference between revisions of "Template:Infobox bot"

(Created page with "<includeonly><!-- --><div class="fo-nttax-infobox-wrapper"> <div class="fo-nttax-infobox"> <div> <div class="infobox-header"><span class="infobox-buttons"><nowiki>[</nowiki>[...")
 
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
  
--><div class="fo-nttax-infobox-wrapper">
+
-->__NOTOC__<div class="fo-nttax-infobox-wrapper">
 
<div class="fo-nttax-infobox">
 
<div class="fo-nttax-infobox">
 
<div>
 
<div>
<div class="infobox-header"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:Infobox_bot|h]]<nowiki>]</nowiki></span>{{RaceIcon|{{{race|}}}}} {{{id|{{PAGENAME}}}}}</div>
+
<div class="infobox-header"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:Infobox_bot|h]]<nowiki>]</nowiki></span>{{RaceIcon|{{{race|}}}}} {{{id|{{PAGENAME}}}}}</div>{{#set:Plays race={{{race|}}}}}
 
</div><!--
 
</div><!--
  
Image
+
Author(s)
  
-->{{#if:{{{image|}}}|
+
-->
 
<div>
 
<div>
<div class="infobox-image">[[Image:{{{image}}}|center|294px]]</div>
+
<div class="infobox-cell-2 infobox-description">Author(s):</div>
 +
<div class="infobox-cell-2">{{{author|?}}}</div>{{#set:Author={{{author|}}}}}
 
</div>
 
</div>
}}<!--
+
<!--
 
 
Caption
 
 
 
-->{{#if:{{{caption|}}}|
 
<div>
 
<div class="infobox-center"><small>{{{caption}}}</small></div>
 
</div>
 
}}<!--
 
 
 
--><div>
 
<div class="infobox-header infobox-header-2">Bot Information</div>
 
</div><!--
 
 
 
Name
 
 
 
-->{{#if:{{{name|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Name:</div>
 
<div class="infobox-cell-2">{{{name}}}</div>
 
</div>
 
}}<!--
 
 
 
Romanized Name
 
 
 
-->{{#if:{{{romanized_name|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Romanized Name:</div>
 
<div class="infobox-cell-2">{{{romanized_name}}}</div>
 
</div>
 
}}<!--
 
 
 
Programmer
 
 
 
-->{{#if:{{{programmer|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Programmer:</div>
 
<div class="infobox-cell-2">{{{programmer}}}</div>
 
</div>
 
}}<!--
 
  
 
Affiliation
 
Affiliation
Line 59: Line 21:
 
<div>
 
<div>
 
<div class="infobox-cell-2 infobox-description">Affiliation:</div>
 
<div class="infobox-cell-2 infobox-description">Affiliation:</div>
<div class="infobox-cell-2">{{{affiliation}}}</div>
+
<div class="infobox-cell-2">{{{affiliation}}}</div>{{#set:Affiliation={{{affiliation|}}}}}
</div>
 
}}<!--
 
 
 
Version
 
 
 
-->{{#if:{{{version|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Version:</div>
 
<div class="infobox-cell-2">{{{version}}}</div>
 
</div>
 
}}<!--
 
 
 
Strategies
 
 
 
-->{{#if:{{{strategies|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Strategies:</div>
 
<div class="infobox-cell-2">{{{strategies}}}</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 86: Line 30:
 
<div>
 
<div>
 
<div class="infobox-cell-2 infobox-description">Country:</div>
 
<div class="infobox-cell-2 infobox-description">Country:</div>
<div class="infobox-cell-2">{{flag|{{lc:{{{country}}}}}}} [[:Category:{{{country}}}{{!}}{{{country}}}]]{{#if:{{{country2|}}}|<br>{{flag|{{lc:{{{country2}}}}}}} [[:Category:{{{country2}}}{{!}}{{{country2}}}]]}}</div>
+
<div class="infobox-cell-2">{{flag|{{lc:{{{country}}}}}}} {{{country}}} {{#set:Has country={{{country|}}}}} {{#if:{{{country2|}}}|<br>{{flag|{{lc:{{{country2}}}}}}} {{{country2}}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 97: Line 41:
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{race}}}}}
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{race}}}}}
 
   |z
 
   |z
   |zerg = [[:Category:Zerg Players|Zerg]]
+
   |zerg = [[:Category:Zerg Bots|Zerg]]
 
   |p
 
   |p
   |protoss = [[:Category:Protoss Players|Protoss]]
+
   |protoss = [[:Category:Protoss Bots|Protoss]]
 
   |t
 
   |t
   |terran = [[:Category:Terran Players|Terran]]
+
   |terran = [[:Category:Terran Bots|Terran]]
 
   |r
 
   |r
   |random = [[:Category:Random Players|Random]]
+
   |random = [[:Category:Random Bots|Random]][[Category:Random Bots|Random]]
   |pt = [[:Category:Protoss Players|Protoss]],&nbsp;[[:Category:Terran Players|Terran]]
+
   |pt = [[:Category:Protoss Bots|Protoss]],&nbsp;[[:Category:Terran Bots|Terran]]
   |tp = [[:Category:Terran Players|Terran]],&nbsp;[[:Category:Protoss Players|Protoss]]
+
   |tp = [[:Category:Terran Bots|Terran]],&nbsp;[[:Category:Protoss Bots|Protoss]]
   |pz = [[:Category:Protoss Players|Protoss]],&nbsp;[[:Category:Zerg Players|Zerg]]
+
   |pz = [[:Category:Protoss Bots|Protoss]],&nbsp;[[:Category:Zerg Bots|Zerg]]
   |tz = [[:Category:Terran Players|Terran]],&nbsp;[[:Category:Zerg Players|Zerg]]
+
   |tz = [[:Category:Terran Bots|Terran]],&nbsp;[[:Category:Zerg Bots|Zerg]]
   |zp = [[:Category:Zerg Players|Zerg]],&nbsp;[[:Category:Protoss Players|Protoss]]
+
   |zp = [[:Category:Zerg Bots|Zerg]],&nbsp;[[:Category:Protoss Bots|Protoss]]
   |zt = [[:Category:Zerg Players|Zerg]],&nbsp;[[:Category:Terran Players|Terran]]
+
   |zt = [[:Category:Zerg Bots|Zerg]],&nbsp;[[:Category:Terran Bots|Terran]]
 
   |a
 
   |a
   |all = [[:Category:Protoss Players|Protoss]],&nbsp;[[:Category:Zerg Players|Zerg]],&nbsp;[[:Category:Terran Players|Terran]]
+
  |ptz
  |false=
+
  |pzt
  |#default =[[Category:InfoboxRaceError]]
+
  |tpz
 +
  |tzp
 +
  |ztp
 +
  |zpt
 +
   |all = [[:Category:Protoss Bots|Protoss]],&nbsp;[[:Category:Zerg Bots|Zerg]],&nbsp;[[:Category:Terran Bots|Terran]]
 
}}</div>
 
}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Current Team
+
ELO Peak
  
-->{{#if:{{{team|}}}|
+
-->{{#if:{{{elo|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Team:</div>
+
<div class="infobox-cell-2 infobox-description">ELO peak:</div>
<div class="infobox-cell-2">[[{{{teamlink|{{{team}}}}}}|{{{team}}}]]</div>
+
<div class="infobox-cell-2">[http://bots-stats.krasi0.com/botDetails.php?id={{{ladderID}}} {{{elo}}}] {{#set:ELO peak={{{elo}}}|ladder ID={{{ladderID}}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Current Clan
+
BWAPI Version
  
-->{{#if:{{{clan|}}}|
+
-->
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Clan:</div>
+
<div class="infobox-cell-2 infobox-description">BWAPI version:</div>
<div class="infobox-cell-2">{{#ifexist:{{{clan}}}|[[{{{clan}}}]]|{{{clan}}}}}</div>
+
<div class="infobox-cell-2">[[BWAPI version::{{{version|?}}}]]</div>
 
</div>
 
</div>
}}<!--
+
<!--
  
Sponsor
+
Type
  
-->{{#if:{{{sponsor|}}}|
+
-->{{#if:{{{type|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Sponsor:</div>
+
<div class="infobox-cell-2 infobox-description">Type:</div>
<div class="infobox-cell-2">{{{sponsor}}}</div>
+
<div class="infobox-cell-2">{{{type}}}</div>{{#set:Bot Type={{{type|}}}}}
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Alternate IDs
+
Download
 +
 
 +
-->
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Download:</div>
 +
<div class="infobox-cell-2"><!--
 +
-->{{#if:{{{internalDownload|}}}| [[Bot Binary internal::{{{internalDownload|}}}|DLL]] }} <!--
 +
-->{{#if:{{{externalDownload|}}}| [{{{externalDownload|}}} DLL] {{#set:Bot Binary external={{{externalDownload|}}}}} }}
 +
</div></div>
 +
<!--
 +
 
 +
Language
  
-->{{#if:{{{ids|}}}|
+
-->{{#if:{{{language|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Alternate IDs:</div>
+
<div class="infobox-cell-2 infobox-description">Language:</div>
<div class="infobox-cell-2">{{{ids}}}</div>
+
<div class="infobox-cell-2">{{{language}}}</div>{{#set:Bot programmed in={{{language|}}}}}
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Nicknames
+
Source code
  
-->{{#if:{{{nicknames|}}}|
+
-->{{#if:{{{sourceCode|}}} {{{github|}}} {{{bitbucket|}}} {{{googleCode|}}}  |
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Nicknames:</div>
+
<div class="infobox-cell-2 infobox-description">Source code:</div>
<div class="infobox-cell-2">{{{nicknames}}}</div>
+
<div class="infobox-cell-2"><!--
 +
-->{{#if:{{{sourceCode|}}}| [[File:Dropbox black.png|24px|link={{{sourceCode|}}}]] {{#set:Bot Source Code={{{sourceCode|}}}}} }} <!--
 +
-->{{#if:{{{bitbucket|}}}| [[File:Bitbucket black.png|24px|link={{{bitbucket|}}}]] {{#set:Bot bitbucket={{{bitbucket|}}}}} }} <!--
 +
-->{{#if:{{{googleCode|}}}| [[File:Google black.png|24px|link={{{googleCode|}}}]] {{#set:Bot Google Code={{{googleCode|}}}}} }} <!--
 +
-->{{#if:{{{github|}}}| [[File:Github.png|24px|link={{{github|}}}]] {{#set:Bot github={{{github|}}}}} }}
 +
</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Icons
+
Links
  
 
-->{{#if:{{{tlpdint|}}} {{{tlpdkr|}}} {{{tlpdsospa|}}} {{{site|}}} {{{tlstream|}}} {{{twitch|}}} {{{afreeca|}}} {{{own3d|}}} {{{stream|}}} {{{youtube|}}} {{{twitter|}}} {{{facebook|}}} {{{gplus|}}} {{{daumcafe|}}} {{{vk|}}} {{{tlprofile|}}} {{{iccup|}}} {{{reddit|}}} {{{fanclub|}}}|
 
-->{{#if:{{{tlpdint|}}} {{{tlpdkr|}}} {{{tlpdsospa|}}} {{{site|}}} {{{tlstream|}}} {{{twitch|}}} {{{afreeca|}}} {{{own3d|}}} {{{stream|}}} {{{youtube|}}} {{{twitter|}}} {{{facebook|}}} {{{gplus|}}} {{{daumcafe|}}} {{{vk|}}} {{{tlprofile|}}} {{{iccup|}}} {{{reddit|}}} {{{fanclub|}}}|
Line 202: Line 166:
 
<div>
 
<div>
 
<div class="infobox-center">{{{achievements}}}</div>
 
<div class="infobox-center">{{{achievements}}}</div>
</div>
 
}}<!--
 
 
History (Teams)
 
 
-->{{#if:{{{history|}}}|
 
<div>
 
<div class="infobox-header infobox-header-2">History</div>
 
</div>
 
<div>
 
<div class="infobox-center">{{{history}}}</div>
 
 
</div>
 
</div>
 
}}
 
}}
  
</div><!--
+
</div></div><!--
  
 
Categories
 
Categories
  
 
-->{{#ifeq:{{NAMESPACE}}||
 
-->{{#ifeq:{{NAMESPACE}}||
 +
{{#switch:{{lc:{{{race}}}}}
 +
  |z
 +
  |zerg = [[Category:Zerg Bots]]
 +
  |p
 +
  |protoss = [[Category:Protoss Bots]]
 +
  |t
 +
  |terran = [[Category:Terran Bots]]
 +
  |r
 +
  |random = [[Category:Random Bots|Random]]
 +
  |pt = [[Category:Terran Bots]][[Category:Protoss Bots]]
 +
  |tp = [[Category:Terran Bots]][[Category:Protoss Bots]]
 +
  |pz = [[Category:Zerg Bots]][[Category:Protoss Bots]]
 +
  |tz = [[Category:Zerg Bots]][[Category:Terran Bots]]
 +
  |zp =[[Category:Zerg Bots]][[Category:Protoss Bots]]
 +
  |zt = [[Category:Zerg Bots]][[Category:Terran Bots]]
 +
  |a
 +
  |all = [[Category:Zerg Bots]][[Category:Terran Bots]][[Category:Protoss Bots]]
 +
  |false=
 +
  |#default =[[Category:InfoboxRaceError]]
 +
}}
 
[[Category:Bots]]
 
[[Category:Bots]]
 
}}<!--this one from before the categories
 
}}<!--this one from before the categories
  
 
--></includeonly><noinclude>[[Category:Infoboxes]] [[Category:Templates]] {{documentation}}</noinclude>
 
--></includeonly><noinclude>[[Category:Infoboxes]] [[Category:Templates]] {{documentation}}</noinclude>

Latest revision as of 22:42, 16 July 2015

(view - edit) Documentation

[e][h]Picon.png Best Bot
Author(s):
Jung Yoon Jong
Country:
South Korea South Korea
Race:
BWAPI version:
?
Download:
Source code:
Github.png
Links

This template produces an Infobox on a player page.

Parameters

These are the variables in the Player template:

  • id = Main ID
  • author = Name of the author
  • affiliation = (optional) Affiliation of the programmer
  • country = (optional) Country
  • country2 = (optional) Second country (If needed)
  • race = (optional) Current Race. P, T, Z, R or All will suffice. Any two-race combination work too. Example: tz, pz, pt, etc.
  • elo = (optional) ELO peak in krasi0ladder
  • ladderID = (optional) ID at krasi0ladder
  • version = BWAPI version of the bot
  • type = (optional) bot type: DLL or Proxy
  • internalDownload = (optional) Binary version of the bot (hosted at starcraftai.com)
  • externalDownload = (optional) Binary version of the bot (hosted in another web)
  • language = (optional) Program language of the bot
  • sourceCode = (optional) Link to source code
  • github = (optional) Link to GitHub source code
  • bitbucket = (optional) Link to Bitbucket source code
  • googleCode = (optional) Link to Google Code source code
  • site = (optional) Bot's Homepage
  • tlstream = (optional) Stream Name on TeamLiquid.net
  • twitch = (optional) Username on Twitch
  • own3d = (optional) Username on own3D.tv
  • stream = (optional) Link to stream (if not on Twitch or Own3D.tv)
  • youtube = (optional) YouTube Channel Name
  • twitter = (optional) Username on Twitter
  • facebook =(optional) Username on Facebook
  • gplus = (optional)Username on Google Plus
  • tlprofile = (optional)Username on TeamLiquid.net
  • reddit = (optional) Username on Reddit.com
  • iccup = (optional)Username on ICCup
  • fanclub = (optional) TeamLiquid.net Fanclub
  • achievements = (optional) List of premier tournament wins or other achievements.

Example

The following code was used to create the infobox on this page.

{{Infobox bot
|id=Best Bot
|author=Jung Yoon Jong
|race=P
|country=South Korea
|github=https://github.com/davechurchill/ualbertabot
|tlpdidkr=697
|fanclub=http://www.teamliquid.net/forum/viewmessage.php?topic_id=369927
|twitter=SKT1Rain
|achievements=
}}

Copy / Paste

{{Infobox bot
|id=
|author=
|affiliation=
|country=
|country2=
|race=
|elo=
|ladderID=
|version=
|type=
|internalDownload=
|externalDownload=
|language=
|sourceCode=
|github=
|bitbucket=
|googleCode=
|site=
|tlstream=
|twitch=
|own3d=
|stream=
|youtube=
|twitter=
|facebook=
|gplus=
|tlprofile=
|reddit=
|iccup=
|fanclub=
|achievements=
}}