Difference between revisions of "Template:DjVulink"

From blackwiki
Jump to navigation Jump to search
imported>Colin MacLaurin
(created new template for links to DjVu files, borrowed from code at Template:RTFlink. ''I am *not* a pro-coder: feel free to improve it!'')
 
imported>Indubitably
(Removing Image:DjVu-logo.png per WP:NFCC#8.)
Line 1: Line 1:
{{ #if:{{{1|}}}|{{{1}}} }}[[Image:DjVu-logo.png|20px]]<small>[[DjVu]]{{ #if: {{{2<includeonly>|</includeonly>}}}|({{{2}}})}}</small><noinclude>
+
{{ #if:{{{1|}}}|{{{1}}} }}<small>[[DjVu]]{{ #if: {{{2<includeonly>|</includeonly>}}}|({{{2}}})}}</small><noinclude>
 
{{/doc}}
 
{{/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 17:15, 30 October 2007

DjVu({{{2}}})


Purpose

Used to highlight that a link points to a DjVu file. This may help the user to choose in advance what action is to be taken on the link itself (DjVu files may take time to download and display on some systems, require special software – albeit free, and their use on websites may not be compliant with the Web Content Accessibility Guidelines).

Usage

The following lines:

[http://www.example.org/Link.djvu Link] {{DjVulink}}
{{DjVulink|[http://www.example.org/Link.djvu Link]}}
{{DjVulink|[http://www.example.org/Link.djvu Link]|32&nbsp;[[KiB]]}}

yield:

Link DjVu
LinkDjVu
LinkDjVu(32 KiB)

See also