TheBB/aligulac — pull request #71 by Prillan (2013-07-07 22:34:49+00:00)
Title: Parse Liquipedia (wiki code) SE brackets in the bracket predictor.

Hello.

I discovered the bracket predictor today and found that I wanted to predict the WCS EU qualifiers. This was not as easy as I had hoped so I made this feature so you can paste a Liquipedia bracket and convert it to an "Aligulac" bracket.

This has been tested in a separate file so I advice that you test it before merging.

Perhaps one should add a help text also.

Example:

{{4SEBracket
|R1=Semifinals (Bo3)
|R2=Finals (Bo3)

|R1D1=Lucifron |R1D1race=t |R1D1flag=es |R1D1score=1 |R1D1win=
|R1D2=TLO |R1D2race=z |R1D2flag=de |R1D2score=2 |R1D2win=1

|R1D3=Life |R1D3race=z |R1D3flag=kr |R1D3score= |R1D3win=
|R1D4=HyuN |R1D4race=z |R1D4flag=kr |R1D4score= |R1D4win=

|R2W1=TLO |R2W1race=z |R2W1flag=de |R2W1score= |R2W1win=
|R2W2= |R2W2race= |R2W2flag= |R2W2score= |R2W2win=
}}

becomes

-
TLO de z
Life kr z
HyuN kr z

since TLO won the first game.

Comments are very welcome.

Cheers!