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}}}|{{{3}}}]]&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}}}|{{{type}}}]]&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.  
Line 13: Line 13:
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 {{extpdf}}
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 {{extpdf}}


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 <nowiki>[[Media:</nowiki>''filename''<nowiki>|{{{4}}}]]</nowiki>, which means that the 4th parameter must be plain text.
The parameters media=''filename'', type=''filetype'' may also be used to create a link of the form <nowiki>[[Media:</nowiki> ''filename'' | ''filetype'' ]]</nowiki>. The filetype parameter must be plain text.
}}
}}
<p>{{prot-temp}}</p>
<p>{{prot-temp}}</p>
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 03:37, 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 parameters media=filename, type=filetype may also be used to create a link of the form [[Media: filename