Template:LLink: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> ( {{switch|{{{1|}}}|case:= |default=[{{filepath:{{{1}}}}} {{pdf}}] }}{{switch|{{{2|}}}|case:= |default=[{{filepath:{{{2}}}}} {{mid}}] }}{{switch|{{{3|}}}|case:= |default=[{{filepath:{{{3}}}}} {{{4}}}] }}{{switch|{{{ext1|}}}|case:= |default=[http://{{{ext1}}}] }}{{switch|{{{ext2|}}}|case:= |default=[http://{{{ext2}}}] }}{{switch|{{{ext3|}}}|case:= |default=[http://{{{ext3}}}] }}{{switch|{{{ext4|}}}|case:= |default=[http://{{{ext4}}}] }}{{switch|{{{ext5|}}}|case:= |default=[http://{{{ext5}}}] }}{{switch|{{{media|}}}|case:= |default=[[Media:{{{media}}}|{{{ | <includeonly> ( {{switch|{{{1|}}}|case:= |default=[{{filepath:{{{1}}}}} {{pdf}}] }}{{switch|{{{2|}}}|case:= |default=[{{filepath:{{{2}}}}} {{mid}}] }}{{switch|{{{3|}}}|case:= |default=[{{filepath:{{{3}}}}} {{{4}}}] }}{{switch|{{{ext1|}}}|case:= |default=[http://{{{ext1}}}] }}{{switch|{{{ext2|}}}|case:= |default=[http://{{{ext2}}}] }}{{switch|{{{ext3|}}}|case:= |default=[http://{{{ext3}}}] }}{{switch|{{{ext4|}}}|case:= |default=[http://{{{ext4}}}] }}{{switch|{{{ext5|}}}|case:= |default=[http://{{{ext5}}}] }}{{switch|{{{media|}}}|case:= |default=[[Media:{{{media}}}|{{{type}}}]] }})</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 | 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
The parameters media=filename, type=filetype may also be used to create a link of the form [[Media: filename
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |