User:Wishmaster/PluginInfo: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
(Created page with "<includeonly><!-- use #titleparts instead of MagicWords if pagetitle will change -->{{ #vardefine:PluginFileName | {{BASEPAGENAMEE}} }}{{ #if: {{#varexists:PluginLang}}...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!-- use #titleparts instead of MagicWords if pagetitle will change -->{{
== Usage ==
  #vardefine:PluginFileName | {{BASEPAGENAMEE}}
}}{{
  #if: {{#varexists:PluginLang}}
  | {{PageLang | {{#var:PluginLang}} }} <!-- from ResolveLang pages -->
  | {{#vardefine:PluginLang | {{SUBPAGENAME}} }}{{PageLang | {{SUBPAGENAME}} }} <!-- remove the first one after transition to PageLang -->
}}<!-- Language localisation ...
  -->{{Localization/PluginCard|{{#var:PageLang}} }}<!--
and default values
  -->{{Localization/PluginCard|}}<!--
Load information about plugin
  -->{{PluginInfo|}}<!--
Page title
  -->{{DISPLAYTITLE: {{
      #if: {{{name|}}}
      | {{{name}}}
      | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }}
      }}
    }}<!--
Check if Plugin:PluginName page exist if not display warning and add creation link
-->{{#ifexist: Plugin:{{#var:PluginFileName}}
  |
  | {{Warning|Page <tt>Plugin:{{#var:PluginFileName}}</tt> doesn't exist. Please create it using the link below. Content will be generated automatically. You only need to save the changes.
}}<span class="plainlinks createlinks">[{{fullurl:Plugin:{{#var:PluginFileName}} | action=edit&preload=Template:PluginPage/preload&summary=Plugin:{{#var:PluginFileName}} }} '''Create page''']</span>{{clear}}<br/>
}}
{| class="plugincard" style="margin: 0 0 10px 10px; width: 22em; font-size: 90%; float: right;clear: right; box-shadow:1px 1px 3px #999;"
<!--


Title
{| class="plugincard" cellpadding="4" style="margin: 0 0 10px 10px; width: 22em; font-size: 90%; float: right; clear: right; box-shadow:1px 1px 3px #999;"
<!-- Title -->
! align="center" colspan=2 bgcolor="#ccccff" style="font-size:110%;" | name
<!-- Screenshot -->
|-
| align="center" colspan="2" | ''No image''
<!-- Filename -->
|-
{{RowColor|#ccccff|'''Filename''' | PluginFileName.dll}}
<!-- Author -->
{{RowColor|#ccccff|'''Author''' | {{Developer|author}} }}
<!-- Authors -->
{{RowColor|#ccccff|'''Authors''' | {{While|tpl=Developer|author_1|author_2}} }}
<!-- Requirements -->
|- valign="top"
{{RowColor|#ccccff|'''System<br/>requirements''' | requirements}}
<!-- Homepage -->
|-
| align="center" colspan="2" |[{{fullurl:{{FULLPAGENAMEE}}}} '''Homepage''']
<!-- Download links -->
|-
! align="center" colspan="2" bgcolor="#ccccff" style="font-size:110%;" | Download links
{{RowColor|#fff|Stable version:| [{{fullurl:{{FULLPAGENAMEE}}}} x32], [{{fullurl:{{FULLPAGENAMEE}}}} x64]}}
{{RowColor|#fff|Current version:| [{{fullurl:{{FULLPAGENAMEE}}}} x32], [{{fullurl:{{FULLPAGENAMEE}}}} x64]}}
<!-- Additional links -->
{{RowColor|#fff|Other: | [{{fullurl:{{FULLPAGENAMEE}}}} additionalLink_1], [{{fullurl:{{FULLPAGENAMEE}}}} additionalLink_2]}}
|}


-->
{{clear}}
|- colspan="2" style="font-size:110%;background-color:#ccccff;text-align:center;" | {{
  #if: {{{name|}}}
  | {{{name}}}
  | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }}
}}
<!--
 
Screenshot
 
-->{{
  #ifeq: {{
    #if: {{{screenshot|}}}
    | {{{screenshot}}}
    | {{#hashvalue:{{#var:PluginFileName}} |screenshot}}
  }} | ***
  |&#32;
  |{{!}}-
  {{!}} colspan="2" style="text-align:center;"{{!}} <!--
      display an image
    -->{{
    #if: {{{screenshot|}}}
    | [[File:{{{screenshot}}} | {{
          #ifeq: {{{screenshotOpt|}}} | {{{screenshotOpt|-}}} <!-- specified and may be empty -->
          |{{
              #if: {{{screenshotOpt|}}} <!-- if not empty -->
              | {{{screenshotOpt}}}
              | &#32;
            }}
          |{{
              #if: {{#hashkeyexists:{{#var:PluginFileName}} |screenshotOpt}} <!-- if specified -->
              | {{#hashvalue:{{#var:PluginFileName}} |screenshotOpt |&#32;}} <!-- &#32; if empty -->
              | border{{!}}200px  <!-- default image options -->
            }}
        }} | <!-- caption -->{{
          #if: {{{name|}}}
          | {{{name}}}
          | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }}
        }}
      ]]
    |{{
        #if: {{#hashvalue:{{#var:PluginFileName}} |screenshot}}
        | [[File:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | {{
              #ifeq: {{{screenshotOpt|}}} | {{{screenshotOpt|-}}} <!-- specified and may be empty -->
              |{{
                #if: {{{screenshotOpt|}}} <!-- if not empty -->
                | {{{screenshotOpt}}}
                | &#32;
              }}
              |{{
                #if: {{#hashkeyexists:{{#var:PluginFileName}} |screenshotOpt}} <!-- if specified -->
                | {{#hashvalue:{{#var:PluginFileName}} |screenshotOpt |&#32;}} <!-- &#32; if empty -->
                | border{{!}}200px  <!-- default image options -->
              }}
            }} | <!-- caption  -->{{
              #if: {{{name|}}}
              | {{{name}}}
              | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }}
            }}
          ]]
        | ''{{#hashvalue: localisation |noimage |{{#hashvalue:defaultL |noimage}} }}'' <!-- no screenshot -->
      }}
  }}
}}
<!--
 
Filename
 
-->|-
{{
  #if: {{#hashvalue:{{#var:PluginFileName}} |hideFileName}}
  |&#32;
  |{{
    RowColor|#ccccff|'''{{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }}'''
    |{{ <!-- display filename -->
        #if: {{#hashvalue:{{#var:PluginFileName}} |filename}}
        | {{#hashvalue:{{#var:PluginFileName}} |filename}}
        | {{#var:PluginFileName}}
      }}.dll
  }}
}}
<!--
 
Author
 
-->{{
  #if: {{{author|}}}
  |{{
    RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}'''
    | {{Developer|{{{author|}}} }}
  }}
  |{{
    #if: {{#hashvalue:{{#var:PluginFileName}} |author}}
    |{{
        RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}'''
        | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |author}} }}
      }}
    |
  }}
}}
<!--
 
Authors
 
-->{{
  #if: {{{authors|}}}
  |{{
    RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}'''
    | {{{authors|}}}
  }}
  |{{
    #if: {{#hashvalue:{{#var:PluginFileName}} |authors}}
    |{{
        RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}'''
        | {{#hashvalue:{{#var:PluginFileName}} |authors}}
      }}
    |
  }}
}}
<!--
 
Requirements
 
-->|-  style="vertical-align:top;"
{{
  #if: {{{requirements|}}}
  |{{
    RowColor|#ccccff|'''{{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}}'''
    | {{{requirements|}}}
  }}
  |{{
    #if: {{#hashvalue:{{#var:PluginFileName}} |requirements}}
    |{{
        RowColor|#ccccff|'''{{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}}'''
        | {{#hashvalue:{{#var:PluginFileName}} |requirements}}
      }}
    |
  }}
}}
<!--
 
Homepage
 
-->|-
{{
  #if: {{{homepage|}}}
  | {{!}} style="text-align:center;" colspan="2" {{!}}[{{{homepage|}}} '''{{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}''']
  |{{
    #if: {{#hashvalue:{{#var:PluginFileName}} |homepage}}
    | {{!}}  style="text-align:center;" colspan="2" {{!}}[{{#hashvalue:{{#var:PluginFileName}} |homepage}} '''{{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}''']
    |
  }}
}}
<!--
 
Download links
 
-->|-
| colspan="2" style="font-size:110%;background-color:#ccccff;text-align:center;" |{{
<!-- don't display download-title, if there is no links -->
  #if:{{
        #if: {{{hideDownloadLinks|}}}
        |{{
          #if: {{{additionalLinks|}}}
          | display title
          |{{
              #if: {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}}
              | display title
              |
            }}
        }}
        |{{
          #if: {{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}}
          |{{
              #if: {{{additionalLinks|}}}
              | display title
              |{{
                #if: {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}}
                | display title
                |
              }}
            }}
          | display title
        }}
      }}
  | '''{{#hashvalue:localisation |download-title |{{#hashvalue:defaultL |download-title}}}}'''
  |&#32;
}}
{{
  #if:{{
        #if: {{{hideDownloadLinks|}}}
        | {{{hideDownloadLinks}}}
        |{{
          #if: {{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}}
          | {{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}}
          |
        }}
      }}
  |
  |
  <!-- stable -->
  {{
    #if: {{#hashvalue:{{#var:PluginFileName}} |hide-stable}}
    |
    |{{
      RowColor|#fff|{{#hashvalue: localisation |download-stable |{{#hashvalue:defaultL |download-stable}} }}:
      |{{ <!-- s-x32 -->
          #if: {{#hashvalue:{{#var:PluginFileName}} |hide-s32}}
          |
          |{{ <!-- custom download link -->
            #if:  {{#hashvalue:{{#var:PluginFileName}} |link-s32}}
            | [{{#hashvalue:{{#var:PluginFileName}} |link-s32}} x32],&#32;
            | [//miranda-ng.org/distr/stable/x32/Plugins/{{lc:{{#var:PluginFileName}}}}.zip x32],&#32;
          }}
        }}{{ <!-- s-x64 -->
          #if: {{#hashvalue:{{#var:PluginFileName}} |hide-s64}}
          |
          |{{ <!-- custom download link -->
            #if:  {{#hashvalue:{{#var:PluginFileName}} |link-s64}}
            | [{{#hashvalue:{{#var:PluginFileName}} |link-s64}} x64]
            | [//miranda-ng.org/distr/stable/x64/Plugins/{{lc:{{#var:PluginFileName}}}}.zip x64]
          }}
        }}
    }}
  }}
  <!-- latest -->
  {{
    #if: {{#hashvalue:{{#var:PluginFileName}} |hide-latest}}
    |
    |{{
      RowColor|#fff|{{#hashvalue: localisation |download-current |{{#hashvalue:defaultL |download-current}} }}:
      |{{ <!-- l-x32 -->
          #if: {{#hashvalue:{{#var:PluginFileName}} |hide-l32}}
          |
          |{{ <!-- custom download link -->
            #if:  {{#hashvalue:{{#var:PluginFileName}} |link-l32}}
            | [{{#hashvalue:{{#var:PluginFileName}} |link-l32}} x32],&#32;
            | [//miranda-ng.org/distr/x32/Plugins/{{lc:{{#var:PluginFileName}}}}.zip x32],&#32;
          }}
        }}{{ <!-- l-x64 -->
          #if: {{#hashvalue:{{#var:PluginFileName}} |hide-l64}}
          |
          |{{ <!-- custom download link -->
            #if:  {{#hashvalue:{{#var:PluginFileName}} |link-l64}}
            | [{{#hashvalue:{{#var:PluginFileName}} |link-l64}} x64]
            | [//miranda-ng.org/distr/x64/Plugins/{{lc:{{#var:PluginFileName}}}}.zip x64]
          }}
        }}
    }}
  }}
}}
<!--
 
Additional links
 
-->
<!-- check if any -->{{
  #if:{{
        #if: {{{additionalLinks|}}}
        | {{{additionalLinks}}}
        |{{
          #if: {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}}
          | {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}}
          |
        }}
      }}
  |{{
    RowColor|#fff|{{#hashvalue: localisation |links-other |{{#hashvalue:defaultL |links-other}} }}:
    |{{
        #if: {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}}
        | {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}},&#32;{{#if:{{{additionalLinks|}}} | {{{additionalLinks}}} |}}
        |{{
          #if: {{{additionalLinks|}}}
          | {{{additionalLinks}}}
          |
        }}
      }}
  }}
}}
|}<!--
 
-->{{Languages}}<!--
Load information about plugin's gropus
  -->{{PluginInfo/Groups|}}<!--
Check if plugin is part of a group 'testing' and if so then display proper communicats (warnings etc.)
-->{{
  #if: {{#hashvalue:{{#var:PluginFileName}} |grp-testing}}
  | {{Warning|{{L10n:Messages| test_plug_warn}} }} {{Message|message={{L10n:Messages| test_plug_msg}} }}
}}<!--
 
Categories
 
-->[[Category:{{#hashvalue: localisation |cat-lang |{{#hashvalue:defaultL |cat-lang}} }}]]
[[Category:Plugins]]
{{
  #if: {{{screenshot}}}
  |
  | [[Category:Todo:{{#hashvalue: localisation |cat-todo |{{#hashvalue:defaultL |cat-lang}} }}]]
}}{{
  #ifeq: {{#var:PageLang}} | en
  |{{
    #if: {{#hashvalue:{{#var:PluginFileName}} |screenshot}}
    |
    | [[Category:Todo:{{#hashvalue: localisation |cat-todo |{{#hashvalue:defaultL |cat-lang}} }}]]
  }}
  |
}}<nowiki/></includeonly>

Latest revision as of 16:07, 23 December 2015

Usage

name
No image
Filename PluginFileName.dll
Author author
Authors author_1, author_2
System
requirements
requirements
Homepage
Download links
Stable version: x32, x64
Current version: x32, x64
Other: additionalLink_1, additionalLink_2