This is a userpage. Userpages do not necessarily meet our guidelines for notability or fact-checking!
Follow us on Twitter @LiquipediaSC2 if you'd like to be kept up to date on all things StarCraft II!
Liquipedia app just got new player and team pages. Download the app here!Liquipedia app just got brand new player and team pages with schedule, results, stats, achievements and more. Download the app on iOS and Android!Liquipedia app major update: Revamped player and team pages with schedule, results, stats, achievements and more. Download the latest version on iOS or Android and read our update blog here.

User:FO-nTTaX/Project/Team Templates

From Liquipedia StarCraft 2 Wiki

Updating Team Templates[edit]

New Format[edit]

Wiki Team/ Team2/ TeamShort/ Team2Short/ TeamBracket/ TeamIcon/ TeamPart/ TeamPage/
SCBW
SC2
D2
HS
HotS
Smash
CS

Highlighting Classes[edit]

Wiki Team/ Team2/ TeamShort/ Team2Short/ TeamBracket/
SCBW
SC2
D2
HS
HotS
Smash
CS
Overwatch
WC3
Fighters
RocketLeague
Clash

Createteams-templates.json[edit]

{"templates":{"Team":{"wikitext": "<span class=\"team-template-team-standard\"><span class=\"team-template-image\">[[File:{$image$}|link={$link$}]]</span> <span class=\"team-template-text\">{$namewithlink$}</span></span>","category": "Team Template Standard"},"TeamShort":{"wikitext": "<span class=\"team-template-team-short\"><span class=\"team-template-image\">[[File:{$image$}|link={$link$}]]</span> <span class=\"team-template-text\">[[{$link$}|{$shortname$}]]</span></span>","category": "Team Template Short"},"Team2":{"wikitext": "<span class=\"team-template-team2-standard\"><span class=\"team-template-text\">{$namewithlink$}</span> <span class=\"team-template-image\">[[File:{$image$}|link={$link$}]]</span></span>","category": "Team2 Template Standard"},"Team2Short":{"wikitext": "<span class=\"team-template-team2-short\"><span class=\"team-template-text\">[[{$link$}|{$shortname$}]]</span> <span class=\"team-template-image\">[[File:{$image$}|link={$link$}]]</span></span>","category": "Team2 Template Short"},"TeamBracket":{"wikitext": "<span class=\"team-template-team-bracket\"><span class=\"team-template-image\">[[File:{$image$}|link=|x18px]]</span> <span class=\"team-template-text\">{$name$}</span></span>","category": "Team Template Bracket"},"TeamIcon":{"wikitext": "<span class=\"team-template-team-icon\"><span class=\"team-template-image\">[[File:{$image$}|link={$link$}]]</span></span>","category": "Team Template Icons"},"TeamPart":{"wikitext": "<div class=\"team-template-team-part\"><span class=\"team-template-image\">[[File:{$image$}|link={$link$}]]</span></div>","category": "Team Template Participants"}}}

Regex[edit]

Team Templates[edit]
Team Template Bracket: '\[\[(.*)\|link=(.*)<span(.*)>(.*)</span><noinclude>(.*)</noinclude>' '<span class="team-template-team-bracket"><span class="team-template-image">[[\1|link=|x18px]]</span> <span class="team-template-text">\4</span></span><noinclude>\5</noinclude>'
Team Template Standard: '\[\[(.*)\]\](.*)\[\[(.*)\]\]<noinclude>(.*)</noinclude>' '<span class="team-template-team-standard"><span class="team-template-image">[[\1]]</span> <span class="team-template-text">[[\3]]</span></span><noinclude>\4</noinclude>'
Team2 Template Standard: '\[\[(.*)\]\](.*)\[\[(.*)\]\]<noinclude>(.*)</noinclude>' '<span class="team-template-team2-standard"><span class="team-template-text">[[\1]]</span> <span class="team-template-image">[[\3]]</span></span><noinclude>\4</noinclude>'
Team Template Short: '\[\[(.*)\]\](.*)\[\[(.*)\]\]<noinclude>(.*)</noinclude>' '<span class="team-template-team-short"><span class="team-template-image">[[\1]]</span> <span class="team-template-text">[[\3]]</span></span><noinclude>\4</noinclude>'
Team2 Template Short: '\[\[(.*)\]\](.*)\[\[(.*)\]\]<noinclude>(.*)</noinclude>' '<span class="team-template-team2-short"><span class="team-template-text">[[\1]]</span> <span class="team-template-image">[[\3]]</span></span><noinclude>\4</noinclude>'
Team Template Icons: '\[\[(.*)\]\]<noinclude>(.*)</noinclude>' '<span class="team-template-team-icon"><span class="team-template-image">[[\1]]</span></span><noinclude>\2</noinclude>'
Team Template Participants: '<div(.*)>\[\[(.*)\]\]</div><noinclude>(.*)</noinclude>' '<div class="team-template-team-part"><span class="team-template-image">[[\2]]</span></div><noinclude>\3</noinclude>'
New highlighting class[edit]
python3 pwb.py replace -regex -excepttext:"highlightingclass" -category:"Team Template Standard" "\<span class=\"team-template-team-standard\"\>(.*?)\<span class=\"team-template-text\"\>\[\[(.*?)\|(.*?)\]\]\<\/span\>(.*?)" "<span data-highlightingclass=\"\2\" class=\"team-template-team-standard\">\1<span class=\"team-template-text\">[[\2|\3]]</span>\4" -lang:counterstrike
python3 pwb.py replace -regex -excepttext:"highlightingclass" -category:"Team Template Standard" "\<span class=\"team-template-team-standard\"\>(.*?)\<span class=\"team-template-text\"\>\[\[(.*?)\]\]\<\/span\>(.*?)" "<span data-highlightingclass=\"\2\" class=\"team-template-team-standard\">\1<span class=\"team-template-text\">[[\2]]</span>\3" -lang:counterstrike
python3 pwb.py replace -regex -excepttext:"highlightingclass" -category:"Team2 Template Standard" "\<span class=\"team-template-team2-standard\"\>(.*?)\<span class=\"team-template-text\"\>\[\[(.*?)\|(.*?)\]\]\<\/span\> \<span(.*?)" "<span data-highlightingclass=\"\2\" class=\"team-template-team2-standard\">\1<span class=\"team-template-text\">[[\2|\3]]</span> <span\4" -lang:counterstrike
python3 pwb.py replace -regex -excepttext:"highlightingclass" -category:"Team2 Template Standard" "\<span class=\"team-template-team2-standard\"\>(.*?)\<span class=\"team-template-text\"\>\[\[(.*?)\]\]\<\/span\>(.*?)" "<span data-highlightingclass=\"\2\" class=\"team-template-team2-standard\">\1<span class=\"team-template-text\">[[\2]]</span>\3" -lang:counterstrike
python3 pwb.py replace -regex -excepttext:"highlightingclass" -category:"Team Template Short" "\<span class=\"team-template-team-short\"\>(.*?)[[File:(.*?)\|link=(.*?)\]\](.*?)" "<span data-highlightingclass=\"\3\" class=\"team-template-team-short\">\1[[File:\2|link=\3]]\4" -lang:counterstrike
python3 pwb.py replace -regex -excepttext:"highlightingclass" -category:"Team2 Template Short" "\<span class=\"team-template-team2-short\"\>(.*?)[[File:(.*?)\|link=(.*?)\]\](.*?)" "<span data-highlightingclass=\"\3\" class=\"team-template-team2-short\">\1[[File:\2|link=\3]]\4" -lang:counterstrike