Template:LLink: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly> &nbsp; (&nbsp;{{switch|{{{1|}}}|case:= |default=[{{filepath:{{{1}}}}} {{pdf}}]&nbsp;}}{{switch|{{{2|}}}|case:= |default=[{{filepath:{{{2}}}}} {{mid}}]&nbsp;}}{{switch|{{{3|}}}|case:= |default=[{{filepath:{{{3}}}}} {{{4}}}]&nbsp;}}{{switch|{{{ext1|}}}|case:= |default=[http://{{{ext1}}}]&nbsp;}}{{switch|{{{ext2|}}}|case:= |default=[http://{{{ext2}}}]&nbsp;}}{{switch|{{{ext3|}}}|case:= |default=[http://{{{ext3}}}]&nbsp;}}{{switch|{{{ext4|}}}|case:= |default=[http://{{{ext4}}}]&nbsp;}}{{switch|{{{ext5|}}}|case:= |default=[http://{{{ext5}}}]&nbsp;}}{{switch|{{{media|}}}|case:= |default=[[Media:{{{media}}}|{{{4}}}]]&nbsp;}})</includeonly><noinclude>
<includeonly> &nbsp; (&nbsp;{{switch|{{{1|}}}|case:= |default=[{{filepath:{{{1}}}}} {{pdf}}]&nbsp;}}{{switch|{{{2|}}}|case:= |default=[{{filepath:{{{2}}}}} {{mid}}]&nbsp;}}{{switch|{{{3|}}}|case:= |default=[{{filepath:{{{3}}}}} {{{4}}}]&nbsp;}}{{switch|{{{ext1|}}}|case:= |default=[http://{{{ext1}}}]&nbsp;}}{{switch|{{{ext2|}}}|case:= |default=[http://{{{ext2}}}]&nbsp;}}{{switch|{{{ext3|}}}|case:= |default=[http://{{{ext3}}}]&nbsp;}}{{switch|{{{ext4|}}}|case:= |default=[http://{{{ext4}}}]&nbsp;}}{{switch|{{{ext5|}}}|case:= |default=[http://{{{ext5}}}]&nbsp;}}{{switch|{{{media|}}}|case:= |default=[[Media:{{{media}}}|{{{3}}}]]&nbsp;}})</includeonly><noinclude>
{{DisplayBox|text=
{{DisplayBox|text=
Creates links with icons to local media (ie. "Image:") files hosted at CPDL.org.  
Creates links with icons to local media (ie. "Image:") files hosted at CPDL.org.  

Revision as of 03:33, 30 August 2009


Creates links with icons to local media (ie. "Image:") files hosted at CPDL.org.

1st optional parameter is the name (without "https://www.cpdl.org/wiki/images/x/xy/") of the local PDF file (eg. MyEdition.pdf, which is found at Image:MyEdition.pdf)

2nd optional parameter is the name (without "https://www.cpdl.org/wiki/images/x/xy/") of the local MID file (eg. MyEdition.mid, which is found at Image:MyEdition.mid)

3rd optional parameter is the name (without "https://www.cpdl.org/wiki/images/x/xy/") of the local source file (eg. MyEdition.enc,, which is found at Image:MyEdition.enc)

4th optional parameter is the program name (eg. Encore) or icon corresponding to the source file from the 3rd parameter.

ext1-ext5 are optional parameters with links (without "http://") to any other local or external file, PLUS a space, PLUS the program name (Encore etc.) or an icon template, like Icon_pdf_globe.gif

The parameter media=filename can be used in place of the 3rd optional parameter, but this prevents the use of an icon as the 4th optional parameter – technically this creates a link of the form [[Media:filename|{{{4}}}]], which means that the 4th parameter must be plain text.