<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ACommons_link%2Fdoc</id>
	<title>模块:Commons link/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ACommons_link%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Commons_link/doc&amp;action=history"/>
	<updated>2026-05-15T05:30:03Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Commons_link/doc&amp;diff=6475&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{Module rating|release}} {{Sandbox other||{{High use}}}} {{Lua|Module:If preview|Module:Arguments}}  For testing the sandbox, see Module:Commons link/sandbox/testcases.  == Usage ==  &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;#invoke:{{BASEPAGENAME}}|getGallery}}&lt;/code&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;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;#invoke:{{BASEPAGENAME}}|ge…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Commons_link/doc&amp;diff=6475&amp;oldid=prev"/>
		<updated>2024-01-20T12:25:35Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Module rating|release}} {{Sandbox other||{{High use}}}} {{Lua|Module:If preview|Module:Arguments}}  For testing the sandbox, see &lt;a href=&quot;/index.php?title=%E6%A8%A1%E5%9D%97:Commons_link/sandbox/testcases&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;模块:Commons link/sandbox/testcases（页面不存在）&quot;&gt;Module:Commons link/sandbox/testcases&lt;/a&gt;.  == Usage ==  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|getGallery}}&amp;lt;/code&amp;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.  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|ge…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&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;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
[[Category:Wikidata modules]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>