Template:PluginLink: Difference between revisions
Jump to navigation
Jump to search
(test again) |
Wishmaster (talk | contribs) No edit summary |
||
(15 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ | |||
| | #vardefine:PluginFileName | {{{1}}} | ||
}}{{ | |||
#vardefine:suffix | /{{#var:PluginLang}} | |||
}}{{PluginInfo|}}{{ | |||
#switch: {{#var:Form}} | |||
|#default = Wrong "form" parameter | |||
|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> | |||
{{Documentation}} | |||
[[Category: Managing plugins]] | |||
</noinclude> |