User:Goraf/PluginCard: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
("Author" & "Authors" update)
(+includeonly to not parse it // looking for error with mw.title.new(nill))
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- info about needed changes for implementation
<includeonly><onlyinclude><!-- use #titleparts instead of MagicWords if pagetitle will change -->{{
  #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/>
}}


1. uncomment {{User:Goraf/PluginInfo|}}
{{Infobox
2. {{User:Goraf/PluginInfo|}} -> {{PluginInfo|}}
| name          =
| child          = {{{child|}}}
| subbox        = {{{subbox|}}}
| bodystyle      =


--><!-- use #titleparts instead of MagicWords if pagetitle will change
| titlestyle    =
-->{{#vardefine:PluginFileName | {{BASEPAGENAME}} }}{{#vardefine:PluginLang | {{SUBPAGENAME}} }}<!--
| abovestyle    = background-color:#ccccff;
Load information about plugin {{User:Goraf/PluginInfo|}}--><!--
| subheaderstyle =
Language localisation ... -->{{Localization/PluginCard|{{#var:PluginLang}} }}<!--
| title          =
and default values -->{{Localization/PluginCard|}}<!--
| above          = {{
Page title -->{{DISPLAYTITLE: {{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }} }}<!--
  #if: {{{name|}}}
  | {{{name}}}
  | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }}
}}
| subheader      =


   -->{| class="infobox bordered plugincard" cellpadding="4" style="margin: 0 0 10px 10px; width: 22em; font-size: 90%; float: right;clear: right; box-shadow:1px 1px 3px #999;"
|  imagestyle  =
<!--
| captionstyle   =
Title
|  image        =
-->| align="center" colspan=2 bgcolor="#ccccff" style="font-size:110%;" | '''''{{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }}'''''
| caption        =
<!--
|  image2      =
  Screenshot
| caption2      =  
-->{{#ifeq:{{#if:{{{screenshot|}}} | {{{screenshot}}} | {{#hashvalue:{{#var:PluginFileName}} |screenshot}} }} | *** | | {{!}}-
 
{{!}} align="center" colspan="2" {{!}} <!--
| headerstyle    =  
display an image -->{{#if:{{{screenshot|}}} | [[Image:{{{screenshot}}}{{!}}border{{!}}200px{{!}}<!--
|  labelstyle    = background-color:#ccccff; text-align:right;
  caption -->{{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }}]]<!--
|  datastyle    =
-->| {{#if:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | [[Image:{{#hashvalue:{{#var:PluginFileName}} |screenshot}}{{!}}border{{!}}200px{{!}}<!--
 
caption -->{{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }}]]<!--
<!-- Filename -->
no screenshot -->| ''{{#hashvalue: localisation |noimage |{{#hashvalue:defaultL |noimage}} }}''}} }} }}
| header1  =  
<!--
|  label1  = {{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }}
Filename
|  data1 = {{#if: {{#hashvalue:{{#var:PluginFileName}} |filename}}
-->{{RowColor|#ccccff|'''{{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }}''' | {{#var:PluginFileName}}.dll }}
    | {{#hashvalue:{{#var:PluginFileName}} |filename}}
<!--
    | {{#var:PluginFileName}}
  Author
  }}.dll
-->{{#if:{{{author|}}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}''' | {{Developer|{{{author|}}} }} }} <!--
 
if not -->| {{#if:{{#hashvalue:{{#var:PluginFileName}} |author}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}''' | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |author}} }} }} }} }}
<!-- Author -->
<!--
| header2  =
Authors
|  label2  = {{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}
-->{{#if:{{{authors|}}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}''' | {{{authors|}}} }} <!--
|  data2 = {{#if: {{{author|}}}
  if not -->| {{#if:{{#hashvalue:{{#var:PluginFileName}} |authors}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}''' | {{#hashvalue:{{#var:PluginFileName}} |authors}} }} }} }}
    | {{Developer|{{{author|}}} }}
<!--
    | {{#if: {{#hashvalue:{{#var:PluginFileName}} |author}}
Requirements
      | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |author}} }}
-->|- valign="top"
      |k
{{#if:{{{requirements|}}}|{{RowColor|#ccccff|'''{{#hashvalue: localisation |systemreq|System <br/>requirements}}'''|{{{requirements|}}}}}|}}
      }}
<!--
  }}
Homepage
 
-->|-
<!-- Authors -->
{{#if:{{{homepage|}}}|[{{{homepage|}}} '''{{#hashvalue: localisation |homepage|Homepage}}''']<br/>|}}
| header3  =
<!--
| label3  = {{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}
Download links
|   data3 = {{#if: {{{authors|}}}
-->{{#vardefine:pluginName|{{lc:{{#if:{{{basename|}}}|{{{basename}}}|{{#if:{{{dll|}}}|{{#replace:{{{dll|}}}|.dll|}}|{{BASEPAGENAME}}}}}}}}}}
    | {{Developer|{{{authors|}}} }}
|-
    | {{#if: {{#hashvalue:{{#var:PluginFileName}} |authors}}
| align="center" colspan="2" bgcolor="#ccccff" style="font-size:110%;" |
      | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |authors}} }}
'''{{#hashvalue:localisation |download-title|Download links}}:'''
      |k
{{#if:{{{hideDownloadLinks|}}}| |
      }}
{{!}}-
  }}
{{RowColor|#fff|{{#hashvalue: localisation |download-stable|Stable version}}:| {{#if:{{{hide-s32|}}}| |[http://miranda-ng.org/distr/stable/x32/Plugins/{{#var:pluginName}}.zip x32],}} {{#if:{{{hide-s64|}}}| |[http://miranda-ng.org/distr/stable/x64/Plugins/{{#var:pluginName}}.zip x64]}}}}
 
{{!}}-
<!-- Requirements -->
{{RowColor|#fff|{{#hashvalue: localisation |download-current|Current version}}:| {{#if:{{{hide-l32|}}}| |[http://miranda-ng.org/distr/x32/Plugins/{{#var:pluginName}}.zip x32],}} {{#if:{{{hide-l64|}}}| |[http://miranda-ng.org/distr/x64/Plugins/{{#var:pluginName}}.zip x64]}}}}}}
| header4  =
<!--
| label4  = {{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}}
Additional links
|   data4 = {{#if: {{{requirements|}}}
-->{{!}}-
    | {{Developer|{{{requirements|}}} }}
{{#if:{{{additionalLinks|}}}|
    | {{#if: {{#hashvalue:{{#var:PluginFileName}} |requirements}}
{{!}}-
      | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |requirements}} }}
{{RowColor|#fff|{{#hashvalue: localisation |links-other|Other}}:| {{{additionalLinks|}}}}}
      |k
|}}
      }}
|}<includeonly>{{Languages}}
  }}
[[Category:{{#hashvalue: localisation |cat-lang|Plugins:English}}]][[Category:Plugins]]
 
{{#if:{{{screenshot|}}}| |[[Category:Todo:{{#hashvalue: localisation |cat-todo|Screenshot required}}]]}}
<!-- Homepage -->
| header5  =
|  label5  =
|  data5  = {{#if: {{{homepage|}}}
    | [{{{homepage|}}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}]
    | {{#if: {{#hashvalue:{{#var:PluginFileName}} |homepage}}
      | [{{#hashvalue:{{#var:PluginFileName}} |homepage}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}]
      |
      }}
  }}
 
<!-- 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 -->
    | label2 = {{#hashvalue: localisation |download-stable |{{#hashvalue:defaultL |download-stable}} }}:
    |   data2 = stable
 
    <!-- development -->
    | label3 = {{#hashvalue: localisation |download-current |{{#hashvalue:defaultL |download-current}} }}:
    |   data3 = Data 3-3
 
    <!-- additional -->
    |  label4 = {{#hashvalue: localisation |links-other |{{#hashvalue:defaultL |links-other}} }}:
    |   data4 = Data 3-3
  }}
 
| belowstyle    =
| below          =
}}</onlyinclude>
</includeonly>
</includeonly>

Latest revision as of 16:31, 26 May 2018