<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AIcon%2Fdata%2Fdoc</id>
	<title>Module:Icon/data/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AIcon%2Fdata%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Icon/data/doc&amp;action=history"/>
	<updated>2026-04-21T08:18:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Icon/data/doc&amp;diff=23286189&amp;oldid=prev</id>
		<title>imported&gt;Warudo: Added the page to :Category:Module documentation pages</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Icon/data/doc&amp;diff=23286189&amp;oldid=prev"/>
		<updated>2024-08-29T21:48:10Z</updated>

		<summary type="html">&lt;p&gt;Added the page to &lt;a href=&quot;/index.php/Category:Module_documentation_pages&quot; title=&quot;Category:Module documentation pages&quot;&gt;Category:Module documentation pages&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|protected}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
&lt;br /&gt;
This module stores icon data for [[Module:Icon]].&lt;br /&gt;
&lt;br /&gt;
== Adding icons ==&lt;br /&gt;
&lt;br /&gt;
To add a new icon, add a table in the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	code = {&lt;br /&gt;
		image = &amp;quot;My image name.xyz&amp;quot;,&lt;br /&gt;
		tooltip = &amp;quot;My tooltip text&amp;quot;,&lt;br /&gt;
		link = true,&lt;br /&gt;
	},&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code should be in lower case.&lt;br /&gt;
&lt;br /&gt;
=== Fields ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt;: the image to be displayed. This should be without the &amp;lt;code&amp;gt;File:&amp;lt;/code&amp;gt; prefix. So, if you wanted to add [[:File:Featured article star.svg]], you would use {{code|&amp;quot;Featured article star.svg&amp;quot;|lua}} here. If any of the text you add has double quotes in, you will need to escape it with backslashes like this: {{code|&amp;quot;My \&amp;quot;quoted\&amp;quot; image.svg&amp;quot;|lua}}.&lt;br /&gt;
* &amp;lt;code&amp;gt;tooltip&amp;lt;/code&amp;gt;: the tooltip to be displayed when hovering the mouse above the image. This is optional, although it is recommended you include it.&lt;br /&gt;
* &amp;lt;code&amp;gt;link&amp;lt;/code&amp;gt;: if false, the link to the file description page is suppressed. You should only set this to false if the icon image is in the public domain, or is released under a license that does not require attribution (such as [[CC-0]]). For images released under licenses that require attribution such as [[CC-BY-SA]] and the [[GFDL]], you should set this to true to preserve the link to the file description page.&lt;br /&gt;
&lt;br /&gt;
=== Aliases ===&lt;br /&gt;
&lt;br /&gt;
If you want to add aliases for the code, add an &amp;lt;code&amp;gt;aliases&amp;lt;/code&amp;gt; table as follows:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	code = {&lt;br /&gt;
		aliases = {&amp;quot;alias1&amp;quot;, &amp;quot;alias2&amp;quot;},&lt;br /&gt;
		image = &amp;quot;My image name.xyz&amp;quot;,&lt;br /&gt;
		tooltip = &amp;quot;My tooltip text&amp;quot;,&lt;br /&gt;
		link = true,&lt;br /&gt;
	},&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please make sure that any codes and aliases that you add don&amp;#039;t match any existing codes or aliases. If they do, one of them will be overwritten with the other (and it&amp;#039;s not possible to say for certain which will be overwritten with which).&lt;br /&gt;
&lt;br /&gt;
== Removing icons ==&lt;br /&gt;
&lt;br /&gt;
Removing icons is fairly easy. Just remove the relevant entry from the data table. You should not remove the _DEFAULT entry, as [[Module:Icon]] relies on it being there, and removing it will cause script errors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Warudo</name></author>
	</entry>
</feed>