Template:Map/Dota/doc

Template page
< Template:Map/Dota
Revision as of 12:50, 29 April 2024 by Couchor (talk | contribs) (Created page with "To be used inside a Template:Match call under a map+number parameter, like '''|map1=<nowiki>{{Map/Dota}}</nowiki> You can use API:MapData to generate all of this for you once the match has ended if you have the API id. ===Parameters:=== {|class="wikitable" !Parameter !Description |- |'''id''' |If the match has an API id |- |'''winner''' |Either number 1 or 2, depending on if p1 or p2 was the winner |- |'''dire''' |Either number 1 or 2, depending on if p1 or p2...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To be used inside a Template:Match call under a map+number parameter, like |map1={{Map/Dota}}

You can use API:MapData to generate all of this for you once the match has ended if you have the API id.

Parameters:

Parameter Description
id If the match has an API id
winner Either number 1 or 2, depending on if p1 or p2 was the winner
dire Either number 1 or 2, depending on if p1 or p2 played on the Dire side
fp Either number 1 or 2, depending on if p1 or p2 had first pick in the draft
p1picks Comma-separated list of the heroes picked by p1 in the order they happened in the draft
p2picks Comma-separated list of the heroes picked by p2 in the order they happened in the draft
p1bans Comma-separated list of the heroes banned by p1 in the order they happened in the draft
p2picks Comma-separated list of the heroes banned by p2 in the order they happened in the draft
p1players Comma-separated list of the pagenames of the players in the same order as the picks, to correlate them
p2players Comma-separated list of the pagenames of the players in the same order
p1kills Amount of kills p1 got
p2kills Amount of kills p2 got
duration mm:ss format of how long the map lasted
yt Youtube VOD id
vod Link to VOD

Example

{{Map/Dota
  |id=7391149823
  |winner=2
  |dire=1
  |fp=1
  |p1picks=Spirit Breaker,Ancient Apparition,Hoodwink,Faceless Void,Viper
  |p1players=People/Collapse,People/Miposhka,People/Mira,People/Yatoro,People/Larl
  |p2picks=Bristleback,Grimstroke,Pugna,Spectre,Lina
  |p2players=People/Noticed,People/Fng,People/sayuw,People/Kiritych~,People/squad1x
  |p1bans=Templar Assassin,Shadow Demon,Chaos Knight,Dark Willow,Dazzle,Puck,Earthshaker
  |p2bans=Primal Beast,Enchantress,Kunkka,Phoenix,Invoker,Pangolier,Earth Spirit
  |p1kills=10
  |p2kills=32
  |duration=33:25
  |yt=kCqyOes7f7w}}

Will look something like this:

Map-Dota_example.png