साँचा:PDFlink/doc

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }} साँचा:mbox

साँचा:tl highlights that a link points to a PDF 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).

Usage

The following lines:

{{PDFlink|[http://www.example.org/Link.pdf Link]}}
{{PDFlink|[http://www.example.org/Link.pdf Link]|32 KB}}
{{PDFlink|[http://www.example.org/Link.pdf Link]|32 [[KiB]]}}

yield:

Linkपीडीऍफ
Linkपीडीऍफ (32 KB)
Linkपीडीऍफ (32 KiB)

Note: It was previously possible to add the icon with {{PDFlink}} by itself, but the functionality has changed, making this no longer work in Internet Explorer. You must surround it with the template as shown above to work correctly in Internet Explorer.

PDFbot

An unassisted bot (सदस्य: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.

Note: the bot will replace the contents of the second parameter when updating the file size.

Limitations

As this template uses unnamed parameters links containing = or | will cause the link to not display at all. The workaround is to either replace the entity with an indirect character reference as = and |, respectively, or to use the numbered parameter (1= and 2=) for each parameter to take care of =, or to use साँचा:tl to take care of |.

Examples:

  • {{PDFlink|[http://example.org/bla?a=xy|Link.pdf Link to a PDF]|32KB}}