Difference between revisions of "Template:IS link"

From QBWiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by the same user not shown)
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 [https://regex101.com/r/vHpXf3/1 <nowiki>/^(IS-)[0-9]{0,2}([24680]+|[13579]+A)$/</nowiki>] (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"

Latest revision as of 12:25, 8 May 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