Difference between revisions of "Template:IS link"

From QBWiki
Jump to navigation Jump to search
m
m
Line 3: Line 3:
 
|[https://www.naqt.com/stats/packet-set/team.jsp?playoffs=false&packet_set_id={{IS map|{{{1}}}}} IS-{{{1}}}]
 
|[https://www.naqt.com/stats/packet-set/team.jsp?playoffs=false&packet_set_id={{IS map|{{{1}}}}} IS-{{{1}}}]
 
}}}}<noinclude>
 
}}}}<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.
+
Given the name of an IS set as /^(IS-)[0-9]{0,2}([24680]|[13579]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.
  
 
{| class="wikitable"
 
{| class="wikitable"

Revision as of 21:23, 7 April 2022

Given the name of an IS set as /^(IS-)[0-9]{0,2}([24680]|[13579]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}}

IS-203A IS-203A