Difference between revisions of "Template:IS link"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) m |
Kevin Wang (talk | contribs) |
||
Line 1: | Line 1: | ||
− | {{# | + | {{#if:{{{1|}}}|{{#vardefine:series|{{#explode:{{{1|}}}|-|1}}}}{{#if:{{#var:series}} |
− | | | + | |[https://www.naqt.com/stats/packet-set/team.jsp?playoffs=false&packet_set_id={{IS map|{{#var:series}}}} {{{1}}}] |
− | + | |[https://www.naqt.com/stats/packet-set/team.jsp?playoffs=false&packet_set_id={{IS map|{{{1}}}}} IS-{{{1}}}] | |
− | + | }}}}<noinclude> | |
− | + | Given the name of an IS set as /(IS-)[0-9]{1,3}A?/ (either the full name or just the number), return a link to the NAQT page for that set. The mechanism by which this is accomplished is terrible and hacky and relies on retrieving "packet_set_id" values from [[Template:IS map]], which is manually populated. | |
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | }}{{# | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | A | ||
− | {| class=wikitable | + | {| class="wikitable" |
− | ! | + | ! Input |
− | ! | + | ! Output |
− | |||
|- | |- | ||
− | | | + | | |
− | + | <nowiki> | |
− | | | + | {{IS link|203A}} |
− | |} | + | {{IS link|IS-203A}} |
− | </noinclude> | + | </nowiki> |
+ | | | ||
+ | {{IS link|203A}} | ||
+ | {{IS link|IS-203A}} | ||
+ | |}</noinclude> |
Revision as of 20:20, 7 April 2022
Given the name of an IS set as /(IS-)[0-9]{1,3}A?/ (either the full name or just the number), return a link to the NAQT page for that set. The mechanism by which this is accomplished is terrible and hacky and relies on retrieving "packet_set_id" values from Template:IS map, which is manually populated.
Input | Output |
---|---|
{{IS link|203A}} {{IS link|IS-203A}} |