<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
	<id>http://mobinwiki.ir/w/index.php?action=history&amp;feed=atom&amp;title=%D8%A7%D9%84%DA%AF%D9%88%3APDF%2F%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA</id>
	<title>الگو:PDF/توضیحات - تاریخچهٔ نسخه‌ها</title>
	<link rel="self" type="application/atom+xml" href="http://mobinwiki.ir/w/index.php?action=history&amp;feed=atom&amp;title=%D8%A7%D9%84%DA%AF%D9%88%3APDF%2F%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA"/>
	<link rel="alternate" type="text/html" href="http://mobinwiki.ir/w/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:PDF/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;action=history"/>
	<updated>2026-12-06T18:49:48Z</updated>
	<subtitle>تاریخچهٔ نسخه‌ها برای این صفحه در ویکی</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>http://mobinwiki.ir/w/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:PDF/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;diff=46514&amp;oldid=prev</id>
		<title>imported&gt;Dexbot: ربات: انتقال رده به درخواست Blackorwhite از :رده:External link file type templates‏ به :رده:الگو:نوع پرونده پیوند به بیرون</title>
		<link rel="alternate" type="text/html" href="http://mobinwiki.ir/w/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:PDF/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;diff=46514&amp;oldid=prev"/>
		<updated>2020-11-30T20:01:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/w/index.php?title=%D9%88%D9%BE:%D8%AF%D8%A7%D8%B1&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;وپ:دار (صفحه وجود ندارد)&quot;&gt;ربات: انتقال رده&lt;/a&gt; به درخواست &lt;a href=&quot;/w/index.php?title=%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Blackorwhite&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;کاربر:Blackorwhite (صفحه وجود ندارد)&quot;&gt;Blackorwhite&lt;/a&gt; از &lt;a href=&quot;/w/index.php?title=%D8%B1%D8%AF%D9%87:External_link_file_type_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;رده:External link file type templates (صفحه وجود ندارد)&quot;&gt;رده:External link file type templates‏&lt;/a&gt; به &lt;a href=&quot;/w/index.php?title=%D8%B1%D8%AF%D9%87:%D8%A7%D9%84%DA%AF%D9%88:%D9%86%D9%88%D8%B9_%D9%BE%D8%B1%D9%88%D9%86%D8%AF%D9%87_%D9%BE%DB%8C%D9%88%D9%86%D8%AF_%D8%A8%D9%87_%D8%A8%DB%8C%D8%B1%D9%88%D9%86&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;رده:الگو:نوع پرونده پیوند به بیرون (صفحه وجود ندارد)&quot;&gt;رده:الگو:نوع پرونده پیوند به بیرون&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{tl|{{PAGENAME}}}} highlights that a link points to a [[پی‌دی‌اف]] document (on some systems PDF files may take time to download and display within the browser, and their use on many websites is not compliant with the [[Web Content Accessibility Guidelines]]).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
The following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- &amp;lt;nowiki&amp;gt;[http://www.example.org/Link.pdf Link] {{PDFlink}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
     No longer works in Internet Explorer with new site-wide CSS-based icon.  Please use the other forms  --&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{PDFlink|[http://www.example.org/Link.pdf Link]}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{PDFlink|[http://www.example.org/Link.pdf Link]|32&amp;amp;amp;nbsp;KB}}&amp;lt;/nowiki&amp;gt; &amp;lt;!-- only use when the bot fails to update --&amp;gt;&lt;br /&gt;
&amp;lt;!-- &amp;lt;nowiki&amp;gt;{{PDFlink|[http://www.example.org/Link.pdf Link]|32&amp;amp;amp;nbsp;[[Kibibyte|KiB]]}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
     Deprecated.  See [[MOS:NUM#Binary prefixes]] --&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{PDFlink|[http://www.example.org/fileserver/239349 Link]|1.4&amp;amp;nbsp;MB}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
yield:&lt;br /&gt;
&lt;br /&gt;
:{{PDFlink|[http://www.example.org/Link.pdf Link]}}&lt;br /&gt;
:{{PDFlink|[http://www.example.org/Link.pdf Link]|32&amp;amp;nbsp;KB}}&lt;br /&gt;
:{{PDFlink|[http://www.example.org/fileserver/239349 Link]|1.4&amp;amp;nbsp;MB}}&lt;br /&gt;
&lt;br /&gt;
'''Note:''' It was previously possible to add the icon with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{PDFlink}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; by itself, but the functionality has changed, making this no longer work in [[اینترنت اکسپلورر]].  You must surround it with the template as shown above to work correctly in Internet Explorer.{{clarify|reason=What version(s), on what platform(s)?}}  See [[#Use in citation templates]], below, for how to do this now without boogering IE.&lt;br /&gt;
&lt;br /&gt;
'''Units''': Per [[WP:Manual of Style (dates and numbers)]], use KB and MB (kilobytes and megabytes), not KiB and MiB (kibibytes and mibibytes), as very few readers have ever even heard of the latter units.&lt;br /&gt;
&lt;br /&gt;
=== PDFbot ===&lt;br /&gt;
An unassisted [[ویکی‌پدیا:سیاست رباتیک]], [[User:PDFbot]], has been created to add and keep [[file size]] information current.  In addition, it will fix many mistakes and the limitation as described in the section below.  &lt;br /&gt;
&lt;br /&gt;
Note: the bot will '''replace''' the contents of the second parameter when updating the file size.&lt;br /&gt;
&lt;br /&gt;
== Icon ==&lt;br /&gt;
The icon is added using CSS and is found in [[MediaWiki:Common.css]], the relevant portion that applies the icon is:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Change the external link icon to an Adobe icon anywhere the PDFlink class&lt;br /&gt;
   is used (notably Template:PDFlink). This works in IE, unlike the above. */&lt;br /&gt;
#content span.PDFlink a,&lt;br /&gt;
#mw_content span.PDFlink a {&lt;br /&gt;
    background: url(&amp;quot;http://upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif&amp;quot;) center right no-repeat;&lt;br /&gt;
    padding-right: 18px;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Limitations and easy workarounds ==&lt;br /&gt;
===The problematic &amp;quot;=&amp;quot; character===&lt;br /&gt;
When this template is used with [[m:Help:Templates#Restrictions on parameter values|unnamed parameters]], links containing the &amp;quot;&amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;&amp;quot; (equals sign) character will cause the link to not display at all.  Workarounds available are:&lt;br /&gt;
*Use explicitly numbered parameters, {{para|1}} and {{para|2}}, for the URL and the file size, respectively&lt;br /&gt;
or&lt;br /&gt;
*Use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; as a replacement for &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
*Replace the &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; character with its [[Numeric character reference|numeric character entity reference]], &amp;lt;code&amp;gt;&amp;amp;amp;#61;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Bad example:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{PDFlink|[http://example.org/bla?a=xy|Link.pdf Link to a PDF]|32&amp;amp;amp;nbsp;KB}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:{{PDFlink|[http://example.org/bla?a=xy/Link.pdf Link to a PDF]|32&amp;amp;nbsp;KB}}&lt;br /&gt;
&lt;br /&gt;
;Good examples:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{PDFlink|[http://example.org/bla?a&amp;lt;/nowiki&amp;gt;&amp;lt;span style=&amp;quot;color: red;&amp;quot;&amp;gt;'''&amp;amp;amp;#61;'''&amp;lt;/span&amp;gt;xy&amp;lt;span style=&amp;quot;color: red;&amp;quot;&amp;gt;'''&amp;amp;amp;#124;'''&amp;lt;/span&amp;gt;Link.pdf Link to a PDF]|32&amp;amp;amp;nbsp;KB}}&lt;br /&gt;
:{{PDFlink|[http://example.org/bla?a&amp;amp;#61;xy&amp;amp;#124;Link.pdf Link to a PDF]|32&amp;amp;nbsp;KB}}&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{PDFlink|&amp;lt;/nowiki&amp;gt;'''&amp;lt;span style=&amp;quot;color: red;&amp;quot;&amp;gt;1=&amp;lt;/span&amp;gt;'''&amp;lt;nowiki&amp;gt;[http://example.org/bla?a=xy&amp;lt;/nowiki&amp;gt;&amp;lt;span style=&amp;quot;color: red;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;Link.pdf Link to a PDF]|'''&amp;lt;span style=&amp;quot;color: red;&amp;quot;&amp;gt;2=&amp;lt;/span&amp;gt;'''32&amp;amp;amp;nbsp;KB}}&lt;br /&gt;
:{{PDFlink|1=[http://example.org/bla?a=xy{{!}}Link.pdf Link to a PDF]|2=32&amp;amp;nbsp;KB}}&lt;br /&gt;
&lt;br /&gt;
===Use in citation templates===&lt;br /&gt;
This template is not instantly compatible with citation templates such as {{tl|cite book}} and {{tl|cite web}}, which put URLs in their own parameter, without markup.  Two kinds of usage need two different workarounds, both using the invisible but existent &amp;quot;no-width space&amp;quot; numeric character entity reference, &amp;lt;code&amp;gt;&amp;amp;amp;#8203;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
;URLs ending in &amp;quot;.pdf&amp;quot; or &amp;quot;.PDF&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
The workaround is to not use an actual URL (and no [square brackets]) in the {{tl|PDFlink}} first parameter, but just the &amp;lt;code&amp;gt;&amp;amp;amp;#8203;&amp;lt;/code&amp;gt; entity:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; |title=Some Article&lt;br /&gt;
 |url=http://www.example.org/fileserver/Link.pdf&lt;br /&gt;
 |format={{PDFlink|&amp;amp;amp;#8203;|1.4&amp;amp;nbsp;MB}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
renders as something like:&lt;br /&gt;
&lt;br /&gt;
:[http://www.example.org/fileserver/Link.pdf Some Article] ({{PDFlink|&amp;amp;#8203;|1.4&amp;amp;nbsp;MB}})&lt;br /&gt;
&lt;br /&gt;
in the spaces that the parameters fill. (Exact spacing, punctuation, etc., depends on the specific citation template used). This prevents the appearance of a PDF icon auto-generated by MediaWiki being followed by one generated by {{tl|PDFlink}}.&lt;br /&gt;
&lt;br /&gt;
Doing this, however:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; |title=Some Article&lt;br /&gt;
 |url=http://www.example.org/fileserver/Link.pdf&lt;br /&gt;
 |format={{PDFlink|[http://www.example.org/fileserver/Link.pdf &amp;amp;amp;#8203;]|1.4&amp;amp;nbsp;MB}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would result in:&lt;br /&gt;
&lt;br /&gt;
:[http://www.example.org/fileserver/Link.pdf Some Article] ({{PDFlink|[http://www.example.org/fileserver/Link.pdf &amp;amp;#8203;]|1.4&amp;amp;nbsp;MB}})&lt;br /&gt;
&lt;br /&gt;
This trick needs to be done with the character entity, because leaving the first parameter blank will simply get the page categorized in a cleanup category for pages that misuse this template, and a bot will &amp;quot;fix&amp;quot; the page's use of the template (i.e., it will cause problems).&lt;br /&gt;
&lt;br /&gt;
;URLs not ending in &amp;quot;.pdf&amp;quot; or &amp;quot;.PDF&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
The workaround is to repeat the URL used in {{para|url}} in {{tnull|PDFlink}} inside {{para|format}} as a square-backeted link, and use &amp;lt;code&amp;gt;&amp;amp;amp;#8203;&amp;lt;/code&amp;gt; as the link text (note that numbered parameters are often required because of &amp;quot;&amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;&amp;quot; characters in such URLs):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; |title=Some Article&lt;br /&gt;
 |url=http://www.example.org/fileserver&amp;amp;file=2234234&lt;br /&gt;
 |format={{PDFlink|1=[http://www.example.org/fileserver&amp;amp;file=2234234 &amp;amp;amp;#8203;]|2=1.4&amp;amp;nbsp;MB}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
yields:&lt;br /&gt;
&lt;br /&gt;
:[http://www.example.org/fileserver&amp;amp;file=2234234 Some Article] ({{PDFlink|1=[http://www.example.org/fileserver&amp;amp;file=2234234 &amp;amp;#8203;]|2=1.4&amp;amp;nbsp;MB}})&lt;br /&gt;
&lt;br /&gt;
I.e., it produces a PDF icon that links to the same target as the URL given in the citation template's {{para|url}} parameter, without creating new link text, and meanwhile MediaWiki did not know this was a PDF file and so did not autogenerate a duplicative icon.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:DjVulink]]&lt;br /&gt;
* [[Template:DOClink]]&lt;br /&gt;
* [[Template:RTFlink]]&lt;br /&gt;
&lt;br /&gt;
  Please, use the categorization system instead of the updating the linking in the See also section of these pages&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[رده:الگو:نوع پرونده پیوند به بیرون|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Dexbot</name></author>
	</entry>
</feed>