<?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%3APortal%2Fdoc</id>
	<title>模块:Portal/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%3APortal%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Portal/doc&amp;action=history"/>
	<updated>2026-05-15T06:24:00Z</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:Portal/doc&amp;diff=6447&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{High-use|demo=Module:{{ROOTPAGENAME}}}} {{module rating|protected}} {{Lua|Module:Yesno|Module:Arguments}} {{uses TemplateStyles|Module:Portal/styles.css}}  This module has two functions, &lt;code&gt;portal&lt;/code&gt; and &lt;code&gt;image&lt;/code&gt;. The &lt;code&gt;portal&lt;/code&gt; produces a box with links to a portal or to multiple portals, and is used by the {{tl|portal}} template. It is most often used in the &quot;See also&quot; section of an article. The &lt;code&gt;im…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Portal/doc&amp;diff=6447&amp;oldid=prev"/>
		<updated>2024-01-20T11:48:12Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{High-use|demo=Module:{{ROOTPAGENAME}}}} {{module rating|protected}} {{Lua|Module:Yesno|Module:Arguments}} {{uses TemplateStyles|Module:Portal/styles.css}}  This module has two functions, &amp;lt;code&amp;gt;portal&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;portal&amp;lt;/code&amp;gt; produces a box with links to a &lt;a href=&quot;/index.php?title=Portal:Contents/Portals&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Portal:Contents/Portals（页面不存在）&quot;&gt;portal&lt;/a&gt; or to multiple portals, and is used by the {{tl|portal}} template. It is most often used in the &amp;quot;See also&amp;quot; section of an article. The &amp;lt;code&amp;gt;im…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{High-use|demo=Module:{{ROOTPAGENAME}}}}&lt;br /&gt;
{{module rating|protected}}&lt;br /&gt;
{{Lua|Module:Yesno|Module:Arguments}}&lt;br /&gt;
{{uses TemplateStyles|Module:Portal/styles.css}}&lt;br /&gt;
&lt;br /&gt;
This module has two functions, &amp;lt;code&amp;gt;portal&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;portal&amp;lt;/code&amp;gt; produces a box with links to a [[Portal:Contents/Portals|portal]] or to multiple portals, and is used by the {{tl|portal}} template. It is most often used in the &amp;quot;See also&amp;quot; section of an article. The &amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt; function produces the name of the image used by the specified portal.&lt;br /&gt;
&lt;br /&gt;
See [[Template:Portal/testcases|here]], [[Template:Portal-inline/testcases|here]], and [[Template:Portal bar/testcases|here]] for test cases.&lt;br /&gt;
&lt;br /&gt;
== Portal function ==&lt;br /&gt;
The portal function produces a box of portal links.&lt;br /&gt;
{{Portal/doc|type=module}}&lt;br /&gt;
== Image function ==&lt;br /&gt;
The image function produces the name of the image used by the specified portal.&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;amp;#123;&amp;amp;#123;#invoke:Portal|image|&amp;#039;&amp;#039;portal&amp;#039;&amp;#039;&amp;amp;#125;&amp;amp;#125;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Portal|image|Art}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; {{#invoke:Portal|image|Art}}&lt;br /&gt;
&lt;br /&gt;
== Image dupes function ==&lt;br /&gt;
The image dupes function returns a list of all images that are being used by more than one portal (aliases are not included). This can be helpful in identifying image entries that should be changed to use aliases.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;amp;#123;&amp;amp;#123;#invoke:Portal|imageDupes&amp;amp;#125;&amp;amp;#125;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Display all function ==&lt;br /&gt;
The display all function returns a box containing all portals that have images. This is used for maintenance, and should not be displayed in articles, because a) there are around 1000 portals with images, and displaying 1000 images on one page takes up a lot of server resources, and b) the module has no way to know the correct capitalisation of a portal name, so some links to portals will be broken. The output of this function can be seen at [[Template:Portal/doc/all]].&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;amp;#123;&amp;amp;#123;#invoke:Portal|displayAll&amp;amp;#125;&amp;amp;#125;&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>