Template:LLink: Difference between revisions
(display documentation, prot-temp, categorize in Templates) |
(replaced template:Switch with parser function #if) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> ( | <includeonly> ( {{#if:{{{1|}}}|[{{filepath:{{{1}}}}} {{pdf}}] }}{{#if:{{{2|}}}|[{{filepath:{{{2}}}}} {{ {{lc:{{#explode:{{{2|}}}|.|-1}}}} }}] }}{{#if:{{{3|}}}|[{{filepath:{{{3}}}}} {{{4}}}] }}{{#if:{{{ext1|}}}|[http://{{{ext1}}}] }}{{#if:{{{ext2|}}}|[http://{{{ext2}}}] }}{{#if:{{{ext3|}}}|[http://{{{ext3}}}] }}{{#if:{{{ext4|}}}|[http://{{{ext4}}}] }}{{#if:{{{ext5|}}}|[http://{{{ext5}}}] }}{{#if:{{{media|}}}|[[Media:{{{media}}}|{{{type}}}]] }})</includeonly><noinclude> | ||
{{ | {{Doc|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 12: | Line 12: | ||
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 parameters media=''filename'', type=''filetype'' may also be used to create a Mediawiki link of the form <nowiki>[[Media:</nowiki> ''filename'' <nowiki>|</nowiki> ''filetype'' <nowiki>]]</nowiki>. The type parameter must be plain text; using an icon breaks Mediawiki links. | |||
}} | }} | ||
<p>{{prot-temp}}</p> | <p>{{prot-temp}}</p> | ||
[[Category: | [[Category:Internal link templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 18:07, 16 June 2017
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 Mediawiki link of the form [[Media: filename | filetype ]]. The type parameter must be plain text; using an icon breaks Mediawiki links.
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. |