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}}}|{{{3}}}]] }})</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
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.
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. |