User:Goraf/PluginCard: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
(synced)
(+includeonly to not parse it // looking for error with mw.title.new(nill))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
</includeonly><!-- use #titleparts instead of MagicWords if pagetitle will change -->{{
<includeonly><onlyinclude><!-- use #titleparts instead of MagicWords if pagetitle will change -->{{
   #vardefine:PluginFileName | {{BASEPAGENAMEE}}
   #vardefine:PluginFileName | {{BASEPAGENAMEE}}
}}{{
}}{{
Line 24: Line 24:
}}<span class="plainlinks createlinks">[{{fullurl:Plugin:{{#var:PluginFileName}} | action=edit&preload=Template:PluginPage/preload&summary=Plugin:{{#var:PluginFileName}} }} '''Create page''']</span>{{clear}}<br/>
}}<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" cellpadding="4" style="margin: 0 0 10px 10px; width: 22em; font-size: 90%; float: right;clear: right; box-shadow:1px 1px 3px #999;"
<!--


Title
{{Infobox
| name          =
| child          = {{{child|}}}
| subbox        = {{{subbox|}}}
| bodystyle      =


-->
| titlestyle    =
! colspan=2 style="font-size:110%;background-color:#ccccff;" | {{
| abovestyle    = background-color:#ccccff;
| subheaderstyle =
| title          =
| above          = {{
   #if: {{{name|}}}
   #if: {{{name|}}}
   | {{{name}}}
   | {{{name}}}
   | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }}
   | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }}
}}
}}
<!--
| subheader      =


Screenshot
|  imagestyle  =
| captionstyle  =
|  image        =
| caption        =
|  image2      =
| caption2      =


-->{{
| headerstyle   =
  #ifeq: {{
| labelstyle   = background-color:#ccccff; text-align:right;
    #if: {{{screenshot|}}}
datastyle   =
    | {{{screenshot}}}
    | {{#hashvalue:{{#var:PluginFileName}} |screenshot}}
   }} | ***
  |&#32;
  |{{!}}-
   {{!}} colspan="2" style="text-align:center;font-style: italic;"{{!}} <!--
      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;font-weight:bold|{{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }}
    |{{ <!-- display filename -->
        #if: {{#hashvalue:{{#var:PluginFileName}} |filename}}
        | {{#hashvalue:{{#var:PluginFileName}} |filename}}
        | {{#var:PluginFileName}}
      }}.dll
   }}
}}
<!--


  Author
<!-- Filename -->
| header1 =
|  label1  = {{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }}
|  data1  = {{#if: {{#hashvalue:{{#var:PluginFileName}} |filename}}
    | {{#hashvalue:{{#var:PluginFileName}} |filename}}
    | {{#var:PluginFileName}}
  }}.dll


-->{{
<!-- Author -->
  #if: {{{author|}}}
| header2  =
  |{{
| label2  = {{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}
    RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}
|   data2  = {{#if: {{{author|}}}
    | {{Developer|{{{author|}}} }}
    | {{Developer|{{{author|}}} }}
  }}
    | {{#if: {{#hashvalue:{{#var:PluginFileName}} |author}}
  |{{
      | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |author}} }}
    #if: {{#hashvalue:{{#var:PluginFileName}} |author}}
      |k
    |{{
        RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}
        | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |author}} }}
       }}
       }}
    |
  }}
  }}
}}
<!--
 
Authors


-->{{
<!-- Authors -->
  #if: {{{authors|}}}
| header3  =
  |{{
| label3  = {{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}
    RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}
|   data3  = {{#if: {{{authors|}}}
    | {{{authors|}}}
    | {{Developer|{{{authors|}}} }}
  }}
    | {{#if: {{#hashvalue:{{#var:PluginFileName}} |authors}}
  |{{
      | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |authors}} }}
    #if: {{#hashvalue:{{#var:PluginFileName}} |authors}}
      |k
    |{{
        RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}
        | {{#hashvalue:{{#var:PluginFileName}} |authors}}
       }}
       }}
    |
  }}
  }}
}}
<!--
 
Requirements


-->|- style="vertical-align:top;"
<!-- Requirements -->
{{
| header4 =  
  #if: {{{requirements|}}}
|  label4  = {{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}}
   |{{
|   data4  = {{#if: {{{requirements|}}}
    RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}}
    | {{Developer|{{{requirements|}}} }}
    | {{{requirements|}}}
    | {{#if: {{#hashvalue:{{#var:PluginFileName}} |requirements}}
  }}
      | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |requirements}} }}
  |{{
      |k
    #if: {{#hashvalue:{{#var:PluginFileName}} |requirements}}
    |{{
        RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}}
        | {{#hashvalue:{{#var:PluginFileName}} |requirements}}
       }}
       }}
    |
   }}
  }}
}}
<!--
 
Homepage
 
-->|-
{{
  #if: {{{homepage|}}}
  | {{!}} style="text-align:center;font-weight:bold;" colspan="2" {{!}}[{{{homepage|}}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}]
   |{{
    #if: {{#hashvalue:{{#var:PluginFileName}} |homepage}}
    | {{!}}  style="text-align:center;font-weight:bold;" colspan="2" {{!}}[{{#hashvalue:{{#var:PluginFileName}} |homepage}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}]
    |
  }}
}}
<!--


Download links
<!-- Homepage -->
 
| header5  =
-->|-
|  label5  =
! colspan="2" style="font-size:110%;background-color:#ccccff;" |{{
|   data5  = {{#if: {{{homepage|}}}
<!-- don't display download-title, if there is no links -->
    | [{{{homepage|}}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}]
   #if:{{
    | {{#if: {{#hashvalue:{{#var:PluginFileName}} |homepage}}
        #if: {{{hideDownloadLinks|}}}
      | [{{#hashvalue:{{#var:PluginFileName}} |homepage}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}]
        |{{
      |
          #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
<!-- Download links -->
| header6  =
|  label6  =
|  data6 = {{Infobox | subbox = yes
    | headerstyle = font-size:110%; background-color:#ccccff;
    | labelstyle  = font-weight:normal; text-align:right; width:60%;
 
    | header1 = {{#hashvalue:localisation |download-title |{{#hashvalue:defaultL |download-title}}}}


-->
    <!-- stable -->
<!-- check if any -->{{
    | label2 = {{#hashvalue: localisation |download-stable |{{#hashvalue:defaultL |download-stable}} }}:
  #if:{{
    |   data2 = stable
        #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}}<!--
    <!-- development -->
Load information about plugin's gropus
    label3 = {{#hashvalue: localisation |download-current |{{#hashvalue:defaultL |download-current}} }}:
  -->{{PluginInfo/Groups|}}<!--
    |   data3 = Data 3-3
  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
    <!-- additional -->
    | label4 = {{#hashvalue: localisation |links-other |{{#hashvalue:defaultL |links-other}} }}:
    |  data4 = Data 3-3
  }}


-->[[Category:{{#hashvalue: localisation |cat-lang |{{#hashvalue:defaultL |cat-lang}} }}]]
| belowstyle    =
[[Category:Plugins]]
| below          =
{{
}}</onlyinclude>
  #if: {{{screenshot}}}
</includeonly>
  |
  | [[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:31, 26 May 2018