User:Goraf/hPluginLink: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
m (Undo revision 4177 by Goraf (talk))
(code cleaning test)
Line 11: Line 11:
--><includeonly>{{#vardefine:PluginFileName | {{{1}}}}}<!--
--><includeonly>{{#vardefine:PluginFileName | {{{1}}}}}<!--
-->{{#vardefine:suffix | /{{#var:PluginLang}}}}<!--
-->{{#vardefine:suffix | /{{#var:PluginLang}}}}<!--
-->{{User:Goraf/PluginInfo|}}<!--
-->{{User:Goraf/PluginInfo|}}{{
-->{{#switch: {{#var:Form}}
  #switch: {{#var:Form}}
|#default = Wrong "form" parameter
  |#default = Wrong "form" parameter
|list = {{#if: {{#var:Type}}  
  |list = {{
| {{#ifeq: {{#var:Type}} | rest | {{#if: {{#hashvalue:{{#var:PluginFileName}} |type}} || {{User:Goraf/PluginLink/List|}} }} | {{#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | {{User:Goraf/PluginLink/List|}} |}} }}  
    #if: {{#var:Type}}
| {{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/List|}}
        }}
      |{{
          #ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}}
          | {{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|}} |}} }}  
| {{#ifeq: {{#var:Type}} | rest | {{#if: {{#hashvalue:{{#var:PluginFileName}} |type}} || {{User:Goraf/PluginLink/Download|}} }} | {{#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | {{User:Goraf/PluginLink/Download|}} |}} }}  
| {{#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | tested || {{User:Goraf/PluginLink/Download|}} }} }}
| {{#ifeq: {{#hashvalue:{{#var:PluginFileName}} |type}} | tested || {{User:Goraf/PluginLink/Download|}} }} }}
|links = {{#if: {{#var:Type}} | {{#ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}} | * [[Plugin:{{#var:PluginFileName}}{{#var:suffix}} | {{#var:PluginFileName}}]] |}} |}}
  |links = {{
    #if: {{#var:Type}}  
    |{{
      #ifeq: {{#var:Type}} | {{#hashvalue:{{#var:PluginFileName}} |type}}
      |* [[Plugin:{{#var:PluginFileName}}{{#var:suffix}} | {{#var:PluginFileName}}]]
      |
    }}  
    |
  }}
}}<nowiki/></includeonly><noinclude>
}}<nowiki/></includeonly><noinclude>
{{Todo | Commentary}}
{{Todo | Commentary}}
</noinclude>
</noinclude>

Revision as of 10:29, 27 March 2013

Todo: Commentary