<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.badwolfmc.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ACommons_link%2Fdoc</id>
	<title>Module:Commons link/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.badwolfmc.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ACommons_link%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.badwolfmc.com/w/index.php?title=Module:Commons_link/doc&amp;action=history"/>
	<updated>2026-05-07T18:54:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.badwolfmc.com/w/index.php?title=Module:Commons_link/doc&amp;diff=5877&amp;oldid=prev</id>
		<title>Merc: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.badwolfmc.com/w/index.php?title=Module:Commons_link/doc&amp;diff=5877&amp;oldid=prev"/>
		<updated>2025-05-04T08:33:16Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:33, 4 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Merc</name></author>
	</entry>
	<entry>
		<id>https://wiki.badwolfmc.com/w/index.php?title=Module:Commons_link/doc&amp;diff=5876&amp;oldid=prev</id>
		<title>wikipedia&gt;Warudo: Added the page to :Category:Module documentation pages</title>
		<link rel="alternate" type="text/html" href="https://wiki.badwolfmc.com/w/index.php?title=Module:Commons_link/doc&amp;diff=5876&amp;oldid=prev"/>
		<updated>2024-08-29T20:49:04Z</updated>

		<summary type="html">&lt;p&gt;Added the page to &lt;a href=&quot;/wiki/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|release}}&lt;br /&gt;
{{Sandbox other||{{High use}}}}&lt;br /&gt;
{{Lua|Module:If preview|Module:Arguments}}&lt;br /&gt;
&lt;br /&gt;
For testing the sandbox, see [[Module:Commons link/sandbox/testcases]].&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getGallery}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Use wikidata to find Commons gallery corresponding to this article. If unable to find gallery in wikidata, default to searching for PAGENAME in Commons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getGallery|title|linktext=text}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Link to Commons gallery at &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt;. Optionally, use &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; as displayed link text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getGallery|search=string|linktext=text}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Link to Commons search for &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt;. Optionally, use &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; as displayed link text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getCategory|fallback=string|linktext=text}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Use wikidata first, then if failure, use Commons search for &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt;. Optionally, use &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; as displayed link text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getCategory}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Use wikidata to find Commons category corresponding to this article. If unable to find category in wikidata, default to searching for Category:PAGENAME in Commons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getCategory|title|linktext=text}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Link to Commons category at &amp;lt;code&amp;gt;Category:title&amp;lt;/code&amp;gt;. Optionally, use &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; as displayed link text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getCategory|search=string|linktext=text}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Link to Commons search for &amp;lt;code&amp;gt;Category:string&amp;lt;/code&amp;gt;. Optionally, use &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; as displayed link text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getCategory|fallback=string|linktext=text}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Use wikidata first, then if failure, use Commons search for &amp;lt;code&amp;gt;Category:string&amp;lt;/code&amp;gt;. Optionally, use &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; as displayed link text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getGalleryOrCategory}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Use wikidata to find &amp;quot;best&amp;quot; single Commons link: try gallery first, fall back to category. Other arguments as above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getGalleryAndCategory}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Lua to implement {{tl|commons and category}}: return Commons gallery, Commons category, or both (if both found)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getGalleryAndCategory|GalleryName|CategoryName}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Either GalleryName or CategoryName or both can be supplied, will override wikidata search&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|bold=1|italic=1|nowrap=1|lcfirst=1}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Format of first link can be specified (any combination of bold, italic, nowrap, and lower-case first character)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|linktext=link|categoryText=category}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Text in the first link, and the second (category) link can be overridden, also.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|tracking=1}}&amp;lt;/code&amp;gt;&lt;br /&gt;
:Module can generate tracking categories for mismatch between supplied arguments and Wikidata.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Wikidata modules]]&lt;br /&gt;
[[Category:Link modules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&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>wikipedia&gt;Warudo</name></author>
	</entry>
</feed>