User:Goraf/hPluginLink: Difference between revisions
Jump to navigation
Jump to search
"download" case |
Todo - removed |
||
| (15 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#vardefine:PluginFileName | {{{1}}}}}{{#vardefine:suffix | /{{#var:PluginLang}}}}{{User:Goraf/PluginInfo|}}{{#switch: {{#var:Form}} | <!-- info about needed changes for implementation | ||
|#default = Wrong "form" parameter | |||
|list = {{#if: {{#var:Type}} | 1. copy/move to {{Template:PluginLink}} (overwrite) | ||
| {{#ifeq: {{#var:Type}} | | 2. {{User:Goraf/PluginLink/List|}} -> {{PluginLink/List|}} | ||
| {{#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | | 3. {{User:Goraf/PluginLink/Download|}} -> {{PluginLink/Download|}} | ||
|download = {{#vardefine:linkBasename|/{{lc:{{#var:PluginFileName}}}}}}{{#if: {{#var:Type}} | 4. {{User:Goraf/PluginInfo|}} -> {{PluginInfo|}} | ||
| {{#ifeq: {{#var:Type}} | | |||
| {{#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | | P.S | ||
}}<nowiki/></includeonly> | maybe a little comment | ||
--><includeonly>{{ | |||
#vardefine:PluginFileName | {{{1}}} | |||
}}{{ | |||
#vardefine:suffix | /{{#var:PluginLang}} | |||
}}{{User:Goraf/PluginInfo|}}{{ | |||
#switch: {{#var:Form}} | |||
|#default = Wrong "form" parameter | |||
|list = {{ | |||
#if: {{#var:Type}} | |||
|{{ | |||
#ifeq: {{#var:Type}} | rest | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
| | |||
| {{User:Goraf/PluginLink/List|}} | |||
}} | |||
|{{ | |||
#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
| {{User:Goraf/PluginLink/List|}} | |||
| | |||
}} | |||
}} | |||
|{{ <!-- display protocols and plugins without "type" --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
|{{ | |||
#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | protocol | |||
| {{User:Goraf/PluginLink/List|}} | |||
| | |||
}} | |||
| {{User:Goraf/PluginLink/List|}} | |||
}} | |||
}} | |||
|download = {{#vardefine:linkBasename|/{{lc:{{#var:PluginFileName}}}}}}{{ | |||
#if: {{#var:Type}} | |||
|{{ | |||
#ifeq: {{#var:Type}} | rest | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
| | |||
| {{User:Goraf/PluginLink/Download|}} | |||
}} | |||
|{{ | |||
#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
| {{User:Goraf/PluginLink/Download|}} | |||
| | |||
}} | |||
}} | |||
|{{ <!-- display protocols and plugins without "type" --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
|{{ | |||
#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | protocol | |||
| {{User:Goraf/PluginLink/Download|}} | |||
| | |||
}} | |||
| {{User:Goraf/PluginLink/Download|}} | |||
}} | |||
}} | |||
|links = {{ | |||
#if: {{#var:Type}} | |||
|{{ | |||
#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | |||
|* [[Plugin:{{#var:PluginFileName}}{{#var:suffix}} | {{#var:PluginFileName}}]] {{ | |||
#var: {{#var:PluginFileName}} | |||
}} | |||
| | |||
}} | |||
| | |||
}} | |||
}}<nowiki/></includeonly><noinclude> | |||
</noinclude> | |||
Latest revision as of 08:56, 27 May 2013