Template:PluginLink: Difference between revisions
Jump to navigation
Jump to search
(other -> rest) |
Wishmaster (talk | contribs) No edit summary |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:PluginFileName | {{{1}}}}}{{#vardefine:suffix | /{{#var:PluginLang}}}}{{PluginInfo|}}{{#switch: {{#var:Form}} | <includeonly>{{ | ||
|#default = Wrong "form" parameter | #vardefine:PluginFileName | {{{1}}} | ||
|list = {{#if: {{#var:Type}} | }}{{ | ||
| {{#ifeq: {{#var:Type}} | rest | {{#if: {{#hashvalue:{{#var:PluginFileName}} |type}} || {{PluginLink/List|}} }} | {{#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | {{PluginLink/List|}} |}} }} | #vardefine:suffix | /{{#var:PluginLang}} | ||
| {{#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | | }}{{PluginInfo|}}{{ | ||
|download = {{#vardefine:linkBasename|/{{lc:{{#var:PluginFileName}}}}}}{{#if: {{#var:Type}} | #switch: {{#var:Form}} | ||
| {{#ifeq: {{#var:Type}} | rest | {{#if: {{#hashvalue:{{#var:PluginFileName}} |type}} || {{PluginLink/Download|}} }} | {{#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | {{PluginLink/Download|}} |}} }} | |#default = Wrong "form" parameter | ||
| {{#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | | |list = {{ | ||
#if: {{#var:Type}} | |||
|{{ | |||
#ifeq: {{#var:Type}} | rest | |||
|{{ <!-- display plugins without "type" --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
| | |||
| {{PluginLink/List|}} | |||
}} | |||
|{{ <!-- display plugins with specific "type" --> | |||
#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
| {{PluginLink/List|}} | |||
| | |||
}} | |||
}} | |||
|{{ <!-- display protocols and plugins without "type" --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
|{{ | |||
#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | protocol | |||
| {{PluginLink/List|}} | |||
| | |||
}} | |||
| {{PluginLink/List|}} | |||
}} | |||
}} | |||
|download = {{#vardefine:linkBasename|/{{lc:{{#var:PluginFileName}}}}}}{{ | |||
#if: {{#var:Type}} | |||
|{{ | |||
#ifeq: {{#var:Type}} | rest | |||
|{{ <!-- display plugins without "type" --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
| | |||
| {{PluginLink/Download|}} | |||
}} | |||
|{{ <!-- display plugins with specific "type" --> | |||
#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
| {{PluginLink/Download|}} | |||
| | |||
}} | |||
}} | |||
|{{ <!-- display protocols and plugins without "type" --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
|{{ | |||
#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | protocol | |||
| {{PluginLink/Download|}} | |||
| | |||
}} | |||
| {{PluginLink/Download|}} | |||
}} | |||
}} | |||
|links = {{ | |||
#if: {{#var:Type}} | |||
|{{ | |||
#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
|* [[Plugin:{{#var:PluginFileName}}{{#var:suffix}} | {{#var:PluginFileName}}]] {{ | |||
#var: {{#var:PluginFileName}} <!-- dynamic description --> | |||
}} | |||
| | |||
}} | |||
| | |||
}} | |||
}}<nowiki/></includeonly><noinclude> | }}<nowiki/></includeonly><noinclude> | ||
{{ | {{Documentation}} | ||
[[Category: Managing plugins]] | |||
</noinclude> | </noinclude> |