<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://darkanddarker.wiki.spellsandguns.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AFilterWeapons</id>
	<title>Template:FilterWeapons - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://darkanddarker.wiki.spellsandguns.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AFilterWeapons"/>
	<link rel="alternate" type="text/html" href="https://darkanddarker.wiki.spellsandguns.com/index.php?title=Template:FilterWeapons&amp;action=history"/>
	<updated>2026-05-01T15:49:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>https://darkanddarker.wiki.spellsandguns.com/index.php?title=Template:FilterWeapons&amp;diff=12473&amp;oldid=prev</id>
		<title>Ta1ha: changed comma</title>
		<link rel="alternate" type="text/html" href="https://darkanddarker.wiki.spellsandguns.com/index.php?title=Template:FilterWeapons&amp;diff=12473&amp;oldid=prev"/>
		<updated>2023-08-30T19:36:21Z</updated>

		<summary type="html">&lt;p&gt;changed comma&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:36, 30 August 2023&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-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   | 0                       &amp;lt;!-- loops start value for {{ #var:i }} --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   | 0                       &amp;lt;!-- loops start value for {{ #var:i }} --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   | {{ #arraysize:weapons }} &amp;lt;!-- number of loops --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   | {{ #arraysize:weapons }} &amp;lt;!-- number of loops --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   | &amp;lt;nowiki/&amp;gt;{{#vardefine:currentweapon|{{ #arrayindex:weapons | {{ #var:i }} }}}}{{#if:{{#pos:{{Weapon_Data|{{#var:currentweapon}}|{{{filtercategory}}}}}|{{{filterkey}}}}}|{{#ifeq:{{ #var:first }}|true|{{#vardefine:first|false}}|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/del&gt;&amp;amp;nbsp;}}[[{{#var:currentweapon}}]]}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;   | &amp;lt;nowiki/&amp;gt;{{#vardefine:currentweapon|{{ #arrayindex:weapons | {{ #var:i }} }}}}{{#if:{{#pos:{{Weapon_Data|{{#var:currentweapon}}|{{{filtercategory}}}}}|{{{filterkey}}}}}|{{#ifeq:{{ #var:first }}|true|{{#vardefine:first|false}}|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;nbsp;•&lt;/ins&gt;&amp;amp;nbsp;}}[[{{#var:currentweapon}}]]}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;Loops through all weapons, filters them according to &amp;quot;filtercategory&amp;quot; and &amp;quot;filterkey&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;Loops through all weapons, filters them according to &amp;quot;filtercategory&amp;quot; and &amp;quot;filterkey&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key darkanddarkerwiki:diff::1.12:old-12472:rev-12473 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ta1ha</name></author>
	</entry>
	<entry>
		<id>https://darkanddarker.wiki.spellsandguns.com/index.php?title=Template:FilterWeapons&amp;diff=12472&amp;oldid=prev</id>
		<title>Ta1ha: template to filter weapons</title>
		<link rel="alternate" type="text/html" href="https://darkanddarker.wiki.spellsandguns.com/index.php?title=Template:FilterWeapons&amp;diff=12472&amp;oldid=prev"/>
		<updated>2023-08-30T19:27:16Z</updated>

		<summary type="html">&lt;p&gt;template to filter weapons&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; &amp;lt;includeonly&amp;gt;{{ #arraydefine: weapons | {{Weapon_Data|AllWeapons}} }}&lt;br /&gt;
 {{#vardefine:first|true}}&lt;br /&gt;
{{&lt;br /&gt;
  #loop: i&lt;br /&gt;
  | 0                       &amp;lt;!-- loops start value for {{ #var:i }} --&amp;gt;&lt;br /&gt;
  | {{ #arraysize:weapons }} &amp;lt;!-- number of loops --&amp;gt;&lt;br /&gt;
  | &amp;lt;nowiki/&amp;gt;{{#vardefine:currentweapon|{{ #arrayindex:weapons | {{ #var:i }} }}}}{{#if:{{#pos:{{Weapon_Data|{{#var:currentweapon}}|{{{filtercategory}}}}}|{{{filterkey}}}}}|{{#ifeq:{{ #var:first }}|true|{{#vardefine:first|false}}|,&amp;amp;nbsp;}}[[{{#var:currentweapon}}]]}}&lt;br /&gt;
 }}&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;Loops through all weapons, filters them according to &amp;quot;filtercategory&amp;quot; and &amp;quot;filterkey&amp;quot;&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;table class=&amp;quot;wikitable&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;th&amp;gt;Code&amp;lt;/th&amp;gt;&lt;br /&gt;
		&amp;lt;th&amp;gt;Preview&amp;lt;/th&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;padding: 20px 30px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{FilterWeapons&lt;br /&gt;
|filtercategory        = classes&lt;br /&gt;
|filterkey = Bard&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;padding: 20px 30px;&amp;quot;&amp;gt;&lt;br /&gt;
{{FilterWeapons&lt;br /&gt;
|filtercategory        = classes&lt;br /&gt;
|filterkey = Bard&lt;br /&gt;
}}&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;padding: 20px 30px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{FilterWeapons&lt;br /&gt;
|filtercategory        = weapontype&lt;br /&gt;
|filterkey = Axe&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;padding: 20px 30px;&amp;quot;&amp;gt;&lt;br /&gt;
{{FilterWeapons&lt;br /&gt;
|filtercategory        = weapontype&lt;br /&gt;
|filterkey = Axe&lt;br /&gt;
}}&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;filtercategory&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Variable name to call from Weapon_Data&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;classes, weapontype&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
            &amp;quot;description&amp;quot;: &amp;quot;Filter Category&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;filterkey&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Key to be searched in the variable pulled from Weapon_Data&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Bard, Sword&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
            &amp;quot;description&amp;quot;: &amp;quot;Filter Key&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;filtercategory&amp;quot;,&lt;br /&gt;
		&amp;quot;filterkey&amp;quot;&lt;br /&gt;
	]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ta1ha</name></author>
	</entry>
</feed>