<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://old-wiki.warthunder.com/index.php?action=history&amp;feed=atom&amp;title=Template_talk%3ASpecs-Link</id>
		<title>Template talk:Specs-Link - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://old-wiki.warthunder.com/index.php?action=history&amp;feed=atom&amp;title=Template_talk%3ASpecs-Link"/>
		<link rel="alternate" type="text/html" href="https://old-wiki.warthunder.com/index.php?title=Template_talk:Specs-Link&amp;action=history"/>
		<updated>2026-05-21T03:33:15Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://old-wiki.warthunder.com/index.php?title=Template_talk:Specs-Link&amp;diff=136423&amp;oldid=prev</id>
		<title>U41991654 at 10:39, 5 September 2022</title>
		<link rel="alternate" type="text/html" href="https://old-wiki.warthunder.com/index.php?title=Template_talk:Specs-Link&amp;diff=136423&amp;oldid=prev"/>
				<updated>2022-09-05T10:39:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:39, 5 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--[[User:U41991654|U41991654]] ([[User talk:U41991654|talk]]) 18:14, 4 September 2022 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--[[User:U41991654|U41991654]] ([[User talk:U41991654|talk]]) 18:14, 4 September 2022 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Vehicle codes/IDs are internally mapped to their individual page titles and display names, which are queried and combined via the template to form the formatted links. You appear to have been able to find the display names or some equivalent previously, so you could theoretically cut out half the work by hard-coding them (eg &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[{{#unit:hunter_f1|article}}|Hunter F.1]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), although this would currently only save 1 second of CPU time out of 5 at present. Otherwise, you would likely have to create your own map of ID to page: if it helps, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#unit:ID|article}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; gives the current page title for the given ID, and each vehicle page has the associated vehicle ID as the &amp;quot;code&amp;quot; parameter of the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Specs-Card}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; template at the top of the page. Of course, with hard-coding either the display name or the entire link, you lose the functionality of the link automatically updating if the vehicle's name changes at any point. - [[User:U38088265|U38088265]] ([[User talk:U38088265|talk]]) 19:51, 4 September 2022 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Vehicle codes/IDs are internally mapped to their individual page titles and display names, which are queried and combined via the template to form the formatted links. You appear to have been able to find the display names or some equivalent previously, so you could theoretically cut out half the work by hard-coding them (eg &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[{{#unit:hunter_f1|article}}|Hunter F.1]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), although this would currently only save 1 second of CPU time out of 5 at present. Otherwise, you would likely have to create your own map of ID to page: if it helps, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#unit:ID|article}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; gives the current page title for the given ID, and each vehicle page has the associated vehicle ID as the &amp;quot;code&amp;quot; parameter of the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Specs-Card}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; template at the top of the page. Of course, with hard-coding either the display name or the entire link, you lose the functionality of the link automatically updating if the vehicle's name changes at any point. - [[User:U38088265|U38088265]] ([[User talk:U38088265|talk]]) 19:51, 4 September 2022 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:: I think the links not being able to update themselves is an acceptable trade-off, the Units page is updated at least every major update. I've been able to find the display names via the localization files of the game, but I can't find any file that maps the units to a wiki page. Making my own map of ID to page has been on my mind for a while, but while most IDs have straightforward link equivalent, there's an important number of exceptions I have a hard time wrapping my head around. I was wondering how does the template query the links, if it is an API call I could make my script make that call (with appropriate rate-limiting), but I guess even if that was the case, that API would be kept private. Alternatively, would there be a way to make the template only be processed when revealed, instead of when the page loads? --[[User:U41991654|U41991654]] ([[User talk:U41991654|talk]]) 10:39, 5 September 2022 (UTC)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key test_wiki_wt_com:diff:version:1.11a:oldid:136408:newid:136423 --&gt;
&lt;/table&gt;</summary>
		<author><name>U41991654</name></author>	</entry>

	<entry>
		<id>https://old-wiki.warthunder.com/index.php?title=Template_talk:Specs-Link&amp;diff=136408&amp;oldid=prev</id>
		<title>U38088265: Response</title>
		<link rel="alternate" type="text/html" href="https://old-wiki.warthunder.com/index.php?title=Template_talk:Specs-Link&amp;diff=136408&amp;oldid=prev"/>
				<updated>2022-09-04T19:51:01Z</updated>
		
		<summary type="html">&lt;p&gt;Response&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:51, 4 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Is there a way to know how this template works exactly? Because the [[CDK Reference/Units]] uses this template so much, the time to load the page is at an unacceptable level. Links are convenient though, so I'm looking to know how exactly this template gets a link from a vehicle ID so that I can implement it in my code and pre-process the links instead of having the template process them every time someone tries to load the page&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Is there a way to know how this template works exactly? Because the [[CDK Reference/Units]] uses this template so much, the time to load the page is at an unacceptable level. Links are convenient though, so I'm looking to know how exactly this template gets a link from a vehicle ID so that I can implement it in my code and pre-process the links instead of having the template process them every time someone tries to load the page&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--[[User:U41991654|U41991654]] ([[User talk:U41991654|talk]]) 18:14, 4 September 2022 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--[[User:U41991654|U41991654]] ([[User talk:U41991654|talk]]) 18:14, 4 September 2022 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: Vehicle codes/IDs are internally mapped to their individual page titles and display names, which are queried and combined via the template to form the formatted links. You appear to have been able to find the display names or some equivalent previously, so you could theoretically cut out half the work by hard-coding them (eg &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[{{#unit:hunter_f1|article}}|Hunter F.1]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), although this would currently only save 1 second of CPU time out of 5 at present. Otherwise, you would likely have to create your own map of ID to page: if it helps, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#unit:ID|article}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; gives the current page title for the given ID, and each vehicle page has the associated vehicle ID as the &amp;quot;code&amp;quot; parameter of the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Specs-Card}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; template at the top of the page. Of course, with hard-coding either the display name or the entire link, you lose the functionality of the link automatically updating if the vehicle's name changes at any point. - [[User:U38088265|U38088265]] ([[User talk:U38088265|talk]]) 19:51, 4 September 2022 (UTC)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key test_wiki_wt_com:diff:version:1.11a:oldid:136397:newid:136408 --&gt;
&lt;/table&gt;</summary>
		<author><name>U38088265</name></author>	</entry>

	<entry>
		<id>https://old-wiki.warthunder.com/index.php?title=Template_talk:Specs-Link&amp;diff=136397&amp;oldid=prev</id>
		<title>U41991654: Question regarding the inner workings of the template</title>
		<link rel="alternate" type="text/html" href="https://old-wiki.warthunder.com/index.php?title=Template_talk:Specs-Link&amp;diff=136397&amp;oldid=prev"/>
				<updated>2022-09-04T18:14:50Z</updated>
		
		<summary type="html">&lt;p&gt;Question regarding the inner workings of the template&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Is there a way to know how this template works exactly? Because the [[CDK Reference/Units]] uses this template so much, the time to load the page is at an unacceptable level. Links are convenient though, so I'm looking to know how exactly this template gets a link from a vehicle ID so that I can implement it in my code and pre-process the links instead of having the template process them every time someone tries to load the page&lt;br /&gt;
--[[User:U41991654|U41991654]] ([[User talk:U41991654|talk]]) 18:14, 4 September 2022 (UTC)&lt;/div&gt;</summary>
		<author><name>U41991654</name></author>	</entry>

	</feed>